Je voudrai upgrader la version de PHP présente sur mon serveur SME. Pour cela, j'ai lu un post sur ce forum http://forums.ixus.fr/viewtopic.php?t=39514&highlight=upgrade+php5 mais il est question de la V7.2.
J'ai quand même utilisé une partie de la solution proposée par Philippe971 :
- mise a jour mysql et php
- Code: Tout sélectionner
yum --enablerepo=* install php-xml php-common
signal-event post-upgrade; signal-event reboot
yum update php mysql \
--exclude=kernel \
--exclude=kernel-smp \
--exclude=mkinitrd \
--exclude=mdadm \
--exclude=initscripts \
--exclude=perl* \
--exclude=perl-DBI \
--exclude=httpd \
--exclude=mod_ssl \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=centosplus \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons
signal-event post-upgrade; signal-event reboot- Code: Tout sélectionner
mysql_upgrade
cat /usr/share/mysql/mysql_fix_privilege_tables.sql | /usr/bin/mysql \
--force \
--user=root \
--host=localhost \
--database=mysql
signal-event post-upgrade; signal-event reboot
Mais lorsque j'ai saisi la commande yum update php mysql \ voici ce que j'ai obtenu :
- Code: Tout sélectionner
[root@scenic ~]# yum update php mysql \
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Could not find update match for
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php to pack into transaction set.
php-4.3.9-3.22.12.i386.rp 100% |=========================| 25 kB 00:00
---> Package php.i386 0:4.3.9-3.22.12 set to be updated
---> Downloading header for mysql to pack into transaction set.
mysql-4.1.22-2.el4.i386.r 100% |=========================| 36 kB 00:00
---> Package mysql.i386 0:4.1.22-2.el4 set to be updated
--> Running transaction check
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-imap
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-gd
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-pear
--> Processing Dependency: php-common = 5.1.6-3.el4s1.10 for package: php-xml
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-mbstring
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-ldap
--> Processing Dependency: php = 4.3.9-3.22.9 for package: php-mysql
--> Processing Dependency: mysql = 4.1.20-3.RHEL4.1.el4_6.1 for package: mysql-server
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php-mysql to pack into transaction set.
php-mysql-4.3.9-3.22.12.i 100% |=========================| 20 kB 00:00
---> Package php-mysql.i386 0:4.3.9-3.22.12 set to be updated
---> Downloading header for php-pear to pack into transaction set.
php-pear-4.3.9-3.22.12.i3 100% |=========================| 45 kB 00:00
---> Package php-pear.i386 0:4.3.9-3.22.12 set to be updated
---> Downloading header for php-ldap to pack into transaction set.
php-ldap-4.3.9-3.22.12.i3 100% |=========================| 20 kB 00:00
---> Package php-ldap.i386 0:4.3.9-3.22.12 set to be updated
---> Downloading header for php-mbstring to pack into transaction set.
php-mbstring-4.3.9-3.22.1 100% |=========================| 20 kB 00:00
---> Package php-mbstring.i386 0:4.3.9-3.22.12 set to be updated
---> Downloading header for php-gd to pack into transaction set.
php-gd-4.3.9-3.22.12.i386 100% |=========================| 20 kB 00:00
---> Package php-gd.i386 0:4.3.9-3.22.12 set to be updated
---> Downloading header for php-imap to pack into transaction set.
php-imap-4.3.9-3.22.12.i3 100% |=========================| 21 kB 00:00
---> Package php-imap.i386 0:4.3.9-3.22.12 set to be updated
---> Downloading header for mysql-server to pack into transaction set.
http://sme-mirror.voxteneo.com/releases/7/smeupdates/i386/CentOS/RPMS/mysql-server-4.1.22-2.el4.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://smemirror.fullnet.co.uk/releases/7/smeupdates/i386/CentOS/RPMS/mysql-server-4.1.22-2.el4.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://ftp.nluug.nl/os/Linux/distr/smeserver/releases/7/smeupdates/i386/CentOS/RPMS/mysql-server-4.1.22-2.el4.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/smeupdates/i386/CentOS/RPMS/mysql-server-4.1.22-2.el4.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smeupdates/i386/CentOS/RPMS/mysql-server-4.1.22-2.el4.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirror.pacific.net.au/linux/smeserver/releases/7/smeupdates/i386/CentOS/RPMS/mysql-server-4.1.22-2.el4.i386.rpm: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: failure: CentOS/RPMS/mysql-server-4.1.22-2.el4.i386.rpm from smeupdates: [Errno 256] No more mirrors to try.
================================================================
No new rpms were installed. No additional commands are required.
================================================================
J'ai donc essayé autre chose trouvé ici https://sme.firewall-services.com/spip.php?article46#forum219 mais je n'ai pas tout compris. je me suis arrêté à l'étape 4 car la suite ne semblait pas me convenir.
N'y aurait-il pas une solution plus simple pour upgrader en PHP5 sans que je finisse par casser mon serveur ?
Merci d'avoir pris le temps de me lire.
Cordialement.
Cilor