23.02.2015 Views

www.it-ebooks.info

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 1<br />

The second command will install PEAR, a PHP package manager and a PHP<br />

memcached adapter.<br />

Memcached is a high-performance, distributed memory caching<br />

system; this is an optional caching system for Magento.<br />

The third command installs and sets up the php5 module for Apache.<br />

We can finally test that our PHP installation is working by running the<br />

following command:<br />

$ php -v<br />

Installing MySQL<br />

MySQL is a popular choice of database for many web applications, and Magento is<br />

no exception. We will need to install and set up MySQL as part of development stack<br />

using the following command:<br />

$ sudo apt-get install mysql-server mysql-client -y<br />

During installation, we will be asked to enter a root password; use magento2013.<br />

Once the installer has finished, we should have a mysql service instance running<br />

in the background. We can test <strong>it</strong> by trying to connect to the mysql server using the<br />

following command:<br />

$ sudo mysql -uroot -pmagento2013<br />

If everything has been installed correctly, we should see the following mysql<br />

server prompt:<br />

mysql><br />

At this point, we have a fully functional LAMP environment that can be used not<br />

only for developing and working on Magento webs<strong>it</strong>es but also for any other kind<br />

of PHP development.<br />

[ 17 ]<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!