Jump to content

Apache with PHP5 and PHP4 simultaneously


jacortijo

Recommended Posts

Good morning,

it is being a nightmare to achieve to have running apache2 with PHP4 and PHP5 support.

I need to have several different php application and mainly all of them use PHP5 but I have an specific one in PHP4. I was googling a lot and found some solutions, the best I found is

http://www.gentoo.org/proj/en/php/php4-php5-configuration.xml

but it is for Gentoo and unfortunally in my office we work with windows 2003.

I am lazy so I used XAMP and I got directly apache2 with PHP5 and PHP4. it provides to swith from one version to the other but I need both at the same time.

I tried using the following directives in the vhost file but apache seems to follow them at all.

this is my vhosts

<VirtualHost *:80>

    DocumentRoot E:/xampp/htdocs/

    ServerName localhost

</VirtualHost>

<VirtualHost *:80>

DocumentRoot E:/xampp/htdocs/Degas

ServerName drivers

ScriptAlias /php/ "E:/xampp/php/php4/"

Action application/x-httpd-php4 "/php/php.exe"

AddHandler application/x-httpd-php4 .php

 

<Directory "E:/xampp/php/php4/">

Options Indexes FollowSymLinks

AllowOverride FileInfo

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

 

the enviroment is set up in PHP5. I create a info.php in both places and in both places shows up PHP 5.2.6 :(

 

Anything I should do... somebody did it before?

is it impossible to achieve?

 

Many thanks in advance

Jose

 

Link to comment
Share on other sites

Thanks for the fast reply.

I cannot do any modification to the program. I can only request to the developer in our headquarters to migrate to PHP5, but I dont know where he will put my request in his to-do-list.

 

that is why I try to setup apache to work with both versions at once.

 

regards!

J

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.