If you set the PHP version in the PHP section to “5.4.25”, MAMP PRO will adapt the PHP version of oneHost to this version (it is set to always use the standard version). Set to PHP version “Default (5.5.9)”, anotherHost set to “5.5.9” and yetAnotherHost set to “5.3.28”. Sounds complicated? Let’s take a look at an example: The default version is set to 5.5.9. Use a fixed setting to tell MAMP PRO not to alter the PHP version. If you select the default PHP version MAMP PRO will automatically adapt this setting if you chooseĪ new default version in the PHP tab. This can only be set when Individual PHP versionįor every host (CGI) is set in the PHP section of MAMP PRO. In most cases the preset value does not need to be changed.ĭetermine which version of PHP a host will use. If you want to choose which of the IP addresses should be associated with a host, then select it from the pop up menu.ĭetermine the port with which the virtual host is accessible. If this field is left empty or contains an * the web server will use one of the computer’s IP addresses to access this host. If the servers are running you can use the Open button to open a host in your web browser. The host name may only contain letters and/or numbers, as well as dashes (“-“) īut it may not begin or end with a “-“ character. The server name and port number in combination must be unique within MAMP PRO. The fifth column will display an icon of the Extra installed if an Extra is installed. The fourth column contains the PHP version that is used with host. If left unchecked, the host will not be active and cannot be viewed in a web browser. The third column indicates whether the host is active. The second column indicates which web server will host the file. The first column contains your host name. Use this option to copy the contents of your template folder to your new document root folder. You may use the same template, js, and css files/folders in every site you develop. You can optionally add the contents of a templates folder. Most content management systems require a database, and you can conveniently add one here.Ĭopy the contents of a template folder to the document root You can optionally create a MySQL database. MAMP PRO will automatically add an “index.php” file and a MAMP image to this location when your web server is restarted if the folder is empty. The document root is also known as the web root folder. The location of the documents (HTML/PHP files etc.) of a virtual host is called a document root. Names are not case-sensitive (upper and lower-case letters are not distinguished.) The host name may only contain letters and/or numbers, as well as dashes (“-“) but it may not begin or end with a “-“ character. To create a new host press the “Plus” button at the bottom left of the hosts table. The unreversed name may conflict with an outside domain name. The name of a host (server name) must be unique, often it’s practical to use a reverse domain naming scheme to easily identify them (e.g. Every host can have it’s own directory to store html, PHP files, and images. You can add an unlimited number of hosts allowing you to create one host per project. The virtual host “localhost” is created by default and cannot be deleted. when I bought a MacBook Air, I thought I'd try out Parallels again).MAMP PRO uses virtual hosts to allow your web servers to serve different websites. Parallels' networking support is a bit more dodgy than VMWare Fusion (which I'd been using on my old MacBook Pro for quite a while without a problem. Update: It looks like this will work if you choose the 'Shared Network' type as well go figure.
You should now be able to access whatever site you have defined at in MAMP via Windows Internet Explorer. Add a line like the following to the file and save: " ".and enter "c:\windows\system32\drivers\etc\hosts" (use Notepad to open). Open your Windows Hosts file and add your virtual hosts:.Get your Mac's IP address (for your WiFi adapter or Ethernet whatever's the primary interface).In Parallels' options for your virtual machine, go to Hardware, then Network 1, and choose 'Default Adapter' for 'Type'.(This tip should also work similarly with Vista, Windows 7, etc.).Īfter browsing around a bunch of different forums, the MAMP site, and Parallels documentation, I was still flummoxed by Parallels' weird Shared Host networking behavior, which seemingly didn't allow me to access virtualhosts I set up with MAMP for developing sites locally.Īfter much experimentation, I found that the simplest way to be able to type in '' (or '', if that's your style) in Internet Explorer on Windows, and get a virtual host running via MAMP on my Mac, is to do the following: