LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-17-2015, 10:50 AM   #1
Klaphark
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
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
 
Old 01-17-2015, 11:53 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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
 
Old 01-17-2015, 12:22 PM   #3
yo8rxp
Member
 
Registered: Jul 2009
Location: Romania
Distribution: Ubuntu 10.04 Gnome 2
Posts: 102

Rep: Reputation: 31
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

Last edited by yo8rxp; 01-17-2015 at 12:23 PM.
 
Old 01-18-2015, 05:06 AM   #4
Klaphark
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jlinkels View Post
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 View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BASH: service apache2 start => check apache2 response dragonetti Linux - Newbie 2 10-29-2011 11:01 AM
Do I have a path problem, an Apache2 problem or a Javascript problem or any other pro rblampain Linux - Networking 0 12-29-2010 03:50 AM
Apache2 - have to restart apache2 process every 10 mins to clear /tmp directory.... levi dehaan Linux - Software 8 09-01-2009 06:34 PM
Apache2 problem unkn0wn Debian 12 04-08-2006 01:48 AM
GD with apache2 problem rincewind Linux - Software 1 08-31-2004 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration