Apache2 problem

Hi,

Im trying some stuff with Apache2 on OpenSue 12.3 (32 bit KDE).

I installed Apache2 via Terminal, it all wen’t successfully. After editing the /etc/apache2/httpd.conf file, apache cant be started

What i did is i edited the httpd.conf file and put ServerRoot “/lab/apache2” in it.

http://i.imgur.com/Nh5UDoP.png
I used Root acces for this, ofcouse

After trying to start the apache2 service (systemctl start apache2.service) it says this:

http://i.imgur.com/NAsiwhz.png

I even tried chmod 777 /lab/apache2 but that doesn’t give the solution.

What i’m basicly trying to do is to point another Server root directory where Apache2 keeps it’s server files.

What did i do wrong?

Support is much appreciated

Hi,

you need to add the

include

in front of that entry separated by a white space and restart apache2

rcapache2 restart

but what you should be reading (follow the instructions too) is the output of this.

tail -n5 httpd.conf

Good Luck.

Sorry missing the full path.

tail -n5 /etc/apache2/httpd.conf

Looks like you’re just creating a new web root?
Use YAST instead of editing the config file directly…
If you don’t already see the HTTP Server management applet in YAST, you can install with the following

zypper in yast2-http-server

You’ll make far fewer errors using YAST.

TSU

If you don’t replicate the /etc/apache2/ directory structure in /lab exactly, it’ll completely explode as it tries to find the include and other files there.

However, it would be considerably easier if you explained what you had in mind exactly and why you need to have two sets of server configuration files? Are you confusing Serverroot with Documentroot?