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
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).
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.
should be fixed in cvs now.