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