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#
LVL 1
haravallabhanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
Make sure apache is not running before you execute the command

`rcapache2 status`
and if it's running `rcapache2 stop`
0
haravallabhanAuthor Commented:
Hi, I did switch off apache before restarting again
ie i used
apache2ctl stop

but the problem persist
0
Pétur Ingi EgilssonSoftware Engineer -- ConsultantCommented:
-d serverroot
              Set  the  initial  value for the ServerRoot directive to server
              root. This can be overridden by the ServerRoot directive in  the
              configuration file. The default is /usr/local/apache2.

Meaning if you have specified the ServerRoot directive in the configuration file then it will OVERRIDE whatever you put after -d.
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
alextoftCommented:
Are you confusing ServerRoot with DocumentRoot?
0
elf_binCommented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.