Results 1 to 5 of 5

Thread: Apache2 problem

  1. #1

    Default 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.


    I used Root acces for this, ofcouse

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



    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

  2. #2

    Default Re: Apache2 problem

    Hi,

    you need to add the

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

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

    Code:
    tail -n5 httpd.conf
    Good Luck.
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  3. #3

    Default Re: Apache2 problem

    Sorry missing the full path.

    Code:
    tail -n5 /etc/apache2/httpd.conf
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,293
    Blog Entries
    2

    Default Re: Apache2 problem

    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
    Code:
    zypper in yast2-http-server
    You'll make far fewer errors using YAST.

    TSU

  5. #5
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: Apache2 problem

    Quote Originally Posted by Klaphark View Post
    What i'm basicly trying to do is to point another Server root directory where Apache2 keeps it's server files.
    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?
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •