Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 "syntax error" [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mhelvens
Guru
Guru


Joined: 17 Mar 2005
Posts: 337
Location: The Netherlands

PostPosted: Thu May 08, 2008 4:48 pm    Post subject: Apache2 "syntax error" [SOLVED] Reply with quote

I haven't used apache in a long while, but now I need it again. I have updated it. But when I try to start it with:

Code:
/etc/init.d/apache2 start


it gives the following error message:

Quote:
* Apache2 has detected a syntax error in your configuration files:


The help-text for /usr/sbin/apache2 appears directly after that. No specific syntax errors are given.

I tried a clean install. I unmerged apache, deleted the /etc/apache2 directory, and re-emerged it. Same error.

Could someone help me out? Should I provide more information?

Thanks!


Last edited by mhelvens on Thu May 08, 2008 8:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Thu May 08, 2008 5:24 pm    Post subject: Reply with quote

apache2 in gentoo got 1 more conf file
/etc/conf.d/apache2
_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Back to top
View user's profile Send private message
mhelvens
Guru
Guru


Joined: 17 Mar 2005
Posts: 337
Location: The Netherlands

PostPosted: Thu May 08, 2008 5:36 pm    Post subject: Reply with quote

I deleted that one too and re-emerged. Same problem.

Edit: However, I immediately added PHP5 to APACHE2_OPTS, which seems to have been the problem. That does mean that PHP doesn't work now. But this is another problem to fix.
(By the way, how could they call that a syntax error?)
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Thu May 08, 2008 7:39 pm    Post subject: Reply with quote

Michiel_H wrote:
I deleted that one too and re-emerged. Same problem.

Edit: However, I immediately added PHP5 to APACHE2_OPTS, which seems to have been the problem. That does mean that PHP doesn't work now. But this is another problem to fix.
(By the way, how could they call that a syntax error?)

can't answer the parathesized question without seeing your conf files...

my /etc/conf.apache2 has the following:
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PHP5"
Back to top
View user's profile Send private message
mhelvens
Guru
Guru


Joined: 17 Mar 2005
Posts: 337
Location: The Netherlands

PostPosted: Thu May 08, 2008 8:22 pm    Post subject: Reply with quote

I just solved this latest problem. I used PHP5 without a -D in front. So I guess that really was a syntax error. :-)

Anyway, thanks for your help. It all works now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum