introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Multiple EasyPHP installs



Posted by: Pixelastic
October 03, 2009 03:34PM
Hello,

Is there a way to install two different EasyPHP version ? I would like both the 5.2.10 and 5.3.0 versions because I have to work on both new sites on a 5.3.0 host and legacy sites on older php versions.

I installed first the 5.3.0 and then the 5.2.10 but when I'm launching the 5.2.10, Apache crashes.

I think it may be an issue with the un non-compatible php.ini between the two versions
Options: ReplyQuote
Posted by: Amour
October 03, 2009 08:22PM
Maybe a portable installation on USB drive, and other on hard disk ?

If that don't work, you can install manually the firt PHP version as module, and second as CGI, but it's not easy...
Options: ReplyQuote
Posted by: ATR
October 03, 2009 09:25PM
I'm glad that this thread was started - I was about to post the same question myself. :)
I need to work on a few sites on the same machine... some of them are based on PHP4/MySQL4 sites and others require PHP5/MySQL5.
So if anyone has a solution I would highly appreciate a post. Thanks!
Options: ReplyQuote
Posted by: Pixelastic
October 05, 2009 02:48PM
What is the benefit of a portable installation ?
I do not have a USB key available so I tried installing on another hard drive but it did not change anything.

I'm installing EasyPHP5.2.10 on a SD Card right now (pretty long), I'll keep you informed of how it goes.
Options: ReplyQuote
Posted by: Pixelastic
October 05, 2009 03:29PM
No more luck. With the install I made on my Sd Card, Apaches still crashes.

I have nothing relevant in my apache logs except for
[Mon Oct 05 15:27:28 2009] [warn] pid file H:/EasyPHP5.2.10/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Options: ReplyQuote
Posted by: entertheraven
October 19, 2009 07:34PM
I too am looking to run multiple versions of EasyPHP, but for the sole purpose of being able to have the option of choosing between PHP4 and PHP5, just like CPanel. Does anyone have any ideas on how to be able to choose between different versions of PHP instead of just multiple installations?
Options: ReplyQuote
Posted by: Pixelastic
October 28, 2009 05:10PM
I've finally found a way, by installing php4 as a cgi.

Here are the instructions to do so :

1 - Download the Windows binary of the version you would like to emulate here [fr.php.net]
2 - Create a subdirectory named php4 in your EasyPHP/apache/cgi-bin/ directory
3 - Extract the php.exe, php4ts.dll, sapi/php4apache.dll, php.ini-recommended and the extensions directory in this new directory
4 - Rename php.ini-recommended to php.ini (this will be the php.ini used with php4)
5 - Edit your apache config file and add the line ScriptAlias /php4/ "${path}/apache/cgi-bin/php4/" after the allready defined ScriptAlias (~line 379)
6 - Create a new virtualhost for the website you would like to run in php4. Mine is as follow :
<Virtualhost *:80>
ServerName foobar
ServerAdmin me@localhost
DocumentRoot "${path}/www/foobar.com"

<Directory "${path}/www/foobar.com">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

AddHandler php4-script .php .html .htm
Action php4-script /php4/php.exe

</Virtualhost>

It seems to be working for me, I have a phpinfo() of version 4.4.3.

Don't forget to edit the new php.ini if you have to tweak the settings.



Edited 1 time(s). Last edit at 10/28/2009 05:13PM by Pixelastic.
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.