why does this always happen to me?
Posted: Thu Dec 09, 2004 11:32 am
Well, I've done it again. I've somehow broken something after installing Scott's php and mysql.
** this is on a test system so it doesn't matter **, but I can't figure out what's wrong nor how to fix it, and would appreciate advice.
Basically I started with Plesk 7.14 on RH9 with all updates from fedoralegacy installed via yum.
Everything worked perfectly.
Then I did a yum install php* mysql* (having done an rpm -e php-manual first)
No problems, no errors. The right packages were installed. All looked well. Plesk itself works fine.
But apache doesn't stay up for more than a second.
Last time this happened it was just a Zend Optimzer issue. All I had to do was re-install Zend and all was well.
But this time php works perfectly from the command line, with and without Zend Optimizer installed. So it isn't Zend.
But httpd just won't stay up. It starts but then nothing...
The problem is that I can't find any errors. /var/log/httpd/error_log contains nothing out of the ordinary. No seg faults. Nothing.
I've tried copying the php.ini that came with the rpm into /etc/php.ini just in case. No change. I've tried removing all reference to Zend and the Ioncube loader in the last 10 lines of php.ini. No difference.
Any suggestions? Where else should I look for errors? I just don't get it - the php and mysql rpms don't touch apache, do they, so I assume this has to be a php issue somehow, even though it works fine from the command line?
Faris.
# update
This appears to be reproducable. I had created an image of the system before installing php 4.3.9 and mysql 4 so I went back to that and tried the same thing and had exactly the same result.
This time round I noticed that if I did not comment out the ioncube loader (which is for version4.2 of php) I got a segfault when running php at the command line, just as I would expect. Removing it allows php to run, but httpd just isn't interested.
** this is on a test system so it doesn't matter **, but I can't figure out what's wrong nor how to fix it, and would appreciate advice.
Basically I started with Plesk 7.14 on RH9 with all updates from fedoralegacy installed via yum.
Everything worked perfectly.
Then I did a yum install php* mysql* (having done an rpm -e php-manual first)
No problems, no errors. The right packages were installed. All looked well. Plesk itself works fine.
But apache doesn't stay up for more than a second.
Last time this happened it was just a Zend Optimzer issue. All I had to do was re-install Zend and all was well.
But this time php works perfectly from the command line, with and without Zend Optimizer installed. So it isn't Zend.
But httpd just won't stay up. It starts but then nothing...
The problem is that I can't find any errors. /var/log/httpd/error_log contains nothing out of the ordinary. No seg faults. Nothing.
I've tried copying the php.ini that came with the rpm into /etc/php.ini just in case. No change. I've tried removing all reference to Zend and the Ioncube loader in the last 10 lines of php.ini. No difference.
Any suggestions? Where else should I look for errors? I just don't get it - the php and mysql rpms don't touch apache, do they, so I assume this has to be a php issue somehow, even though it works fine from the command line?
Faris.
# update
This appears to be reproducable. I had created an image of the system before installing php 4.3.9 and mysql 4 so I went back to that and tried the same thing and had exactly the same result.
This time round I noticed that if I did not comment out the ioncube loader (which is for version4.2 of php) I got a segfault when running php at the command line, just as I would expect. Removing it allows php to run, but httpd just isn't interested.