Koozali.org: home of the SME Server

HELP!! Need to update PHP

mrhutch

HELP!! Need to update PHP
« on: December 09, 2005, 12:39:03 PM »
Hello Folks...

I need to upgrade PHP on my 6.01 box..  Preferably to the latest version..  I have used plus.sh before and php is running 4.3.1, but I need to go to 5.1.X

ANYONE done this??  Where is the best place to get the RPM and the dependancies...

I'm a bit of a newbie, but played with sme server for years !!

TIA

Hutch

ergozd

HELP!! Need to update PHP
« Reply #1 on: December 09, 2005, 01:02:29 PM »
I compiled for PHP 5.0.5 (OBS !!! experimental) and you can find a simple howto at
http://ergin.dyndns.org/download/RPMS/contribs/PHP/php505_experimental/php5_howto.txt

Any feedback is appriciated.

mrhutch

HELP!! Need to update PHP
« Reply #2 on: December 09, 2005, 01:11:57 PM »
excellent./..

wil try it now and post results

much appricated

mrhutch

HELP!! Need to update PHP
« Reply #3 on: December 09, 2005, 01:55:00 PM »
erm..   was all going well,

went to install the php rpm, and :    

file /usr/share/pear/.registry/console_getopt.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/.registry/db.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/.registry/http.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/.registry/mail.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/.registry/net_smtp.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/.registry/net_socket.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/.registry/pear.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/.registry/xml_parser.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/.registry/xml_rpc.reg conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Archive/Tar.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Console/Getopt.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/common.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/dbase.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/fbsql.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/ibase.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/ifx.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/msql.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/mssql.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/mysql.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/mysqli.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/oci8.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/odbc.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/pgsql.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/sqlite.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/storage.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/DB/sybase.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/HTTP.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Mail.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Mail/RFC822.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Mail/mail.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Mail/sendmail.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Mail/smtp.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Net/SMTP.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/Net/Socket.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/OS/Guess.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Autoloader.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Builder.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Auth.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Build.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Common.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Config.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Install.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Mirror.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Package.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Registry.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Command/Remote.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Common.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Config.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Dependency.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Downloader.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/ErrorStack.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Frontend/CLI.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Installer.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Packager.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Registry.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/PEAR/Remote.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/System.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/XML/Parser.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/XML/RPC.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/XML/RPC/Server.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/data/PEAR/package.dtd conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/data/PEAR/template.spec conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/doc/Archive_Tar/docs/Archive_Tar.txt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/doc/DB/doc/MAINTAINERS conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/doc/DB/doc/STATUS conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/doc/DB/doc/TESTERS conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/doc/Net_SMTP/docs/guide.txt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/pearcmd.php conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/db_error.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/db_error2.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/01connect.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/02fetch.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/03simplequery.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/04numcols.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/05sequences.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/06prepexec.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/08affectedrows.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/09numrows.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/10errormap.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/11transactions.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/13limit.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/14fetchmode_object.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/15quote.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/16tableinfo.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/17query.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/18get.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/connect.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/mktable.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/setup.inc.cvs conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/driver/skipif.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/errors.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/fetchmode_object.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/fetchmodes.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/include.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/limit.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/numcols.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/numrows.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/prepexe.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/sequences.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/simplequery.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/skipif.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/DB/tests/transactions.inc conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/Net_SMTP/tests/auth.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/Net_SMTP/tests/basic.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/Net_SMTP/tests/config.php.dist conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/XML_Parser/tests/001.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/XML_Parser/tests/002.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/XML_Parser/tests/003.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/XML_Parser/tests/004.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73
file /usr/share/pear/test/XML_Parser/tests/005.phpt conflicts between attempted installs of php-5.0.5-1eo and php-4.3.10-3ld_rh73

well_fans

HELP!! Need to update PHP
« Reply #4 on: December 09, 2005, 02:08:11 PM »
would be a wild guess but do php4 and 5 co-exist happily on a server? I'd suggest those errors look like they dont and you may need to uninstall the v4 rpms before installing v5. Like I say its a bit of a guess but could be worth investigating.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HELP!! Need to update PHP
« Reply #5 on: December 09, 2005, 05:54:32 PM »
Quote from: "well_fans"
would be a wild guess but do php4 and 5 co-exist happily on a server? I'd suggest those errors look like they dont and you may need to uninstall the v4 rpms before installing v5.


IOW, to upgrade the RPM, rather than install it.

mrhutch

HELP!! Need to update PHP
« Reply #6 on: December 11, 2005, 04:31:51 PM »
I did attempt an upgrade (-Uvh ) ..

Should I uninstall php4 first??  and how do I do this !!

ergozd

HELP!! Need to update PHP
« Reply #7 on: December 11, 2005, 06:07:09 PM »
Quote from: "mrhutch"
I did attempt an upgrade (-Uvh ) ..

Should I uninstall php4 first??  and how do I do this !!


Hi!

PHP4 and PHP5 will not co-exist, I think it's safest to uninstall PHP4 first.

OBS!!! Make sure you've made backups for any critical data/application... ;-)

Find out which PHP RPMS you've got install
#rpm -qa|grep php-

Uninstall PHP RPMS with (OBS!!! --nodeps option will be required since horde & co will have php dependency)
# php -e --nodeps php php-imap php-ldap php-mysql php-extension

After that follow the howto and it should work fine. Good luck...