FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows [message #17463] Wed, 31 March 2004 02:49 Go to next message
ZloBy is currently offline  ZloBy   Germany
Messages: 1
Registered: March 2004
Location: Germany
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Hi all, I use now php 4.3.0 and have many scripts and won't it uninstall or delete.
But I will now testing some things with the new one version: php 5.

How can I run the both versions of php on the same Apache 2.0 Server on Windows?
Is this posible?

Thanks and regards!
Nikolay
Re: running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows [message #17466 is a reply to message #17463] Wed, 31 March 2004 08:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
The only way to run 2 php version on 1 server is to use Apache and have 1 PHP compiled as apache module and the other as CGI.

FUDforum Core Developer
Re: running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows [message #18119 is a reply to message #17466] Mon, 10 May 2004 02:38 Go to previous messageGo to next message
esm2002 is currently offline  esm2002   United States
Messages: 339
Registered: May 2002
Location: Atlanta Georgia
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
are there any significant differences when using php that is compiled as cgi vs apache???

Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Re: running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows [message #18123 is a reply to message #18119] Mon, 10 May 2004 08:52 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
The apache version of PHP will be much faster then a CGI one.

FUDforum Core Developer
Re: running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows [message #18132 is a reply to message #18123] Mon, 10 May 2004 17:05 Go to previous messageGo to next message
esm2002 is currently offline  esm2002   United States
Messages: 339
Registered: May 2002
Location: Atlanta Georgia
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
my host is moving us from the apache version to the cgi version may 12.

what do I need to be aware of as far as potential problems??

if the apache version is faster why go to the cgi version??


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Re: running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows [message #18134 is a reply to message #18132] Mon, 10 May 2004 17:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
The CGI version is arguably more secure. As for possible problem, search on Google Smile.

FUDforum Core Developer
Re: running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows [message #18215 is a reply to message #17463] Thu, 13 May 2004 12:54 Go to previous messageGo to next message
philip is currently offline  philip   United States
Messages: 21
Registered: December 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
If someone is really wanting to run both PHP 4 and PHP 5 on one server, have a look here:

http://www.faqts.com/knowledge_base/view.phtml/aid/26890
Re: running both versions - php 4.3.0 and php 5 on one Apache-Server on Windows [message #31411 is a reply to message #17463] Fri, 21 April 2006 05:29 Go to previous message
richardlynch is currently offline  richardlynch   United States
Messages: 8
Registered: April 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Also, CGI isn't always "much" slower than Module.

If the CGI binary and the HTTP children can all fit into RAM cache, then the hard drive doesn't get hit on every page load.

Once your CGI gets page-faulted to hard drive though, on a busy server, things go bad really fast.

[Or so I understand it...]

I did not read all the articles from the FAQT link, but if none of them discuss the ProxyPass option of running 2 apache servers, but having one of them "front" for the other, so you can get PHP as module on the 2 pools, while keeping a common "face" to the world, then you need to search PHP-General for Rasmus Lerdorf's post about this.

As far as missing features in CGI, the biggie is HTTP Authentication, as I recall. Apache/PHP are unwilling to schlep your HTTP Auth user/pass through the CGI command, as it would be visible to anybody who can run "ps auxwwww" and catch it as it goes by. (This is from memory from years ago, mind you, so I could be "off" a bit...)

There are also some real esoteric functions/features you are unlikely to notice at all missing from CGI -- So esoteric I've forgotten what they are. Again, years old info, so maybe there's more now that gets lost going from Module to CGI.

For the average webhosted shared site, a change from Module to CGI probably won't impact you at all, except possibly the speed issue -- And your webhost is probably fairly confident on that one, or they'd not go this route.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: invalid argument
Next Topic: pathinfo problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Dec 12 10:46:10 EST 2017

Total time taken to generate the page: 0.00813 seconds