Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 54233

Summary: Configuration - unrecognized APACHE2_OPTS?
Product: Gentoo Linux Reporter: Robert Muchacki (RETIRED) <muchar>
Component: [OLD] Core systemAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: magnet
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: My apache2.conf
My commonapache.conf

Description Robert Muchacki (RETIRED) gentoo-dev 2004-06-17 15:41:31 UTC
This is what I get trying to start Apache2:

/sbin/runscript.sh: line 534:  2301 B??dna instrukcja       /usr/sbin/apache2 -t ${APACHE2_OPTS} >/dev/null 2>&1
 * Apache2 has detected a syntax error in your configuration files:
/sbin/runscript.sh: line 534:  2303 B??dna instrukcja       /usr/sbin/apache2 -t ${APACHE2_OPTS}

This is my configuration file:

APACHE2_OPTS="-D PHP4"
PIDFILE=/var/run/apache2.pid
RESTARTSTYLE="graceful"

I don't remember when it started to break. When I comment-out the APACHE2_OPTS line, or make it empty - ther server starts normally (of course, without PHP support). I re-emerged both apache2 and mod_php - effect the same. Any ideas?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-17 19:28:10 UTC
go and check your config files, namely /etc/apache2/conf/modules.d/70_mod_php.conf or anywhere else you have 'IfDefine PHP4' or 'IfModule mod_php4.c'.
Comment 2 Minati jean michel 2004-06-18 07:01:53 UTC
maybe you could attach your apache conf, so we could look at it ?
Comment 3 Robert Muchacki (RETIRED) gentoo-dev 2004-06-18 12:48:09 UTC
Created attachment 33517 [details]
My apache2.conf
Comment 4 Robert Muchacki (RETIRED) gentoo-dev 2004-06-18 12:48:50 UTC
Created attachment 33518 [details]
My commonapache.conf
Comment 5 Minati jean michel 2004-06-19 06:58:27 UTC
thanks, you conf seems ok to me.
what is /etc/piwi/piwi-apache.conf ? can you show me the content ?
what about 70_mod_php.conf ? did you edit it ? 
Comment 6 Robert Muchacki (RETIRED) gentoo-dev 2004-06-19 07:06:20 UTC
PIWI was an app I used once - to test. But I don't use it anymore. I removed the line from the config and the effect is the same.

I never touched 70_mod_php.conf. Besides, I did an emerge -C apache mod_php and emerge apache mod_php again.
Comment 7 Benedikt Böhm (RETIRED) gentoo-dev 2005-01-30 05:06:27 UTC
could you please test current apache ebuilds (1.3.33-r1 and 2.0.52-r3, see http://dev.gentoo.org/~vericgar/package-refresh.txt) and reopen this bug if the error still occurs
Comment 8 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 19:58:32 UTC
Closing. 
Comment 9 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 19:58:32 UTC
Closing.  Please re-open if this is still an issue.