Pages: Previous12
Current Page: 2 of 2
Re: Two Wamp Instances
Posted by: sTimulated (---.as13285.net)
Date: October 22, 2012 11:49PM

This may solve my issue that I've had for years...........

Is it possible to run a 64 bit and a 32 bit at the same time?

my website needs php5 but a software package I run needs php4 to 'show' properly.


possible to run 2x wamp2.2's or does it need to be a 2.1 and a 2.2?

Options: ReplyQuote
Re: Two Wamp Instances
Posted by: stevenmartin99 (Moderator)
Date: October 23, 2012 06:32AM

I have up on this a while back, it's possible with different php5 versions , but php4 is just missing a command for doing this, it wasn't invented until php5.

Iv tried downloading the source of 4 and modifying it but I got nowhere.


It's always been possible to run two php versions on different ports. You don't even need another version of wamp. You can just add a new httpd.conf file and install a service for it using php4.

But regardless of which way you do that, you will need different ports. I remember asking you in the past and I don't think that was an option?it would be Localhost for php5 and Localhost:81 for php4

Is that something you can allow?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Two Wamp Instances
Posted by: sTimulated (---.as13285.net)
Date: October 23, 2012 10:27AM

Yes Steve,I have total control over everything basically.
I would just open the port in my router.

I also multiboot so have plenty of scope for trial and error.

Is it as simple as just copying the httpd.conf file and changing ports inside?
I'll need to download a php4 again and install but not too sure how to install the service for it?

Then just have to have the software point to the php4 or is it all kinda automated?

Thanks



Edited 1 time(s). Last edit at 10/23/2012 10:29AM by sTimulated.

Options: ReplyQuote
Re: Two Wamp Instances
Posted by: stevenmartin99 (Moderator)
Date: October 23, 2012 05:14PM

its pretty much that simple. you need to add a service, and in the service params specify where the httpf.conf is. then in that httpd.conf change the document root and extentsion for php.


you do realise that everyone willhave to type :81 yes?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Two Wamp Instances
Posted by: sTimulated (---.as13285.net)
Date: October 23, 2012 08:04PM

stevenmartin99 Wrote:
-------------------------------------------------------
> its pretty much that simple. you need to add a
> service, and in the service params specify where
> the httpf.conf is. then in that httpd.conf change
> the document root and extentsion for php.
>
>
> you do realise that everyone willhave to type :81
> yes?


I'll see if I can muddle through it......I'll probably get back to you......
The software is just a link that people will click to see 'results' which the software generates from files I give it.
I think all I'll need to do is just edit the link?

I'm mostly free tomorrow so I'll give it a whirl.....

Thanks

Options: ReplyQuote
Re: Two Wamp Instances
Posted by: stevenmartin99 (Moderator)
Date: October 23, 2012 11:44PM

the command you want for installing a service is

c:/path/to/apache/bin/httpd.exe -k install -n wampapache_php4 -f c:\path/to/apache/conf/httpd_php4.conf

in the httpd.conf change the line

LoadModule php5_module "c:/wamp/bin/php/php5.x.x/php5apache2_0.dll"

to

LoadModule php5_module "c:/wamp/bin/php/php4.x.x/php5apache2_0.dll"

and change your Doc root to point to your php4 site.


Remember that php 4 and 5 are only both compatiable with apache1.3 - 2.0 so make sure your using apache 2.0 and not 2.2

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Two Wamp Instances
Posted by: sTimulated (---.as13285.net)
Date: October 24, 2012 12:12PM

ok now I'm struggling sad smiley

installed php4
installed apache 2036
can't find httpd-vhosts.conf within apache2036?
so website doesn't work.
I think I need to make a new httpd-vhosts.conf or just copy my other one.
but where to put it and how to point to it within httpd.conf?
how to change doc root?

sad smiley

Options: ReplyQuote
Re: Two Wamp Instances
Posted by: stevenmartin99 (Moderator)
Date: October 24, 2012 05:07PM

teamviewer?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.