How to install LAMP on Ubuntu
Posted: July 11, 2009 at 10:16 pm | Tags: apache , lamp , mysql , php , phpmyadminLAMP stands for Linux Apache MySQL PHP (or Perl, Python). There is Also Called the Windows version is WAMP.
Installing LAMP on Ubuntu is relatively easy. First to install Apache:
sudo apt-get install apache2
To test the installation You Can Access: http://127.0.0.1. There is a default Apache page.
The next step is installing PHP5:
sudo apt-get install php5 libapache2-mod-php5
sudo / etc/init.d/apache2 restart
The next step is installing MySQL:
sudo apt-get install mysql-server
Setting the root password for mysql:
mysql-u root
mysql> SET PASSWORD FOR 'root' @ 'localhost' = PASSWORD ('parola_pt_root');
Now We Will install and phpMyAdmin:
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
For PHP to work together with MySQL, You Need to edit php.ini.
sudo gedit / etc/php5/apache2/php.ini
Somewhere in php.ini That Must be a line is commented by default (That begins with ";"). You Need to delete the character "" If There's this line, you must Simply add it.
extension = mysql.so
If you use this tutorial, if you have questions or if you Want to say your Opinion, please do note hesitate to leave a comment Below. Thanks! ![]()
















