apache is down


I just recently changed the root directory for a virtual server, and then I applied a signed cert. It seemed like changing the root directory went successfully, but when I later applied a signed cert and the system restarted the virtual server, apache would not start up again. I got the following error:

Failed to start service :

Starting httpd: Warning: DocumentRoot [/home/goto/public_html] does not exist Syntax error on line 1051 of /etc/httpd/conf/httpd.conf: can't get fastcgi file info: /home/goto/fcgi-bin/php5.fcgi(/home/goto/fcgi-bin/php5.fcgi), errno: 2 [FAILED]

Any thoughts?



How did you change the root directory exactly? By editing the Apache config, or using Virtualmin?

I used virutalmin.

That sounds like a bug then ..

The work-around is to manually edit /etc/httpd/conf/httpd.conf and change all references to the old home directory to the new one. Once this is done, you should be able to start Apache.

Thanks. I'll give that a try.

your suggestion did the trick. Thank you.

Please look into this bug with the home folder renaming option. In looking at the httpd.conf file, it was clear that some entries were correct (updated to the new value) and some were not. Let me know if you could use further help with this issue.

Glad that worked.

So I can get it the underlying bug fixed, do you happen to remember which line(s) you had to change the path in?

You know.... I should have saved a copy of the original problematic file. :(

Unfortunately I don't remember the precise details. I do recall that it seemed like the entries closest to the beginning of the description of the virtual host were incorrect, down through to DAV settings. I do recall that the SLL cert entries were correct, and everything below that.

Sorry to blow this opportunity to clearly identify this bug. I'll see about reproducing the behaviour on a test domain sometime soon.

I would be interested to know if you can re-produce this with a test domain, as I just created and then renamed a virtual server, and all the Apache directives were updated OK..