J'ai trouvé un script qui s'exécute impeccablement pour une mise à jour php en 4.3.10. C'est celui de sweepy :
pour executer un script à distance sur sa SME :
Code:
(se connecter en root en console ou par ssh)
cd /tmp
wget http://rodolphedj.free.fr/scripts/sweepy.sh
chmod a+x sweepy.sh
/sweepy.sh
#!/bin/sh
# Ergin Özdemir
ergin@ergin.net
# 2004-10-16 files stored at contribs.org/contribs OR
www.ibiblio.org
# therefore updated with new paths...
#
# 2004-10-14 Laurent Dinclaux updated exif and mcrypt support for php4.3.9
#
# 2004-09-29 Laurent Dinclaux relased php-4.3.9
# I have released PHP 4.3.9 RPMs. In addition of Dan Brown releases:
# - Curl extension
# - Compiled with options
# --enable-sockets --enable-pcntl --enable-sigchild
#
# Based on Rigger's (Doug Musty ) script & Dan Brown's RPMS
# 2004-07-23 Latest update from Rigger
# Recognize that the unixODBC package is already installed and skip downloading it...
# Also changed the pear install commands to pear upgrade. This will stop the failure
# notice if already installed and will still install the package if not installed already.
# Mise a jour par sweepy pour php 4.3.10
# Mise a jour par rodolphedj php 4.3.11
# phpupgrade Mis a jour
mkdir phpupgrade
cd phpupgrade
wget
http://open.rhx.it/apt/redhat/7.3/i386/ ... 1.i386.rpm
########################
rpm -qa > rpmlist
IS_ODBC=`pic rpmlist | grep -c unixODBC`
if [ $IS_ODBC -eq 0 ]
then
wget
ftp://ftp.rediris.es/sites/ftp.redhat.c ... 5.i386.rpm
else
echo "unixODBC installed skipping download"
fi
wget
http://open.rhx.it/apt/redhat/7.3/i386/ ... 1.i386.rpm
wget
http://open.rhx.it/apt/redhat/7.3/i386/ ... 1.i386.rpm
wget
http://open.rhx.it/apt/redhat/7.3/i386/ ... 1.i386.rpm
wget
http://open.rhx.it/apt/redhat/7.3/i386/ ... 1.i386.rpm
wget
http://open.rhx.it/apt/redhat/7.3/i386/ ... 1.i386.rpm
wget
http://open.rhx.it/apt/redhat/7.3/i386/ ... 1.i386.rpm
rpm -Uvh --nodeps php*.rpm
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
touch /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
echo 'include_path = ".:/usr/share/pear"' > /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
echo 'doc_root =' >> /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
echo 'user_dir =' >> /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
echo 'extension_dir = /usr/lib/php4' >> /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
echo 'enable_dl = On' >> /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
pear upgrade Log
pear upgrade Date
/sbin/e-smith/expand-template /etc/php.ini
service httpd restart
rm * -f
cd ..
rmdir phpupgrade
echo " TOUT EST FINI........"
echo " le Service HTTD a ete redemarre........"
J'ai d'abord mis à jour mon sme6 en version 6.5. A partir d'une image iso, aucun problème non plus, le serveur boote dessus.
A bientôt,
Bruno