Hi Friends,
I am trying to configure a blog on Centos4.0. The blog is written in php and I am not able to run the php applications on this system.
php-pear-4.3.9-3.2 php-4.3.9-3.2 php-ldap-4.3.9-3.2 php-mysql-4.3.9-3.
Php is installed on the system and in the httpd.conf file I have added index.php for Directory Index but whenever I try to access the blog i get the contents of the file and php is not executing.
The permissions on the directory under /var/www/html/blog is set to 777 but still the problem is persisting.
What should I do and where to check ?
Thanks & Regards
Ankush Grover
Hi Friends,
I am trying to configure a blog on Centos4.0. The blog is written in php and I am not able to run the php applications on this system.
php-pear-4.3.9-3.2 php-4.3.9-3.2 php-ldap-4.3.9-3.2 php-mysql-4.3.9-3.
Php is installed on the system and in the httpd.conf file I have added index.php for Directory Index but whenever I try to access the blog i get the contents of the file and php is not executing.
The permissions on the directory under /var/www/html/blog is set to 777 but still the problem is persisting.
What should I do and where to check ?
Thanks & Regards
Ankush Grover _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Can you show whats on the error_log ?
Leonel
On 2/15/07, Leonel Nunez leonel@enelserver.com wrote:
Hi Friends,
I am trying to configure a blog on Centos4.0. The blog is written in php and I am not able to run the php applications on this system.
php-pear-4.3.9-3.2 php-4.3.9-3.2 php-ldap-4.3.9-3.2 php-mysql-4.3.9-3.
Php is installed on the system and in the httpd.conf file I have added index.php for Directory Index but whenever I try to access the blog i get the contents of the file and php is not executing.
The permissions on the directory under /var/www/html/blog is set to 777 but still the problem is persisting.
What should I do and where to check ?
Thanks & Regards
Ankush Grover _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Can you show whats on the error_log ?
Leonel
access_logs
172.23.9.16 - - [15/Feb/2007:18:55:55 +0530] "GET /blog/install.php HTTP/1.1" 200 127934 "-" "Opera/9.00 (X11; Linux i686; U; en)" 172.23.9.16 - - [15/Feb/2007:18:57:06 +0530] "GET /blog/install.php HTTP/1.1" 200 127934 "-" "Opera/9.00 (X11; Linux i686; U; en)"
Nothing in errors logs means no warning and no errors when I try to access http://172.23.9.12/blog or http://172.23.9.12/blog/install.php
httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c
Does it means apache is not compiled with php. But there is php.conf file under /etc/httpd/conf.d/
Thanks & Regards
Ankush Grover
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Php is installed on the system and in the httpd.conf file I have added index.php for Directory Index but whenever I try to access the blog i get the contents of the file and php is not executing.
eh? Why did you add index.php to the directory index setting? This is all taken care of within the php package.
The permissions on the directory under /var/www/html/blog is set to 777 but still the problem is persisting.
777 is a bad set of permissions for a web app. Standard web permissions are usually 644 or 755. giving world writeable permissions (777) on a php app is basically like handing a bum the keys to your car.
What should I do and where to check ?
Look in /var/log/httpd/error_log and see what it's complaining about.
On Thu, February 15, 2007 7:51 pm, ankush grover wrote:
Php is installed on the system and in the httpd.conf file I have added index.php for Directory Index but whenever I try to access the blog i get the contents of the file and php is not executing.
The permissions on the directory under /var/www/html/blog is set to 777 but still the problem is persisting.
Maybe you should add this line at httpd.conf:
AddType application/x-httpd-php .php
Dwi Suharto -------------------------- Technical Support Rumahweb http://www.rumahweb.com
On 2/15/07, dwisp@rumahweb.com dwisp@rumahweb.com wrote:
On Thu, February 15, 2007 7:51 pm, ankush grover wrote:
Php is installed on the system and in the httpd.conf file I have added index.php for Directory Index but whenever I try to access the blog i get the contents of the file and php is not executing.
The permissions on the directory under /var/www/html/blog is set to 777 but still the problem is persisting.
Maybe you should add this line at httpd.conf:
AddType application/x-httpd-php .php
Dwi Suharto
Yes, the line was missing, I already did this and changed the subject line of my problem to (solved).
Anyway thanks for your guidance and help.
Thanks & Regards
Ankush Grover