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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.