Wednesday, August 15, 2012

Install lamp server with 1 command in Ubuntu

LAMP {Linux, Apache, MySQL and PHP} is  open source Web development platform that uses Linux  operating systems, Apache as Web server, MySQL database management system and PHP as the object-oriented language.



Open terminal and Type the command :install it   first  with
 sudo apt-get install tasksel 
Now to install LAMP, type the taskel command in terminal :
 sudo  tasksel
 And select LAMP Server:





 During the installation  you  will be  asked  to insert the  mysql root  password

 check if php is working :

 $sudo vi /var/www/info.php
 and write this
 
<?php
phpinfo();
?>
 write and  quit
 restart apache2 ,
 
#sudo /etc/init.d/apache2 restart

So open browser and type :

http://yourip/info.php or http://localhost/info.php
 

Php is installed.


if you full manage  your  lamp Server database, install  phpmyadmin
 
sudo apt-get install phpmyadmin

login  to phpmyadmin, open browser and type :

http://ip/phpmyadmin   or http://localhost/phpmyadmin


No comments:

Post a Comment