How to install LAMP in 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 a Windows version is called 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 page in Apache.
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 must be a line that 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 not hesitate to leave a comment below. Thanks!
























