Koozali.org: home of the SME Server

Upgrading PHP on SME 6.0.1

nottely

Upgrading PHP on SME 6.0.1
« on: September 02, 2004, 05:48:19 PM »
Has any one updated there PHP to 4.3 or 5.0? if so can you tell me how?

I did a Google search and found a link to http://contribs.org that said there was a .sh file that would do the update fro me. But I can’t find it.

bigbri100

Upgrading PHP on SME 6.0.1
« Reply #1 on: September 02, 2004, 09:35:23 PM »
I entered "php4.3.8 updrade" into the Contrib's search and found this.

http://ergin.dyndns.org/download/php4.3.8-upgrade.sh

nottely

Upgrading PHP on SME 6.0.1
« Reply #2 on: September 05, 2004, 03:37:52 AM »
thank you for you'r help

Offline funkusmunkus

  • *
  • 220
  • +0/-0
Upgrading PHP on SME 6.0.1
« Reply #3 on: September 27, 2004, 08:05:16 AM »
Hi all this link

http://ergin.dyndns.org/download/php4.3.8-upgrade.sh
doesn't work, does anyone have a copy of this script they'd like to share  :-D

cheers
.........

Offline smeghead

  • *
  • 563
  • +0/-0
Upgrading PHP on SME 6.0.1
« Reply #4 on: September 27, 2004, 06:53:59 PM »
#!/bin/sh

mkdir phpupgrade
cd phpupgrade

wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-snmp-4.3.8-1db.i386.rpm

# Uncomment next line if you are using postgre sql
# wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-pgsql-4.3.8-1db.i386.rpm

wget ftp://ftp.rediris.es/sites/ftp.redhat.com/pub/redhat/linux/7.3/en/os/i386/RedHat/RPMS/unixODBC-2.2.0-5.i386.rpm
wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-odbc-4.3.8-1db.i386.rpm
wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-mysql-4.3.8-1db.i386.rpm

# Uncomment next line if you want to install the manual. It is large - 15megs.
# wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-manual-4.3.8-1db.i386.rpm

wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-ldap-4.3.8-1db.i386.rpm
wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-imap-4.3.8-1db.i386.rpm
wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-devel-4.3.8-1db.i386.rpm
wget http://www.ibiblio.org/pub/linux/distributions/e-smith/contrib/DanBrown/RPMS/i386/php-4.3.8-1db.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 install Log
pear install Date

/sbin/e-smith/expand-template /etc/php.ini

service httpd restart

rm * -f
cd ..
rmdir phpupgrade

echo " DONE........"
..................

Offline funkusmunkus

  • *
  • 220
  • +0/-0
Upgrading PHP on SME 6.0.1
« Reply #5 on: September 28, 2004, 02:27:19 AM »
Thanx for that smeghead.
oh yeah i like the name a couple of puns in there. ;-)
.........