![]() Replace the path on DocumentRoot (e.g.: C:\MAMP\htdocs) by your new path (e.g.: C:\WebServers).Replace the current path of your DocumentRoot (e.g.: C:\MAMP\htdocs) by your new path (e.g.: C:\WebServers).It includes default settings that will allow you to install WordPress with a few clicks without any customizations. The standard view is more suited for users who want to work in the most simplistic way. Select where your new document root should be located There are two dashboard interfaces to choose from in MAMP Pro.If this is not the case, then you should replace ‘ C:\MAMP‘ in the instructions by your own MAMP location. In these instructions I will assume that you’ve installed MAMP on its default location ( C:\MAMP). Once the Apache and MySQL servers are stopped, select Start Servers.Select Stop Servers (if they are up and running).Replace the path on DocumentRoot (e.g.: /Applications/MAMP/htdocs) by your new path (e.g.: /WebServers).Do another find on ‘DocumentRoot’ until you get to the line that says “ This should be changed to whatever you set DocumentRoot to.“.Replace the current path of your DocumentRoot (e.g.: /Applications/MAMP/htdocs) by your new (e.g.: /WebServers).Go to Applications > MAMP > conf > apache.MAMP automatically stops and starts the Apache and MySQL servers.You have now setup the new document root location.Select the new location for your document root and click on the ‘ Select‘ button.You will now have a new Finder window opened. ![]() Click on the object next to the ‘ Document Root:‘ text export PATHPATH: /Applications/ MAMP/Library/bin: /.composer/ vendor/bin was corrected to: export PATHPATH: /Applications/ MAMP/Library/bin:HOME/.composer/vendor/bin Now I'm succesfully running migrations from system shell instead of vagrant ssh, on mamp pro mysql socket, even if using homestead as web server.You will be able to see the current location of your document root.If you don’t have MAMP yet you can get your free copy from. The examples below are for the standard versions of MAMP (free) and not the PRO versions (you have to pay after the trial period has expired). ![]() I will be explaining how we can change the root directory on Apache server on both cases. Before I start explaining on how we can change the root directory on Apache Server using MAMP, it’s important to remember that although MAMP was originally designed for Apple MAC systems, there is also a Windows version. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |