View previous topic :: View next topic |
Author |
Message |
mhelvens Guru
Joined: 17 Mar 2005 Posts: 337 Location: The Netherlands
|
Posted: Thu May 08, 2008 4:48 pm Post subject: Apache2 "syntax error" [SOLVED] |
|
|
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 |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
|
Back to top |
|
|
mhelvens Guru
Joined: 17 Mar 2005 Posts: 337 Location: The Netherlands
|
Posted: Thu May 08, 2008 5:36 pm Post subject: |
|
|
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 |
|
|
jonnevers Veteran
Joined: 02 Jan 2003 Posts: 1594 Location: Gentoo64 land
|
Posted: Thu May 08, 2008 7:39 pm Post subject: |
|
|
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 |
|
|
mhelvens Guru
Joined: 17 Mar 2005 Posts: 337 Location: The Netherlands
|
Posted: Thu May 08, 2008 8:22 pm Post subject: |
|
|
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 |
|
|
|