Re: PHP4/PHP5 Apache Modules on Windows

php.internals

Unnamed Person

22 years ago
In a message dated 1/10/2004 8:13:25 PM Eastern Standard Time, sniper@iki.fi writes: IIRC, it does not work. And it will not work either. Only way to run both in same apache is to have other one run as CGI. --Jani That's the way I currently have it. But I just need to know what Bad Things(tm) could happen, and then I'll try it out. See how it goes. In response to a message someone else said, I don't think it has anything to do with the name, because they're named differently now. So, if the Bad Things (tm) that could happen are not serious, I try it out anyway and report my findings here. Gordon Hemsley

DvDmanDT

22 years ago
I just realized something.. You couldn't have a single extension enabled, since they both would use the same php.ini, and I would guess modules are binary incompitable.. Also, if a dll with the name php_gd2.dll is loaded by php4, php5 would think it's the same dll if you want GD there as well, wouldn't it? I guess fastcgi or cgi is still the way to go... Until you can specify a different php.ini in Apache... Another idea would be to use no php.ini and set everything in httpd.conf, and manually build them, and name the dll's differently... (php4_gd.dll, php5_gd2.dll etc)... But if there are something like shared memory or something like that, I guess it's just to forget the idea to run them both as modules... I also run php5 (and php3) as cgi.. php4 is installed as both cgi and module in my cfg...
-- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ########################## Please, if you are using windows, you may be infected by Swen. Please go here to find out more: http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html ########################## <GPHemsley@aol.com> skrev i meddelandet news:9.20241f35.2d321255@aol.com... > In a message dated 1/10/2004 8:13:25 PM Eastern Standard Time, sniper@iki.fi > writes: > > IIRC, it does not work. And it will not work either. > Only way to run both in same apache is to have other one > run as CGI. > > --Jani > That's the way I currently have it. But I just need to know what Bad > Things(tm) could happen, and then I'll try it out. See how it goes. In response to a > message someone else said, I don't think it has anything to do with the name, > because they're named differently now. So, if the Bad Things (tm) that could

shimi

22 years ago
On Sun, 11 Jan 2004, DvDmanDT wrote:
> I just realized something.. You couldn't have a single extension enabled, > since they both would use the same php.ini, and I would guess modules are > binary incompitable.. Also, if a dll with the name php_gd2.dll is loaded by > php4, php5 would think it's the same dll if you want GD there as well, > wouldn't it?
Look in ./configure --help - they can both sit in different trees (both the php tree (includes, etc...), and the php config file. It's all there in ./configure. So they can co-exist.
> > I guess fastcgi or cgi is still the way to go... Until you can specify a > different php.ini in Apache... Another idea would be to use no php.ini and > set everything in httpd.conf, and manually build them, and name the dll's > differently... (php4_gd.dll, php5_gd2.dll etc)... But if there are something > like shared memory or something like that, I guess it's just to forget the > idea to run them both as modules... >
See above... + the problem is that php4 and php5 uses some same identical internal names, which will collide if they will be loaded together (x-httpd-php to name one?)
> I also run php5 (and php3) as cgi.. php4 is installed as both cgi and module > in my cfg... > >
-- Best regards, Shimi ---- "Outlook is a massive flaming horrid blatant security violation, which also happens to be a mail reader." -=The best way to accelerate a Windows machine is at 9.81 m/s^2=- "Windows is a 32-bit port of a 16-bit GUI for an 8-bit OS on a 4-bit CPU made by a 2-bit company that can't stand 1 bit of competition."

DvDmanDT

22 years ago
.. There really should be another configure parameter which names all non-language stuff php5 instead of php... Like x-httpd-php5, php5_gd2.dll and so on.. phpinfo and all other functions, constructs and so on (language stuff) should efcorse remain the way they are, but a parameter to name them 4/5 would really be great...Wouldn't be too hard would it? Although, might be a problem in documentation, on how to install and so on... :p
-- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Shimi" <shimi@shimi.net> skrev i meddelandet news:Pine.LNX.4.44.0401110657280.28762-100000@fresh.co.il... > On Sun, 11 Jan 2004, DvDmanDT wrote: > > > I just realized something.. You couldn't have a single extension enabled, > > since they both would use the same php.ini, and I would guess modules are > > binary incompitable.. Also, if a dll with the name php_gd2.dll is loaded by > > php4, php5 would think it's the same dll if you want GD there as well, > > wouldn't it? > > Look in ./configure --help - they can both sit in different trees (both > the php tree (includes, etc...), and the php config file. It's all there > in ./configure. So they can co-exist. > > > > > I guess fastcgi or cgi is still the way to go... Until you can specify a > > different php.ini in Apache... Another idea would be to use no php.ini and > > set everything in httpd.conf, and manually build them, and name the dll's > > differently... (php4_gd.dll, php5_gd2.dll etc)... But if there are something > > like shared memory or something like that, I guess it's just to forget the > > idea to run them both as modules... > > > See above... + the problem is that php4 and php5 uses some same identical > internal names, which will collide if they will be loaded together > (x-httpd-php to name one?) > > > I also run php5 (and php3) as cgi.. php4 is installed as both cgi and module