Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57236 - cli php using apache2 ini file
Summary: cli php using apache2 ini file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 15:30 UTC by Ronald Hummelink
Modified: 2004-08-02 23:50 UTC (History)
0 users

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 Ronald Hummelink 2004-07-15 15:30:52 UTC
genlop -l --date 2 days ago|grep php
     Thu Jul 15 22:54:59 2004 >>> dev-php/php-4.3.8
     Thu Jul 15 23:44:11 2004 >>> dev-php/mod_php-4.3.8

If mod_php is build after php the cli php is configured to use the config file in /etc/php/apache2-php/php.ini: from phpinfo()

nable-filepro' '--enable-ftp' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-yp' '--without-ncurses' '--without-readline' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache2-php4' '--without-pear'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/apache2-php4/php.ini
PHP API => 20020918

building first mod_php then php doesn't get things confused ...

Reproducible: Always
Steps to Reproduce:
1. emerge php
2. emerge mod_php
3. run phpinfo() with cli-php
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-15 18:56:32 UTC
unmerge all of: php mod_php php-cgi
then merge the ones you want again (the last two WILL pull in php as a dep).
Comment 2 Ronald Hummelink 2004-07-16 01:17:05 UTC
Unmerged as indicated, then:

amyrlyn root # emerge -a mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-php/mod_php-4.3.8
[ebuild  N    ] dev-php/php-4.3.8

Do you want me to merge these packages? [Yes/No] y

After mod_php was merged and php was building there already was a cli binary. phpinfo(1) indicated using the apache2 config file.

After the merge was completed all was fine, however...

During world upgrades these two packages often get build in the reverse order (first 'php' (the cli) and then mod_php which aparently overwrites more then it should....), leaving the cli interpreter on the apache ini file.

when you state them explicitely as  emerge php mod_php -a you too get them build in the wrong order.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-02 23:50:56 UTC
should be fixed in cvs now.