0

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!!

2

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

DocumentRoot "/var/www/html/drupal"
6
  • @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
  • @_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 – user9517 Oct 14 '10 at 19:31
  • @Iain: Yes, I've tried that too. If a restart was logged, where might the log file be located, and/or what would it's file name be. Strange thing is I enter the CMDs, pause for a sec, then return no error or confirmation. Should I get a confirmation on the success execution of the command? – blunders Oct 14 '10 at 20:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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