Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

UPDATE: -- bindbn: Try change DocumentRoot in (/etc/httpd/conf/httpd.conf) to (DocumentRoot "/var/www/html/drupal") -- @bindbn: That didn't work. One question I have is is does the "www" folder have some meaning to Apache, since I've currently got the install here. "/var/www/drupal" instead of here "/var/www/html/drupal" -- Also, after I made the suggested change I ran the CMDs "# httpd -k stop" then "# apachectl start" as sudo, are those correct?


Context: First time using Apache, and followed the default install directions for a CMS called Drupal.

Problem is that now the install is not root, meaning in the case of www.sample.com, it would be running at www.sample.com/drupal, not at www.sample.com; which is where I need it.

Googled all this, searched serverfault questions, and I'm still completely lost; also, I really don't want to mess up an Apache config doing the wrong thing; plus, appears Apache config mods change a lot version to version. Thanks in advance for any pointers!!

INFO: Apache-2.2, CentOS-5.5

If you have any questions, just let me know -- again, thanks!!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Try change DocumentRoot in /etc/httpd/conf/httpd.conf:

DocumentRoot "/var/www/html/drupal"
share|improve this answer
    
@bindbn: That didn't work. One question I have is is does the "www" folder have some meaning to Apache, since I've currently got the install here. "/var/www/drupal" instead of here "/var/www/html/drupal" -- Also, after I made the suggested change I ran the CMDs "# httpd -k stop" then "# apachectl start" as sudo, are those correct? –  blunders Oct 14 '10 at 18:34
    
"www" has no special meaning other than being the default for a lot of distributions. You may have more than one DocumentRoot if you're using a VirtualHost directive, each VirtualHost has its own DocumentRoot. –  DerfK Oct 14 '10 at 18:38
    
@DerfK: Great, thanks for the clarification. –  blunders Oct 14 '10 at 18:43
    
@_All: Not sure if it matters, but I also just set this as well. "<Directory "/var/www/drupal">" -- guessing the issue is that I'm not restarting Apache correctly, do I type "# apachectl start" or "apachectl start", because if it's the last one, I get this error "-bash: apachectl: command not found" –  blunders Oct 14 '10 at 18:44
    
@blunders: it's probably apache2ctl restart you want to use to restart apache –  Iain Oct 14 '10 at 19:31

Your Answer

 
discard

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.