Server-ubuntu installation apache2 unable to parse PHP

Source: Internet
Author: User
Keywords Server Ubuntu PHP
Server ubuntuphp

I followed http://blog.csdn.net/hitabc141592/article/details/23556079 's installation of apache2 these
Then build him inside PHP, and then visit, HTML can, PHP cannot parse.
Tried to modify apache2.conf in Baidu to Ubuntu unable to parse all the methods of PHP, and finally found no use
I wrote a few of my own PHP discovery is also unresolved, in the middle of a number of restarts Apache

sudo /etc/init.d/apache2 restart

Besides, I'm curious.
Add the following two lines to the/etc/apache2/apache2.conf file:

AddHandler php5-script. php. html

AddType text/html. php. html

Restart apache2 after saving:

Sudo/etc/init.d/apache2 restart
is added in/etc/apache2/apache2.conf what I tried to put in the apache2.conf file at the end, put in random position, put apache2.conf all substituted for the above code. Not a good one.

  • 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.