Jump to content

PHP Pages Stopped Working


Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/225969-php-pages-stopped-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.