23.02.2015 Views

www.it-ebooks.info

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Understanding and Setting Up Our Development Environment<br />

allow from all<br />

<br />

ErrorLog /srv/<strong>www</strong>/magento_dev/logs/error.log<br />

LogLevel warn<br />

<br />

To save the new virtual host file, press Ctrl + O and then Ctrl + X. The virtual host<br />

file will tell Apache where <strong>it</strong> can find the s<strong>it</strong>e files and what permissions to give<br />

them. In order for the new configuration changes to take effect, we need to enable<br />

the new s<strong>it</strong>e and restart Apache. We can use the following commands to do so:<br />

$ sudo a2ens<strong>it</strong>e magento.localhost.com<br />

$ sudo apache2ctl restart<br />

We are nearly ready to install Magento. We just need to set up a local mapping into<br />

our host system host file by using any of the following:<br />

• Windows<br />

i. Open C:\system32\drivers\etc\hosts in notepad<br />

ii. Add the following line at the end of the file:<br />

192.168.36.1 magento.localhost.com<br />

• Unix/Linux/OSX<br />

i. Open /etc/hosts using nano:<br />

$ sudo nano /etc/hosts<br />

ii. Add the following line at the end of the file:<br />

192.168.36.1 magento.localhost.com<br />

If you are having problems making the necessary changes to your host<br />

files, please Vis<strong>it</strong> http://<strong>www</strong>.magedevguide.com/hostfile-help.<br />

[ 20 ]<br />

<strong>www</strong>.<strong>it</strong>-<strong>ebooks</strong>.<strong>info</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!