I'm setting up a new CentOS 7 server,
I installed apache httpd successfully and get the html welcome page then I installed php 5.4 then tried to test it using test page:
<?php
phpinfo();
?>
placed it in /var/www/html but I got a blank page. apache error log says:
[Mon Jan 26 21:20:12.474636 2015] [:error] [pid 8352] [client ::1:60206] PHP Fatal error: Unknown: Failed opening required '/var/www/html/test.php' (include_path='.:/php/includes') in Unknown on line 0
What I tried is:
in /etc/https/conf/httpd.conf I added:
LoadModule php5_module "/usr/lib64/php"
AddType application/x-httpd-php .php
and found: DirectoryIndex index.html then add index.php
I also uncommitted include_path='.:/php/includes' in /etc/php.ini
then restart apache. Nothing changed! Any idea?
Aucun commentaire:
Enregistrer un commentaire