Apache2 in ubuntu cannot explain php program faults.

Source: Internet
Author: User
Tags fully qualified domain name
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 $

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.