View Full Version : PHP 4 and PHP 5 on Same Server
bartigas
06-29-2008, 07:20 PM
Is there a way to run both PHP4 and PHP5 on an Interworx server. We're using DotNetPanel for our Windows hosting server (gotta have support for MS SQL and ASP) and I can choose between PHP 4 and PHP 5 on that server. Can I do the same somehow with Interworx? I'd like to default to 5, but in certain case we've run accross software that doesn't like php 5.
Thanks,
Brian
Justec
06-29-2008, 07:50 PM
This should answer your question or at least get you started
http://interworx.com/forums/showthread.php?t=1762
bartigas
07-02-2008, 08:05 PM
Great thanks!
Only other question is, I have php 5.2.3 on the box now. I put in "yum remove php" and it was going to remove interworx so i cancelled it. How do I downgrade to 4 so I can reconfigure 5. If I run "yum info php" I get the following:
Installed Packages
Name : php
Arch : i386
Version: 5.2.3
Release: 100.rhe4x.iworx
Size : 27 M
Repo : installed
Summary: PHP Hypertext Preprocessor
IWorx-Paul
07-02-2008, 09:24 PM
To downgrade you should force-update, rather than remove. Download the php4 rpms you need, and then do
rpm -Uvh --force php*.rpm
Paul
bartigas
07-02-2008, 10:32 PM
When I try to force an upgrade I get this error:
[root@ns src]# rpm -Uhv --force php-4.3.9-3.22.9.i386.rpm
error: Failed dependencies:
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-xmlrpc-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-devel-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-imap-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-ldap-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-mbstring-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-mcrypt-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-mhash-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-mysql-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-ncurses-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-odbc-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-pear-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-pgsql-5.2.3-100.rhe4x.iworx.i386
php = 5.2.3-100.rhe4x.iworx is needed by (installed) php-snmp-5.2.3-100.rhe4x.iworx.i386
netipro
09-03-2008, 05:12 PM
You have to enter rpm -Uvh --force php*.rpm
Do you see the * ?
Hope it helps :)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.