Open your browser and navigate to You should be presented with an index file listing page that should be blank. Make sure the value you used in the vhosts config file matches the server name in the hosts file (in this case we use testserver). Open the /etc/hosts file and add a new entry like so: 127.0.0.1 testserver In Finder, create a new folder called testfolder inside the htdocs folder that resides next to the etc folder we’ve been doing our edits in. ![]() You should be presented with a file containing two dummy entries, feel free to delete the last entry and edit the first one to match the example below:ĭocumentRoot "/opt/lampp/htdocs/testfolder" VirtualHosts nf #įrom the etc folder click on the extra folder and then open the nf file in your editor. This will allow us to configure Apache using VirtualHosts without having to edit the main Apache config file anymore. There’s a few tweaks you need to make to the Apache config before moving forward: Main config nf #įind and edit the nf file in the etc folder, and uncomment the line containing #Include etc/extra/nf by removing the #. Click on the etc folder here, then go to the next section. If you clicked Explore, Finder should open to the location where the XAMPP server config is available to browse. Next you want to click on the Volumes tab at the top, then Mount, then Explore once the Mount button is greyed out. First thing you want to do is click the Start button here this fires up the VM and gets the server running so we can complete the rest of the configuration. ![]() You should be presented with the application containing some buttons and an empty “status” area. Once installed, run XAMPP.app from the Applications folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |