Can I mix x86 version of PHP with x64 version of Apache
Posted by: jmwright1058 (---.hlrn.qwest.net)
Date: March 02, 2015 03:03PM

I have WAMPServer 2.5 running, or I think so.

The Icon is green and I'm able to run php files, bring up phpMyAdmin and run MySQL queries, such as CREATE DATABASE, DROP DATABASE, populate said databases with mysqldump files, etc.

Setup Information:

1 - Windows 8.1 Professional - 64 bit
2 - WAMPServer Version 2.5 - 64 bit
3 - Apache Version 2.4.9
4 - PHP Version 5.5.12
5 - MySQL Version 5.5.32, 5.5.40, 5.6.19, 5.6.21 (all working)
6 - WampServer icon is Green


I would like to run 2 version sets of MySQL and PHP.
I know I need to run versions which are both compiled on the same version of the Visual C compiler.

What versions of Apache may I run?

Version set 1:
MySQL: 5.5.40
PHP: 5.4.34
Apache: ?

Version set 2:
MySQL: 5.5.32
PHP: 5.4.33
Apache: ?

Also, can I mix x86 version of PHP with x64 version of Apache?

Options: ReplyQuote
Re: Can I mix x86 version of PHP with x64 version of Apache
Posted by: Otomatic (Moderator)
Date: March 02, 2015 03:51PM

Hi,

> Also, can I mix x86 version of PHP with x64 version of Apache?
NO.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can I mix x86 version of PHP with x64 version of Apache
Posted by: jmwright1058 (---.hlrn.qwest.net)
Date: March 02, 2015 04:53PM

Perfect, Thanks, Otomatic!

I know this is probably listed somewhere, but I was getting frustrated finding it.

Options: ReplyQuote
Re: Can I mix x86 version of PHP with x64 version of Apache
Posted by: jmwright1058 (---.hlrn.qwest.net)
Date: March 02, 2015 05:32PM

If I have WAMPServer 64 bit installed and I want to run WAMPServer 32 bit, do I need to uninstall the 64 bit version first?

Options: ReplyQuote
Re: Can I mix x86 version of PHP with x64 version of Apache
Posted by: jmwright1058 (---.hlrn.qwest.net)
Date: March 02, 2015 05:37PM

OK, I see the answer to my question, thanks!

It's been asked before. I'm sure.

Sorry

Options: ReplyQuote
Re: Can I mix x86 version of PHP with x64 version of Apache
Posted by: RiggsFolly (---.as43234.net)
Date: March 02, 2015 05:43PM

Theoretically, as long as you install the 2 seperate WAMPServers into lets say 64=c:\wamp and 32=C:\wamp32 i.e. a unique folder for each they can co-exist on the same system.


The service names are unique i.e.

32bit = wampapache & wampmysql
64bit = wampapache64 & wampmysql64

(make sure you have fixed the 64bit bug in my.ini and named the section [wampmysqld64] from [wampmysqld])

But you may run a little short of memory if you try and run both together.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Can I mix x86 version of PHP with x64 version of Apache
Posted by: Otomatic (Moderator)
Date: March 02, 2015 06:06PM

Hi,

> Perfect, Thanks, Otomatic!
It's true that my answer was very laconic and brief!
But it is also true that it is an answer!

As stated RiggsFolly, it is possible to have two separate environmental WampServer, a 32-bit and a 64 bit.
You can see in my signature, what is my WampServer 32-bit; it is installed in J:\wamp\
My Wampserver 64-bit is installed in J\wamp64\ with Apache 2.4.12 - PHP 5.5.22/5.6.6 - MySQL 5.6.23.

Thanks to the various changes I made to my version of WampServer (2.5.16), I can easily change the ports used by Apache and MySQL. Which may allow me to run 32 and 64-bit versions of WampServer simultaneously, using port 8080 for Apache 64 bit and port 3307 for MySQL 64bit.

However, this is all about a lot more experimentation and "high-flying" than normal use.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can I mix x86 version of PHP with x64 version of Apache
Posted by: jmwright1058 (---.hlrn.qwest.net)
Date: March 02, 2015 07:02PM

Thanks, RiggsFolly,

You hit my next question right on the head (installing 32 bit version into c:/wamp32).


If the install instructions recommended c:/wamp32 or c:/wamp64 as default (maybe I just missed it) for the 32 bit or 64 bit respectively, this might avert a few support questions.

But, thanks, I appreciate this answer before I asked it!

Options: ReplyQuote
Re: Can I mix x86 version of PHP with x64 version of Apache
Posted by: RiggsFolly (---.as43234.net)
Date: March 02, 2015 07:11PM

Actually,

The best way to avoid the support questions is not to make it too public that this is possible.
Or everybody will try it, and that would be MADNESS.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.