polewafter.blogg.se

Start local web server mac
Start local web server mac









start local web server mac

Press Control+x to exit the nano editor Configure the nf file Press Control+o and press enter to save the file. Options Indexes MultiViews FollowSymLinks nf.Ĭopy and paste the following configuration. Note: “username” will be your account name. If there is an existing nf, make a backup copy by typing sudo cp nf. Check if there is existing nf (username is your account name) Type cd /etc/apache2/users and press enter. If your username is developer the filename will be nf. (that is your account name / username)Ĭreate a nf file based on the account name showed up when you type whoami. To be able to recognize the files putting into Sites directory, nf needed to be setup. When the folder is created, it will generate a folder with compass image on the folder. Let’s create a Sites directory under username folder (username is your mac login name) This directory is going to be the document root.ġ. If Apache server is started, you should see the below: localhost on browser Create Sites directory Type localhost or 127.0.0.1 in the address bar

start local web server mac

Type sudo apachectl start and press enter. Open Terminal from your Application folder or type “Terminal” in the Spotlight Search. You can start off the built-in Apache server by following the below steps.

start local web server mac

For macOS Big Sur (11.0.x) setup guide, please check out Setting Up Your Local Web Server on macOS Big Sur 11.0.1 (2020)| MAMP | macOS, Apache, MySQL, PHP Start the Apache Server











Start local web server mac