usboffline.blogg.se

Apache for mac sierra
Apache for mac sierra













Document Rootĭocument root is the location where the files are shared from the file system and is similar to the traditional names of ‘ public_html‘ and ‘ htdocs‘, OSX has historically had 2 web roots one at a system level and one at a user level – you can set both up or just run with one, the user level one allows multiple accounts to have their own web root whilst the system one is global for all users.

apache for mac sierra

This will give you an indication of what might be wrong. If you don’t get the localhost test, you can try troubleshooting Apache to see if there is anything wrong in its config file by running apachectl configtest The Apache version that comes in macOS Sierra is Apache/2.4.23Īfter starting Apache – test to see if the webserver is working in the browser – – you should see the “It Works!” text. To start Apache web sharing sudo apachectl start

#APACHE FOR MAC SIERRA PASSWORD#

Using the prefix of sudo is required for commands that have their applications protected in certain folders – when using sudo you will need to confirm with your admin password or iCloud password if set up that way….

apache for mac sierra

This needs to be done in the Terminal which is found at /Applications/Utilities/Terminalįor those not familiar with the Terminal, it really isn’t as intimidating as you may think, once launched you are faced with a command prompt waiting for your commands – just type/paste in a command and hit enter, some commands give you no response – it just means the command is done, other commands give you feedback.

apache for mac sierra

Web serving is possible via the inbuilt Apache app, it is installed ready to be fired up.













Apache for mac sierra