Apache2 in ubuntu cannot explain php program faults.
Install apache2, php5, mysql, and phpmyadmin:
Sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpmyadmin php5-cli php-pear
After the installation is complete, the PHP file cannot be parsed. after some searches, the solution is as follows:
Microdict @ ibm-t60 :~ $ Cd/etc/apache2/mod-enabled/
Microdict @ ibm-t60:/etc/apache2/mod-enabled $ sudo ln-s ../mod-available/php5.load php5.load
Microdict @ ibm-t60:/etc/apache2/mod-enabled $ sudo ln-s ../mod-available/php5.conf php5.conf
Microdict @ ibm-t60:/etc/apache2/mod-enabled $ sudo/etc/init. d/apache2 restart
* Restarting web server apache2 apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
Apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [OK]
Microdict @ ibm-t60:/etc/apache2/mod-enabled $