LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache2 problem (https://www.linuxquestions.org/questions/linux-server-73/apache2-problem-4175531323/)

Klaphark 01-17-2015 10:50 AM

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

jlinkels 01-17-2015 11:53 AM

Sorry, but the information you posted is useless.

The screenshots do not show the names of the relavant files. You are running KDE. So open a Konsole. Try to start Apache again. Copy the screen and post it here in code../code tags.

Furthermore, since you are behind the console, you do see the complete error messages. They tell something. Did you check?

jlinkels

yo8rxp 01-17-2015 12:22 PM

edit /etc/apache2/apache2.conf

look for

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
and here edit new path .

instead of /var/www specify new target , but redo what you did prior to this on httpd.conf

Klaphark 01-18-2015 05:06 AM

Quote:

Originally Posted by jlinkels (Post 5302460)
Sorry, but the information you posted is useless.

The screenshots do not show the names of the relavant files. You are running KDE. So open a Konsole. Try to start Apache again. Copy the screen and post it here in code../code tags.

Furthermore, since you are behind the console, you do see the complete error messages. They tell something. Did you check?

jlinkels

Apperently i did provide enough information because 'yo8rxp' provided the answer where i was looking for

Quote:

Originally Posted by yo8rxp (Post 5302476)
edit /etc/apache2/apache2.conf

look for

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
and here edit new path .

instead of /var/www specify new target , but redo what you did prior to this on httpd.conf

Thank you for your answer, i understand it now :D


All times are GMT -5. The time now is 06:28 PM.