Welcome, Guest
Please Login or Register.
Lost Password?
Re:PHP broken after yum update (1 viewing)
Post Reply

TOPIC: Re:PHP broken after yum update

#15336
dibatech (User)
Posts: 5
graphgraph
PHP broken after yum update 2008/08/03 09:46  
Hi all.
I have recently done a yum update on my Centos 5 based server.

After the update 2 Things were broken that i know of.

1. Dynamic DNS updates did not work as named complained about access rights to .host.jnl files.

That was quick to fix.

2. PHP is not working through httpd anymore.

A usual phpinfo() file gets executed properly via commandline.
A browser connection just waits....
A http file however works fine.

I have reinstalled both httpd and PHP

I have tried installing php4 or 5 and both.

the usual /etc/httpd/conf/conf.d/php.conf gets loaded correctly.

httpd -M confirms that php5_module (shared) is loaded etc.

It seems that apache and php is no longer interested in talking.

Nothing is logged to error.log in /var/log/httpd/error or in the corresponding /home/xxx/log/error.log

I'm stumped.

Any ideas?

Post edited by: dibatech, at: 2008/08/03 09:46
  The administrator has disabled public write access.
#15353
andreychek (Moderator)
Posts: 592
graphgraph
Re:PHP broken after yum update 2008/08/04 04:53  
Yeah, that's fairly odd.

First, what was the problem with the Dynamic DNS updates -- was it a permissions issue?

Just a few thoughts though --

Just so we understand your setup, are you saying you have Virtualmin configured to use mod_php, rather than CGI or mod_fcgid (System Settings -> Server Templates -> Default Settings -> Apache Website -> Default PHP execution mode)?

And just in case, I suppose I'm curious how the permissions look on your PHP session directory:

ls -l /var/lib/php
-Eric
  The administrator has disabled public write access.
#15359
dibatech (User)
Posts: 5
graphgraph
Re:PHP broken after yum update 2008/08/04 08:46  
1. Yep. The dynamic DNS was a permissions issue.

2. Virtual server template details (Apache website)

ServerName ${DOM}
ServerAlias www.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog ${HOME}/logs/error_log
CustomLog ${HOME}/logs/access_log combined
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory ${HOME}/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory ${HOME}/cgi-bin>
allow from all
</Directory>

No mention of mod php, cgi or anything....
  The administrator has disabled public write access.
#15360
dibatech (User)
Posts: 5
graphgraph
Re:PHP broken after yum update 2008/08/04 08:50  
/var/lib/php

[root@ns1 ~]# ls -l /var/lib/php
total 20
drwxrwx--- 2 root apache 16384 Aug 4 16:39 session


Thanx
  The administrator has disabled public write access.
#15364
JamieCameron (Admin)
Posts: 362
graphgraph
Re:PHP broken after yum update 2008/08/04 11:56  
You can check if mod_php or fastCGI is being used to run PHP scripts for the domain by selecting it from the left menu, opening the Server Configuration category, clicking on Website Options and looking at the 'PHP script execution mode' field.
  The administrator has disabled public write access.
#15367
dibatech (User)
Posts: 5
graphgraph
Re:PHP broken after yum update 2008/08/04 19:39  
Does not seem to be there?


Create Virtual Server
Edit Virtual Server
Edit Mail and FTP Users
Edit Mail Aliases
Edit Databases
[–]
Server Configuration
Change Domain Name
Change IP Address
DNS Options
Edit Proxy Website
Move Virtual Server
[–]
Administration Options
Edit Owner Limits
Excluded Directories
Manage Extra Admins
[–]
Disable and Delete
Delete Virtual Server
Disable Virtual Server
[–]
Services
Configure Website
DAV Authentication
DNS Domain
Mailing Lists
Protected Directories
SVN Repositories
[+]
Logs and Reports
AWstats Report
Apache Access Log
Apache Error Log
Webalizer Report
[–]
System Settings
Features and Plugins
Server Templates
Bandwidth Monitoring
Upgrade to Virtualmin Pro
Module Config
Re-Check Config
[+]
Email Messages
New Mailbox Email
Updated Mailbox Email
[+]
System Customization
Custom Fields
Custom Shells
[+]
Addresses and Networking
Shared IP Addresses
Dynamic IP Update
[+]
Limits and Validation
Check Disk Quotas
Validate Virtual Servers
FTP Directory Restrictions
[+]
Add Servers
Import Virtual Server
Migrate Virtual Server
[+]
Backup and Restore

Thanx
  The administrator has disabled public write access.
#15369
JamieCameron (Admin)
Posts: 362
graphgraph
Re:PHP broken after yum update 2008/08/04 20:39  
Are you using the GPL or pro version of Virtualmin? The GPL release can only run PHP via mod_php, so has no option to change to a different mode.

Also, make sure you are logged in as root - other users may not have access to that Website Options page.
  The administrator has disabled public write access.
#15405
dibatech (User)
Posts: 5
graphgraph
Re:PHP broken after yum update 2008/08/05 19:26  
GPL.
Logging in as root.

Thanks for your help. really appreciated.
Is there anywhere i should manually add this in a file??
  The administrator has disabled public write access.
#15409
JamieCameron (Admin)
Posts: 362
graphgraph
Re:PHP broken after yum update 2008/08/05 20:49  
So it looks like mod_php is broken in some odd way..

Make sure that you have only one of PHP 4 or 5 loaded as an Apache module at any one time - having both can cause strange crashes.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.