Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14364 - dev-php/mod_php-4.3.0-r2 - incorrect instruction
Summary: dev-php/mod_php-4.3.0-r2 - incorrect instruction
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-22 07:55 UTC by Malcolm Scott
Modified: 2003-02-07 16:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malcolm Scott 2003-01-22 07:55:16 UTC
The information displayed after merging this package (with USE=apache2) contain 
the instruction to add "-D PHP4" to /etc/conf.d/apache2. This is incorrect; the 
Apache config installed actually checks for "-D PHP".
Comment 1 Jonathan Stewart 2003-01-24 06:38:36 UTC
I do not agree.

I just emerged mod_php-4.3.0-r2, and i needed to add a line like:

APACHE2_OPTS="-D PHP"

to /etc/conf.d/apache2.  And afterwards do a full shutdown of apache
(/etc/init.d/apache2 stop; /etc/init.d/apache2 start) to get PHP to work.  This
was the first install of PHP on a newly installed system from 1.4 rc2.
Comment 2 Malcolm Scott 2003-01-24 06:56:20 UTC
Exactly - please read my original bug report :-)

The instruction tells you to add "-D PHP4". As you found out, you need to add
"-D PHP" instead.
Comment 3 Jonathan Stewart 2003-01-24 11:10:21 UTC
I'm sorry, i didn't see that.  Now that you point it out, it's a pretty obviuos
mistake, and hopefully easily corrected.

Also, it could be noted that adding more than one loading script requires you
specify -D in front of each, like so:

APACHE2_OPTS="-D SSL -D PHP"

It's better to mention obvious pitfalls in the instructions instead of making
users discover it by trial and error, like i did.
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2003-02-07 16:41:56 UTC
sorry about that... . Committed the change.