Discussion:Php 5 mysql 5

De SME Server Wiki

par contre maintenant j'ai en erreur sur mes log:

Code:

Nov 27 15:47:03 localhost httpd: PHP Notice: Only variable references should be returned by reference in /home/httpd/html/horde/lib/Horde/Cipher/BlockMode.php on line 48

Nov 27 16:18:47 localhost httpd: PHP Notice: Only variable references should be returned by reference in /home/httpd/html/horde/lib/Horde/DataTree.php on line 1180

Nov 27 16:18:47 localhost httpd: PHP Notice: Only variable references should be returned by reference in /home/httpd/html/horde/lib/Horde/Perms.php on line 347

Nov 27 16:18:47 localhost httpd: PHP Notice: Only variable references should be returned by reference in /home/httpd/html/horde/lib/Horde/Auth.php on line 1168


en voyant ce message et le probleme des variable, je me demandais si c'etait lié et si c'etait risqué en production d'avoir ce genre de log ?? Sachant que je n'ai pas de scripts perso !!

Reponse

salut

apparement ces problemes avec horde existait deja avec SME5 lors d emsie à jour de php, voila les suggestions de l'époque :

PHP 4.1.1 doesn't like some of the database calls that IMP uses, even though they still work. To avoid having errors clutter up your screen, you'll want to find the line that says display_errors and set that to Off . If you want them to be logged, set log_errors to On , and error_log to syslog.


ebauche nouvelle version PHP5

yum --enablerepo=centosplus php
=================================================================
Package                 Arch       Version          Repository        Size
=================================================================

Installing:

php-xml                 i386       5.1.6-3.el4s1.8  centosplus         85 k
    replacing  php-domxml.i386 4.3.9-3.22.9

Updating:

php                     i386       5.1.6-3.el4s1.8  centosplus        1.1 M

Installing for dependencies:

mysql-libs              i386       5.0.58-1.el4.centos  centosplus        1.8 M
php-cli                 i386       5.1.6-3.el4s1.8  centosplus        2.0 M
php-common              i386       5.1.6-3.el4s1.8  centosplus        136 k
php-pdo                 i386       5.1.6-3.el4s1.8  centosplus        220 k

Updating for dependencies:

php-gd                  i386       5.1.6-3.el4s1.8  centosplus        102 k
php-imap                i386       5.1.6-3.el4s1.8  centosplus         48 k
php-ldap                i386       5.1.6-3.el4s1.8  centosplus         31 k
php-mbstring            i386       5.1.6-3.el4s1.8  centosplus        970 k
php-mysql               i386       5.1.6-3.el4s1.8  centosplus         77 k
php-pear                noarch     1:1.4.11-1.el4s1.1  centosplus        345 k

Transaction Summary

=================================================================

Install 5 Package(s) Update 7 Package(s) Remove 0 Package(s) Total download size: 6.9 M Is this ok [y/N]:

le 10 05 2011

Dependencies Resolved

=================================================================
Package                 Arch       Version          Repository        Size
=================================================================

Updating:

mysql-server            i386       5.0.82sp1-1.el4_8  centosplus        9.9 M

Updating for dependencies:

mysql                   i386       5.0.82sp1-1.el4_8  centosplus        3.3 M
mysql-libs              i386       5.0.82sp1-1.el4_8  centosplus        1.8 M

Transaction Summary

=================================================================

Install 0 Package(s) Update 3 Package(s) Remove 0 Package(s) Total download size: 15 M




Dependencies Resolved

=================================================================
Package                 Arch       Version          Repository        Size
=================================================================

Installing:

php-pear-Auth-SASL      noarch     1.0.2-4.el4.centos  centosplus         10 k
php-pear-DB             noarch     1.7.6-6.el4.centos  centosplus        130 k
php-pear-HTTP           noarch     1.4.0-7.el4.centos  centosplus         10 k
php-pear-Mail           noarch     1.1.14-1.el4.centos  centosplus         25 k
php-pear-XML-Parser     noarch     1.2.7-4.el4.centos  centosplus         19 k
php-xml                 i386       5.1.6-3.el4s1.10  centosplus         85 k
    replacing  php-domxml.i386 4.3.9-3.31

Updating:

php                     i386       5.1.6-3.el4s1.10  centosplus        1.1 M
php-gd                  i386       5.1.6-3.el4s1.10  centosplus        103 k
php-pear-Net-Socket     noarch     1.0.6-5.el4.centos  centosplus         10 k

Installing for dependencies:

php-cli                 i386       5.1.6-3.el4s1.10  centosplus        1.9 M
php-common              i386       5.1.6-3.el4s1.10  centosplus        136 k
php-pdo                 i386       5.1.6-3.el4s1.10  centosplus        220 k
php-pear                noarch     1:1.4.11-1.el4s1.1  centosplus        345 k
php-pear-Net-SMTP       noarch     1.2.8-5.el4.centos  centosplus         16 k

Updating for dependencies:

php-devel               i386       5.1.6-3.el4s1.10  centosplus        490 k
php-imap                i386       5.1.6-3.el4s1.10  centosplus         49 k
php-ldap                i386       5.1.6-3.el4s1.10  centosplus         32 k
php-mbstring            i386       5.1.6-3.el4s1.10  centosplus        970 k
php-mysql               i386       5.1.6-3.el4s1.10  centosplus         77 k

Transaction Summary

=================================================================

Install 11 Package(s) Update 8 Package(s) Remove 0 Package(s) Total download size: 5.6 M

php 5.2

voici une source pour trouver php5 plus recent que sur centos plus : atomicorp http://www6.atomicorp.com/channels/atomic/centos/4/i386/RPMS/

ou encore http://rpms.famillecollet.com/

pour info :

/sbin/e-smith/db yum_repositories set dag repository \
Name 'remi' \
BaseURL 'http://rpms.famillecollet.com/enterprise/4/remi/$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://rpms.famillecollet.com/RPM-GPG-KEY-remi \
Visible no \
status disabled

et/ou


/sbin/e-smith/db yum_repositories set dag repository \
Name 'atomicorp' \
BaseURL 'http://www6.atomicorp.com/channels/atomic/centos/4/$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey https://www.atomicorp.com/RPM-GPG-KEY.art.txt \
Visible no \
status disabled

semserver phpmultiadmin

il sera necessaire de reconfigurer les droits d'admin de cette contrib apres mise a jour

source : http://forums.ixus.net/viewtopic.php?f=19&t=44505