← Back to team overview

ius-community team mailing list archive

Re: Installation Warning and YUM 'replace' unavailable

 

Nicholas,

It appears you uncovered a bug in the configuration for php53... on a centos5 box I upgraded from php -> php53 and see the same issue:

PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
[Thu Aug 19 19:27:07 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations


I've logged the following bug and will follow up with the issue there:

https://bugs.launchpad.net/ius/+bug/620636

---
BJ Dierkes
Linux Systems Engineer IV / [RH]acker
Infrastructure Services [Development]
Rackspace Hosting

On Aug 19, 2010, at 2:01 PM, NICHOLAS KLINE wrote:

> THEORY
> PHP53 (IUS version) is already compiled with several modules,
> including those listed in the Apache error_log (see below). The same
> modules have .ini files in /etc/php.d which PHP loads, realizes the
> modules are already enabled since they are compiled in the PHP binary,
> and spits back the warnings in the Apache error_log. Theory based on
> info at http://www.somacon.com/p520.php That article is directed
> towards the CLI version of PHP, which I am not using.
> 
> 
> php -m (as discussed in the article above)
> [PHP Modules]
> bz2
> calendar
> Core
> ctype
> curl
> date
> ereg
> exif
> fileinfo
> filter
> ftp
> gettext
> gmp
> hash
> iconv
> json
> ldap
> libxml
> openssl
> pcntl
> pcre
> PDO
> pdo_sqlite
> Phar
> pspell
> readline
> Reflection
> session
> shmop
> SimpleXML
> sockets
> SPL
> sqlite3
> standard
> tokenizer
> xml
> zip
> zlib
> 
> 
> APACHE ERROR_LOG
> [Thu Aug 19 12:01:54 2010] [notice] SIGHUP received.  Attempting to restart
> [Thu Aug 19 12:01:54 2010] [notice] Digest: generating secret for
> digest authentication ...
> [Thu Aug 19 12:01:54 2010] [notice] Digest: done
> PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
> PHP Warning:  Module 'json' already loaded in Unknown on line 0
> PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
> PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
> PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
> [Thu Aug 19 12:01:54 2010] [notice] mod_python: Creating 4 session
> mutexes based on 256 max processes and 0 max threads.
> [Thu Aug 19 12:01:54 2010] [notice] Apache/2.2.3 (Red Hat) configured
> -- resuming normal operations
> [Thu Aug 19 12:02:55 2010] [error] [client 129.22.118.130] File does
> not exist: /var/www/html/favicon.ico
> [Thu Aug 19 12:02:57 2010] [error] [client 129.22.118.130] PHP
> Warning:  phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]:
> It is not safe to rely on the system's timezone settings. You are
> *required* to use the date.timezone setting or the
> date_default_timezone_set() function. In case you used any of those
> methods and you are still getting this warning, you most likely
> misspelled the timezone identifier. We selected 'America/New_York' for
> 'EDT/-4.0/DST' instead in /var/www/html/test/testphp.php on line 2
> 
> 
> DURING INSTALL OF PHP53
> warning: /etc/php.ini created as /etc/php.ini.rpmnew
> 
> 
> WORK DONE SO FAR
> /etc
> -rw-r--r--   1 root root   45235 May 14 13:50 php.ini
> -rw-r--r--   1 root root   69399 Jul 23 17:29 php.ini.rpmnew
> 
> Use the new php.ini at php.ini.rpmnew
>  sudo mv php.ini php.ini.RHELstockPHP
>  sudo mv php.ini.rpmnew php.ini
>  Restart Apache: sudo /usr/sbin/apachectl restart
>  ... same warnings in Apache error_log.
> 
> 
> nano php.ini (formerly php.ini.rpmnew)
> line 813:
> ; Directory in which the loadable extensions (modules) reside.
> ; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
> ; extension_dir = "./"
> 
> line 938:
> ;;;;
> ; Note: packaged extension modules are now loaded via the .ini files
> ; found in the directory /etc/php.d; these are loaded by default.
> ;;;;
> 
> 
> /usr/lib64/php/modules
> -bash-3.2$ ls -al
> total 2480
> drwxr-xr-x 2 root root    4096 Aug 19 11:54 .
> drwxr-xr-x 4 root root    4096 Aug 19 11:54 ..
> -rwxr-xr-x 1 root root   62240 Jul 23 17:29 curl.so
> -rwxr-xr-x 1 root root 1838624 Jul 23 17:29 fileinfo.so
> -rwxr-xr-x 1 root root   32792 Jul 23 17:29 json.so
> -rwxr-xr-x 1 root root   52184 Jul 23 17:29 ldap.so
> -rwxr-xr-x 1 root root   98280 Jul 23 17:29 pdo.so
> -rwxr-xr-x 1 root root   24264 Jul 23 17:29 pdo_sqlite.so
> -rwxr-xr-x 1 root root  253120 Jul 23 17:29 phar.so
> -rwxr-xr-x 1 root root   15416 May 29 08:09 phpcups.so
> -rwxr-xr-x 1 root root   20760 Jul 23 17:29 pspell.so
> -rwxr-xr-x 1 root root   83088 Jul 23 17:29 zip.so
> 
> /etc/php.d
> -bash-3.2$ ls -al
> total 60
> drwxr-xr-x   2 root root  4096 Aug 19 11:54 .
> drwxr-xr-x 105 root root 12288 Aug 19 11:54 ..
> -rw-r--r--   1 root root    49 Jul 23 17:29 curl.ini
> -rw-r--r--   1 root root    57 Jul 23 17:29 fileinfo.ini
> -rw-r--r--   1 root root    49 Jul 23 17:29 json.ini
> -rw-r--r--   1 root root    49 Jul 23 17:29 ldap.ini
> -rw-r--r--   1 root root    47 Jul 23 17:29 pdo.ini
> -rw-r--r--   1 root root    61 Jul 23 17:29 pdo_sqlite.ini
> -rw-r--r--   1 root root    49 Jul 23 17:29 phar.ini
> -rw-r--r--   1 root root    53 Jul 23 17:29 pspell.ini
> -rw-r--r--   1 root root    47 Jul 23 17:29 zip.ini
> 
> 
> THOUGHTS
> 1.) Remove .ini files in /etc/php.d
> 2.) or, uninstall PHP53 (IUS version), revert to RHEL stock PHP,
> uninstall RHEL stock PHP, install IUS version.
> 
> Thanks,
> 
> Nick
> 
> 
> On Thu, Aug 19, 2010 at 12:23 PM, BJ Dierkes <wdierkes@xxxxxxxxxxxxx> wrote:
>> 
>> On Aug 19, 2010, at 11:10 AM, NICHOLAS KLINE wrote:
>> 
>>> Oops, nevermind. I just needed to edit /etc/yum.conf and comment-out
>>> "exclude=php*"
>> 
>> That was going to be my suggestion.  ;)
>> 
>> 
>>> PHP 5.3 installed successfully ! Now, onto figuring out the warnings
>>> in my Apache HTTP error_log:
>>> 
>>> Thu Aug 19 12:01:54 2010] [notice] SIGHUP received.  Attempting to restart
>>> [Thu Aug 19 12:01:54 2010] [notice] Digest: generating secret for
>>> digest authentication ...
>>> [Thu Aug 19 12:01:54 2010] [notice] Digest: done
>>> PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
>>> PHP Warning:  Module 'json' already loaded in Unknown on line 0
>>> PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
>>> PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
>>> PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
>>> [Thu Aug 19 12:01:54 2010] [notice] mod_python: Creating 4 session
>>> mutexes based on 256 max processes and 0 max threads.
>>> [Thu Aug 19 12:01:54 2010] [notice] Apache/2.2.3 (Red Hat) configured
>>> -- resuming normal operations
>>> [Thu Aug 19 12:02:55 2010] [error] [client 129.22.118.130] File does
>>> not exist: /var/www/html/favicon.ico
>>> [Thu Aug 19 12:02:57 2010] [error] [client 129.22.118.130] PHP
>>> Warning:  phpinfo() [<a href='function.phpinfo'>function.phpinfo</a>]:
>>> It is not safe to rely on the system's timezone settings. You are
>>> *required* to use the date.timezone setting or the
>>> date_default_timezone_set() function. In case you used any of those
>>> methods and you are still getting this warning, you most likely
>>> misspelled the timezone identifier. We selected 'America/New_York' for
>>> 'EDT/-4.0/DST' instead in /var/www/html/test/testphp.php on line 2
>>> 
>> 
>> 
>> Glad to see that you were able to get php53 installed.  Based on the errors you are getting, I would have to assume that possibly you copied your old php.ini from the old config (or yum didn't overwrite it)?  I would suggest using the new php.ini (probably at /etc/php.ini.rpmnew), and making any relevant changes necessary.  Keep in mind, that each sub package (i.e. php-mysql) has its own configuration in /etc/php.d/<module>.ini therefore, you don't want to duplicate any configuration settings in /etc/php.ini (relevant to sub packages).
>> 
>> ---
>> BJ Dierkes
>> Linux Systems Engineer IV / [RH]acker
>> Infrastructure Services [Development]
>> Rackspace Hosting
>> 
>> 
>> 
>> 




References