PHP 4 and PHP 5 on Same Server

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

This should answer your question or at least get you started

http://interworx.com/forums/showthread.php?t=1762

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

To downgrade you should force-update, rather than remove. Download the php4 rpms you need, and then do

rpm -Uvh --force php*.rpm

Paul

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

You have to enter rpm -Uvh --force php[SIZE=“5”]*[/SIZE].rpm

Do you see the * ?

Hope it helps :slight_smile: