11.14/11.15 Apache and PHP combined 11.16/11.17 Apache default virtual Host

Source: Internet
Author: User

11.14/11.15 Apache and PHP combined


Edit: httpd Master configuration file /usr/local/apache2.4/conf/httpd.conf

Remove the # number

Add PHP7 #

Telnet ip+80

Port not enabled, need to open iptables firewall



Change require


Requires action to take effect after configuration change

Reload Service

Add a line of PHP to parse


Page display



The result is access to the source code

If you encounter PHP cannot be resolved, you need to check the relevant Apache configuration file

( 1 ) Check Apache of the PHP



There is no load php5


See if there are any libphp 5.so file

If you have this file but do not load it, look at the Apache configuration file



Then check the Apache configuration file AddType

There are spaces in the middle,/x-httpd-php. php


Load and check configuration files after each configuration file change


11.16/11.17 Apache Default Virtual Host

Virtual Host configuration file vhost.conf



11.14/11.15 Apache and PHP combined 11.16/11.17 Apache default virtual Host

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.