Today manually compiled
httpd
and
PHP7
, ultimately, unable to successfully parse PHP, help.
Environment:
System: Ubuntu 14.04
HTTPD version: 2.4.18
PHP Version: php7.0.1
HTML files can be accessed, but PHP files directly display the contents of the file, there are no configured friends, know how to configure?
Thank you all first!!!
Reply content:
Today manually compiled httpd
and PHP7
, ultimately, unable to successfully parse PHP, help.
Environment:
System: Ubuntu 14.04
HTTPD version: 2.4.18
PHP Version: php7.0.1
HTML files can be accessed, but PHP files directly display the contents of the file, there are no configured friends, know how to configure?
Thank you all first!!!
The problem is resolved, modify the Apache configuration file as follows:
File path:/usr/local/httpd/conf/httpd.conf
The previous path is the path to compile the installation, and the following sentence is added to the last side of the file:
AddHandler application/x-httpd-php. php
Thank you for the article CentOS manual compilation Install Apache, PHP, MySQL
Thanks for sharing! My path in Ubuntu /etc/apache2/apache2.conf
, add the same words will be able to become ~