Create a virtual host in mamp

Running virtual host on your desktop will be a great help to boost up your development alot.
I have been doing almost all of my projects now days, I am using MAMP on mac (sorry for window users), if you do not have MAMP go ahead, download and install.

Why virtual Host?

Virtual host give you ability to host its own domain such as “myproject.dev”, by entering this on your browser will project out your project.

Install MAMP

Download MAMP
Once installed, start MAMP application and start servers which will turn 2 red buttons on the left to green

mamp server

When you start the application, you will notice that it automatic opens up the browser which is using :8888 port, something like this: localhost:8888/MAMP…
first change the port to default port by clicking preference->Ports-> click on the “Set to default Apache and MySQL ports”. This will turn your Apache port to 80.
Click ok
Continue reading “Create a virtual host in mamp”