Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on Linux (Ubuntu). I've installed apache to /var/local/ and I've moved the Apache directory to /usr/local/. Now it can't start.

I've edited the httpd.conf file changing all /var/local text to /usr/local/. Which other files do I have to change?

Thank you!

share|improve this question
When you say you can't start, what do you mean. And was there a good reason to change the directories? Maybe you could symlink the new locations back to the original and try starting again. – Matt Simmons Jan 20 '10 at 10:29
What's in your apache logs? – Maxwell Jan 20 '10 at 10:31
How did you install+move Apache? Are you modifying the version installed from the standard repository by moving files around, or compiling from source? – David Spillett Jan 20 '10 at 10:48
Ive downloaded apache from tar, and ./configured ( Where i had mistake writing --prefix=/var/... ) then make and make install now i ve looked logs there is no new logs even i try to start apache. last of all : if i move apache to first place it will start i am sure. But i want it to be start from here where i moved. Thank you for your concern. I am still need to find solution. Is there any recommendation ? – ONSC Jan 20 '10 at 11:02
I ve changed everything with gedit where /var there is. But nothing happened. So I ve reinstalling again now. Thank you all. – ONSC Jan 20 '10 at 11:40

Without knowing what exactly went wrong, the easiest thing to do would be

  1. delete the old install
  2. make a fresh one with the right parameters to ./configure

Is there any reason why you want to compile Apache yourself and not use the package that comes with Ubuntu?

share|improve this answer
I ve done what you say at last :) But the biggest reason to try solving this problem is to learn how its working. So i ve preferred to install apache myself instead of ubuntu packages. Thank you. :) – ONSC Jan 20 '10 at 12:05
I really think she is right, what any admin would do would be to run ./configure and again with the proper prefix , or maybe just make the symlink as Matt recommended, but I think that would be messier. If you just want to learn what apache does with this prefix directory to understand it better, I recommend a developers mailing list, irc channel, or maybe just look at the code. – Kyle Brandt Jan 20 '10 at 13:44
Thank you everybody. – ONSC Jan 20 '10 at 14:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.