Apache won't restart after install of PHP [Fedora 15, 64-bit]
Hi,
I've had Apache 2.x running on my Fedora 15 box for a while, and it's been perfect. However, today I figured it would be good to put PHP on the machine too. So, I yummed php and a bunch of php modules onto the machine, which all installed with no problem. Having changed no config files, I went to restart Apache: Code:
# /sbin/service httpd start Code:
[Thu Sep 22 11:37:35 2011] [notice] caught SIGTERM, shutting down Code:
Sep 22 11:47:19 dbserver systemd[1]: httpd.service: control process exited, code=exited status=1 I did the exact same PHP install on a Fedora 12 box yesterday and it worked perfectly. I would appreciate some suggestions as to how to get Apache up and running again. (ideally without rebooting the machine, because it's being used as a database server by other machines). Thanks! |
Hi,
You should use: Code:
systemctl status httpd.service Quote:
Code:
/sbin/service httpd restart |
Thx for the systemctl info' - I wasn't sure how to use it properly. httpd is already stopped now anyway, so I guess start or restart won't make too much difference at the moment. The info for httpd from systemctl is as follows:
Code:
# systemctl status httpd.service FYI. There are no PHP modules being told to load in httpd.conf |
Hmmm. I now have it working again, by virtue of editing /etc/rc.d/init.d/httpd. However, it's not ideal, since it means I'm running prefork, when I really want to run worker.
I'd changed /etc/rc.d/init.d/httpd a while back, such that the line Code:
httpd=${HTTPD-/usr/sbin/httpd} Code:
httpd=${HTTPD-/usr/sbin/httpd.worker} |
Quote:
Anyway looks like the php module has problems with apache running with mpm worker. You only chance it to run it as a fastcgi if you absolutely want to run apache as mpm worker. |
Thanks for the point in the right direction. I have managed to get it all running again now with worker Apache, and PHP. Looking at the /etc/httpd/conf.d/php.conf file, I could see that there was a module missing for worker in /modules. So, per the info' at http://www.jqueryin.com/2010/08/07/s...-5x-fedora-13/ I installed the php-zts module:
Code:
yum install php-zts |
All times are GMT -5. The time now is 12:19 PM. |