Unusual Apache issue on my server !!!
Experts,
I have a custom application built(previous vendor built it and we took over it with no KT) using CGI and apache. looking at the conf file the apache was serving pages as root as the CGI invokes commands that need to be run as root.(I know this is a bad idea of running apache as root). All we did is to reboot the server and now the site doesnt come up and httpd service is in "maintenance" state with error. "Error:\tApache has not been designed to serve pages while\n\trunning as root. There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n [ Mar 20 09:53:17 Method "start" exited with status 1 ]" Couple of questions: 1) would a reboot change any apache binaries that would cause this and need a rebuild of apache ? 2) Is there a easy fix that i can bring the application up by letting apache run as root? I have been trying to get it working from last 2 days and no luck till now. Any help would be much appreciated. Thanks in advance. |
what was the command???
Quote:
Quote:
?????? |
Thank you for your reply #root.
I have already done that. HTTPD was online before and after the reboot, it wont come out of maintenance mode. The error i get is that i cant run apache as root. |
oh yes you did
but i was saying that problem like this occur when you start the service which was already in the start state for eg you say "service httpd start" while the service was already in the start state so it is always recommended to use "service httpd restart" that was the reason, i was asking that which one of the two command was used |
:)
Used Code:
service httpd stop Code:
service httpd start |
Quote:
Quote:
|
All times are GMT -5. The time now is 05:46 AM. |