Run PHP4 and PHP5 on Single Server

1 view
Skip to first unread message

Jay

unread,
Sep 11, 2009, 1:53:18 AM9/11/09
to VGLUG
Hello,

How to run PHP4 and PHP5 on Single RHEL5.1 Server? Can any one provide
some documentation.

Thanks & Regards,
Jay Choksi

sanjay dalal

unread,
Sep 11, 2009, 2:45:57 AM9/11/09
to vg...@googlegroups.com
Hi,

First install libapache2-mod-php5 php4-cgi
Then install all PHP5 and PHP4 modules

Second thing Edit DirectoryIndex from apache2.conf file and put index.php index.php4

Add below two lines in apache2.conf file 
AddHandler php-script .php4
Action php-scriipt /cgi-bin/php4

Then restart /etc/init.d/apache2 restart

Then test your page using test.php

<?php
phpinfo();
?>

Let me know if you have any problem.
--
Thanks & Regards,
Sanjay B. Dalal
Technology Specialist
Red Hat Certified Engineer

http://sanjaybdalal.wordpress.com
Cell No: +919879398662

Jay

unread,
Sep 11, 2009, 2:51:56 AM9/11/09
to VGLUG
Hi,

PHP5 is already installed on RHEL5.1 do i need to uninstall it? or do
i need to install only PHP4?

Regards,
Jay Choksi

On Sep 11, 11:45 am, sanjay dalal <sanjaydala...@gmail.com> wrote:
> Hi,
> First install libapache2-mod-php5 php4-cgi
> Then install all PHP5 and PHP4 modules
>
> Second thing Edit DirectoryIndex from apache2.conf file and put index.php
> index.php4
>
> Add below two lines in apache2.conf file
> AddHandler php-script .php4
> Action php-scriipt /cgi-bin/php4
>
> Then restart /etc/init.d/apache2 restart
>
> Then test your page using test.php
>
> <?php
> phpinfo();
> ?>
>
> Let me know if you have any problem.
>

sanjay dalal

unread,
Sep 11, 2009, 2:53:36 AM9/11/09
to vg...@googlegroups.com
If it is already installed then no need to install again. 
Just install remaining packages.
Reply all
Reply to author
Forward
0 new messages