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 taskselNow to install LAMP, type the taskel command in terminal :
sudo taskselAnd 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
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