PHP files not beeing parsed
I'm trying to create an utility tool with php but when I try to access the files(from the browser) I get the Save As... dialog.
I've checked the configuration files and everything seems ok; the httpd -M shows that the php5 module(shared) is loaded, httpd -t says that the syntax is ok.(Also Plesk is working)
I'm running a CentOS, httpd(Apache 2.2.3) as a service and the config files are:
LoadModule php5_module modules/libphp5.so
LoadModule php5_module modules/libphp5-zts.so
AddHandler php5-script .php
AddType text/html .php
I also found a php-cgi.conf in the conf.d directory
ServerName //not allowed to post URLS//:80
ServerAlias //not allowed to post URLS//
ServerAdmin "not allowed to post URLS"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
I have looked in the /usr/bin directory and there are php and php-cgi files present.
scriptAlias /phppath/ "/usr/bin/"
Action php-script /phppath/php-cgi
I also found two php.ini files:
I've looked for the error logs but there's nothing in there to suggest that there is a problem.
What I tried to run is the following:
gogu.php (Save as dialog appears)
gogu1.php(Save as dialog appears)
<?php phpinfo(); ?>