
LoadModule userdir_module libexec/apache2/mod_userdir.so What worked for me after upgrading from El Capitan to Sierra as well:ġ) Uncommenting from /etc/apache2/nf Fix for me was the answer by Hesham (first of six as of ) at StackOverflow
Local web server mac upgrade#
You can get MAMP free from here.Īfter upgrade from Yosemite to High Sierra, I got 404 not found on a localhost user directory, although plain localhost gave “It Works!” as it should.
Local web server mac install#
You can either install and configure those manually, or you can go the pre-configured route through an all-in-one server app like MAMP, which includes Apache, MySQL, and PHP in a simple to control app-based web server package. The default Apache server is barebones and does not have PHP, MySQL, or anything particularly fancy enabled. If you make changes to the server and just want to restart it, that can be accomplished with the following command instead: To shut down the web server, go back to the command line and type the following: Shutting Down Apache & Restarting Apache Server This whole process is quite fast, and can be completed in under a minute as demonstrated in the video walkthrough below: Using is also fine, and by editing the hosts file you can set a local domain to whatever you want to create a local test environment with an otherwise live domain. You can now also visit to see the contents of whatever is stored in the user ~/Sites/ directory – if anything is there per user – and you can add an index.html file or whatever else you’d like to the directory to serve it to the outside world or even just your LAN. Note, if you just want to use and modify ‘localhost’ root and not the user level Sites at localhost/~user, you can find the apache webserver files and ‘It Works!’ html in the following location: Apache Web Server Documents Location & User Sites Folders Now that you’ve started a successful Apache server in OS X, you can either modify the core ‘localhost’ files, or go further with the user files.

Local web server mac password#


Launch Terminal, located in /Applications/Utilities/.Versions of OS X prior to El Capitan, Yosemite, Mavericks, Mountain Lion and Mavericks can simply turn on “Web Sharing”, but from 10.8, 10.9, 10.10, and 10.11 onward you’ll need to do the following to use a local web server: Setting Up and Starting the Apache Web Server in OS X
