The rights dialog of MAMP PRO looks complicated at first sight but is actually very powerful. If your web server is reporting “access denied” in its error log or parts of your web pages are missing this might be due to access rights problems. The user “www” is generally only used on production servers. If you use the user “You can either adapt the access rights or use the current Mac user to start your web servers.ĭuring the development phase of a site it is easier to use the current Mac user to start your web server. The location of the documents (HTML/PHP files etc.) of a virtual host is called a document root.Īccess Rights for Document Root Directoryįor the web server to be able to access the files inside the document root folder and serve them to a web browser it needs adequate rights. If the router does this you can either deactivate this function, add Xip.io as an exception or not use the router as DNS Server in your Macs network settings. Also make sure that your Internet router is not blocking Xip.io calls by using a DNS Rebind protection. They are temporary and may become invalid if you restart your Mac. Note: The Xip.io addresses will only work in your local network. Using the Share button you can send the Xip.io address to other users. The basic mapping mechanism which uses the file “/etc/hosts”.Įnable your host to be viewed on the MAMP Viewer.Īllow other computers on your local network to access your web site. This will determine how your system will map host names to ip addresses. An icon next to the server name in the server list will also indicate which web server you chose. View your PHP configuration by pressing the ‘i’ button to the right of the version name.ĭetermines, if this virtual host is accessible with the Dynamic DNS service from the internet.ĭetermine which web server will be used with your host. To this version (it is set to always use the standard version). If you set the PHP version in the PHP section to “5.4.25”, MAMP PRO will adapt the PHP version of HostA Set to PHP version “Default (5.5.9)”, HostB set to “5.5.9” and HostC set to “5.3.28”. Use a fixed setting to tell MAMP PRO not to alter the PHP version.Īn example: The default version is set to 5.5.9. If you select the Standard PHP version MAMP PRO will automatically adapt this setting if you chooseĪ new standard 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 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 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. MAMP PRO uses virtual hosts to allow your web servers to serve different websites.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |