

These are basic things you may need to set up a server or installing a CMS like a WordPress Blog on the localhost.įor getting localhost on mac (Important) : LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule expires_module libexec/apache2/mod_expires.so LoadModule deflate_module libexec/apache2/mod_deflate.so

Now this will take you directly to the line where you need to uncomment the “#.” Now, this will appear like this Search: and Paste, i.e., Control+W and Copy Below Line and Command +V (Paste)Įnabling PHP modules, Including Virtual hosts, and other important edits. Its more than 500+ lines, we need to jump on some exact code and edit and exit so best is to use Control + “W” to find the Code You may Copy / Paste the commands to make sure no errors occur in the setup.Īgain enter the password and the file nf opens, if you are not a pro to Shell commands, don’t touch anything in the editor be careful not to press any key by mistake, if done press control + “x” key to exit without saving. So let’s begin quickly setting up localhost on mac.Īfter this command terminal would ask for a password, that’s your default one for MacOs it would just start the inbuilt Apache.

You can always modify the colour of your terminal window, whatever suits you best.Īlso, if you want to increase the font size, press Command and + to increase the font size of the terminal.įor the Pro’s, I am just starting up in minor details so that anyone who is a beginner joining here on the post can understand easily. Once the Terminal opens you see a Window like this

