Re: PHP-MySQL-Apache madness!
PHP and MySQL compile and install fine, but Apache exits with no error codes in this configuration. I have put Apache in debug mode and it still exits with no error codes! When I remove the PHP module, Apache starts fine. PHP works fine on the command line. MySQL fine works on the command line. I had exactly this problem in OpenBSD 3.7, when using PHP (both 4.4 and 5.0.x) and MySQL 4.1.x. Apache simply didn't start, but gave no error message at all. If I disabled PHP, it did start. I thought it was PHP, so fiddled around with options, versions and so on, and nothing helped. Downgrading to MySQL 4.0.x (the version in the ports, in fact) and recompiling PHP (any version) solved the problem.
PHP-MySQL-Apache madness!
I am tearing my hair out. I like to compile PHP and MySQL from source, for use with Apache on OpenBSD - due to a recent intrusion via PHP vulnerability, I absolutely need to run the latest versions of everything. I have PHP-MySQL-Apache(CHROOT) working fine on a 3.8 installation but cannot get it working with 3.6 anymore. Please don't tell me the upgrade the 3.6, the server is in a remote location and the FAQ does not recommend upgrading the OS remotely anymore. PHP and MySQL compile and install fine, but Apache exits with no error codes in this configuration. I have put Apache in debug mode and it still exits with no error codes! When I remove the PHP module, Apache starts fine. PHP works fine on the command line. MySQL fine works on the command line. The most @#$1!% frustrating thing is that all was working fine on this configuration with MySQL 4 and PHP 4.4.0. When I upgraded to PHP 4.4.1 and restarted Apache it all worked fine... then one day later the OpenBSD kernel panic'ed or was otherwise unresponsive. A full reboot was required by pulling the plug, because the console would not respond (I walked my brother through this over the phone - remote location). When the system came back up, Apache would not start. Annoyed, I uninstalled PHP and then installed the PHP binary package, which is somewhat out of date. Then Apache worked fine, but I absolutely cannot run with an old version of PHP due to security issues. I am at the point of compiling Apache on my own and getting that running. It is maddening that there are no error logs in this configuration (see above). It makes no sense why it was working before, and not now. I have even reverted back to PHP 4.4.0 and it still doesn't work like it did before. Tried uninstalling PHP before 'make install' of the old version but still no dice. Same thing with PHP 5.0.5. Please help this is driving me fucking nuts. Best regards, Kelly Martin -- Kelly's Red Beet Factory www.redbeet.com
Re: PHP-MySQL-Apache madness!
On Sun, Nov 06, 2005 at 04:30:46AM -0500, Kelly Martin wrote: I am tearing my hair out. I like to compile PHP and MySQL from source, for use with Apache on OpenBSD - due to a recent intrusion via PHP vulnerability, I absolutely need to run the latest versions of everything. I have PHP-MySQL-Apache(CHROOT) working fine on a 3.8 installation but cannot get it working with 3.6 anymore. Please don't tell me the upgrade the 3.6, the server is in a remote location and the FAQ does not recommend upgrading the OS remotely anymore. PHP and MySQL compile and install fine, but Apache exits with no error codes in this configuration. I have put Apache in debug mode and it still exits with no error codes! When I remove the PHP module, Apache starts fine. PHP works fine on the command line. MySQL fine works on the command line. The most @#$1!% frustrating thing is that all was working fine on this configuration with MySQL 4 and PHP 4.4.0. When I upgraded to PHP 4.4.1 and restarted Apache it all worked fine... then one day later the OpenBSD kernel panic'ed or was otherwise unresponsive. A full reboot was required by pulling the plug, because the console would not respond (I walked my brother through this over the phone - remote location). When the system came back up, Apache would not start. Annoyed, I uninstalled PHP and then installed the PHP binary package, which is somewhat out of date. Then Apache worked fine, but I absolutely cannot run with an old version of PHP due to security issues. I am at the point of compiling Apache on my own and getting that running. It is maddening that there are no error logs in this configuration (see above). It makes no sense why it was working before, and not now. I have even reverted back to PHP 4.4.0 and it still doesn't work like it did before. Tried uninstalling PHP before 'make install' of the old version but still no dice. Same thing with PHP 5.0.5. Please help this is driving me fucking nuts. Best regards, Kelly Martin Maybe the httpd binary or some library got damaged in the kernel panic? If you have some way of discovering what fsck did to your filesystem, that might give you a clue. Otherwise, recompiling 3.6-stable may help. Have you checked to see if there are any important OpenBSD-specific patches to PHP in the ports tree? It might be better to manually apply the diff between PHP 4.4.0 and PHP 4.4.1 to the OpenBSD version, checking for problems as you go. Aside from these shots in the dark, I know too little to offer any real assistance. Joahim
Re: PHP-MySQL-Apache madness!
Kelly Martin wrote: OpenBSD kernel panic'ed or was otherwise unresponsive. A full reboot was required by pulling the plug, because the console would not respond (I walked my brother through this over the phone - remote location). When the system came back up, Apache would not start. I know you wrote not to suggest to upgrade to 3.8, but look to me that you have your brother available to help. I know I wrote the instruction before for a friend that never even touch Unix in his life before on how to set this up (OpenBSD). If you think about it for a few seconds. I would definitely argue that you would have lost less time by writing the instruction and sending them to your brother, let him wipe it clean and bring it back up where you can then ssh to it and do all that you need form that point. From the CD, or even from the bsd.rd version, setting up a box is really quick, ok if you need to download the full system from the bsd.rd version over ftp it may take a bit more time, but still, a few simple question to answer and you are home free, unless you really don't trust your brother, but even then... Not what you want to ear I know for sure, but just think about it... I am sure it would take you less time this way and you would not have to deal with madness... I am sure you can setup your box from scratch in less then 10 minutes with a CD. Have your brother do that over the phone if you have to. I am sure he will fell good in the end and your problem will be gone as well, plus you would have an upgraded version. Think how much time you already spend on it. Hope this provide you some moral support anyway. Daniel