sudo apt-get install tasksel
sudo tasksel
And select LAMP Server:
During the installation you will be asked to insert the mysql root password
Now check if php is working :
sudo vi /var/www/info.php
and add
<?php
phpinfo();
?>
phpinfo();
?>
save and exit
restart apache2 ,
sudo /etc/init.d/apache2 restart
Now open browser and type :
Php is installed.
To full manage your lamp Server database, install phpmyadmin
sudo apt-get install phpmyadmin
To login to phpmyadmin, open browser and type :
http://ip/phpmyadmin or http://localhost/phpmyadmin
No comments:
Post a Comment