Tuesday, March 26, 2013

Check if Apache & PHP was properly installed on Ubuntu Linux

Once your have installed Ubuntu server, depends on your setup option, Apache & PHP may not be installed. You can then issue the following command to install then.

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


print_r (phpinfo());


If a PHP verion page showup, it means you Apache & PHP setup is completed.

No comments:

Post a Comment