sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo /etc/init.d/apache2 restart
Afterwards, issue vi a php file (phpinfo.php) in dir /var/www , with content below
<?php print_r (phpinfo()); ?>
If a PHP verion page showup, it means you Apache & PHP setup is completed.
No comments:
Post a Comment