Link to home
Start Free TrialLog in
Avatar of haravallabhan
haravallabhanFlag for India

asked on

apache2 server root initiation problem

Hi,
 I am running SUSE ENTERPRISE 10, with apache2.

upon running apache2 as

$httpd2 -d /usr/local/ensembl            
(to redirect apache to read the server root from the /usr/local/ensembl)

Apache2 doesnot seem to redirect and read from the directory /usr/local/ensembl but reads from /srv/www/htdocs .
however apache2 is running okay as http://localhost gives the test index page of apache.
There seems to a problem with apache redirection but I am unable to fix it.
I appreciate any help in fixing this.

Thanks
- ash#
Avatar of Pétur Ingi Egilsson
Pétur Ingi Egilsson
Flag of Iceland image

Make sure apache is not running before you execute the command

`rcapache2 status`
and if it's running `rcapache2 stop`
Avatar of haravallabhan

ASKER

Hi, I did switch off apache before restarting again
ie i used
apache2ctl stop

but the problem persist
ASKER CERTIFIED SOLUTION
Avatar of Pétur Ingi Egilsson
Pétur Ingi Egilsson
Flag of Iceland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Are you confusing ServerRoot with DocumentRoot?
Avatar of elf_bin
elf_bin

Use /etc/init.d/apache scripts to start, stop apache, NOT apachectl.

You need to make your change in he DocumentRoot entry in the config file, or add a symlink and allow apache to follow symlinks.