Friday, January 10, 2014

install apache , mysql , php ( lamp server) in any version of linux







for apache2

sudo apt-get install apache2

for mysql

sudo apt-get install mysql

for php

sudo apt-get install php5

and lastly

sudo nano /var/www/info.php

or sudo edit /var/www/info.php

put here
<?php
phpinfo();
?>


restart apache2

sudo service apache2 restart


to test it just put in ur browser
127.0.0.1/info.php

for any quires...  comment bellow.  





No comments:

Post a Comment