weisdaclick Posted January 28, 2011 Share Posted January 28, 2011 My web server has suddenly stopped displaying php pages - just a directory listing. It was all running fine for a year or so, I have some html pages and they are all good. I think apache screwed up as there were something like 40 httpd processes so I killed them off and restarted apache. Then went for a server reboot, then did an update - all came up fine but php pages are still not showing. This is a CentOs server kernel 2.6.18-194.3.1.el5 with SSL # httpd -v Server version: Apache/2.2.3 Server built: Aug 30 2010 12:32:08 # php -v PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37) Copyright © 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies <IfModule prefork.c> LoadModule php5_module modules/libphp5.so </IfModule> <IfModule worker.c> # Use of the "ZTS" build with worker is experimental, and no shared # modules are supported. LoadModule php5_module modules/libphp5-zts.so </IfModule> # # Cause the PHP interpreter to handle files with a .php extension. # AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php My php.conf file: # # Cause the PHP interpreter to handle files with a .php extension. # AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php # # Uncomment the following line to allow PHP to pretty-print .phps # files as PHP source code: # #AddType application/x-httpd-php-source .phps I don't know that much about php (more of a server person), any help appreciated. Let me know if more info is required. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.