Friday, July 12, 2013

Install lampp in Ubuntu 12.04 LTS



First download lampp from the link mentioned below :-

http://www.apachefriends.org/download.php?xampp-linux-1.x.x.tar.gz

After download :-

Open Terminal - Ctrl + Alt + t

Login as root - sudo -s (this will ask for you a password)

After entered password. In the terminal write this command -

tar xvfz xampp-linux-1.x.x.tar.gz -C /opt

This process will install xampp in the following directory - /opt/lampp/

Now give the permission to htdocs folder to read and write operation -

chmod 777 -R /opt/lampp/htdocs/

Start services of lampp write this command in the terminal

/opt/lampp/lampp start

Checking :-

http://localhost/

For stop its services

/opt/lampp/lampp stop


Sometime after insallation finished when we go to (phpmyadmin) section -

http://localhost/phpmyadmin/

It will throw an error message. For solving this issue write following command in the terminal :-

chmod 777 -R /opt/lampp/etc/extra/

gedit /opt/lampp/etc/extra/httpd-xampp.conf

It will open httpd-xampp.conf in the editor named gedit now put this line

Require all granted

After this line

<Directory "/opt/lampp/phpmyadmin">
    AllowOverride AuthConfig Limit
    Order allow,deny

In the terminal write this command to change the permission of the directory /opt/lampp/etc/extra/

chmod 777 -R /opt/lampp/etc/extra/

And its all done. Now enjoy it..

No comments:

Post a Comment