haravallabhan
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#
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#
ASKER
Hi, I did switch off apache before restarting again
ie i used
apache2ctl stop
but the problem persist
ie i used
apache2ctl stop
but the problem persist
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you confusing ServerRoot with DocumentRoot?
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.
You need to make your change in he DocumentRoot entry in the config file, or add a symlink and allow apache to follow symlinks.
`rcapache2 status`
and if it's running `rcapache2 stop`