Apache web server for mac download

broken image
broken image

If you have a web project called, say, myproj, inside that directory, you can access it by typing localhost/myproj in the URL bar of your browser and it will display your default index.html (or index.php, keeping in mind that we are learning PHP) file.

broken image

Now all your web projects can go inside /Users/dennisgabil/Sites. Restart the server by running the command Save the changes (press ESC, then : ( SHIFT + :), then wq!) (You change /dennisgabil/ in the two paths to your /username/ ). #LoadModule php7_module libexec/apache2/libphp7.soĪnd uncomment it, i.e., remove # (focus the cursor on # and press x).ĭocumentRoot '/Library/WebServer/Documents' We need to make some changes to the nf file. Do Spotlight Search ( ⌘ + SPACE) on your username and drag and drop Sites to the Finder sidebar. There, create a directory for your web projects, say Sitesįor easy access later, you can place this newly created Sites directory in the Favorites section of your Mac's Finder. Navigate to your home directory (it is named with your user name). The default It works! page is located inside /Library/WebServer/Documents as the file. Next, type in the URL bar of the web browser.

broken image

If the version number is proper, start the server by running the command Start as rootĪs Apache 2.4 comes pre-packaged in macOS Catalina 10.15, check the version to verify Press ⌘ + SPACE (Spotlight Search) and bring up the terminal.