Jump to content


Photo

php version switcher


  • Please log in to reply
6 replies to this topic

#1 kermit

kermit

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 08 May 2005 - 12:39 AM

a 'quick and dirty' php version switcher for uniform server 3.2 and the php4 'plugin' for it, as downloaded 7 may 05.

a friend needed an easy to install wamp installation with php4, so i made a little bat to switch php versions. it acts like a toggle and does check to make sure everything's where it's expected to be before it runs.

the attached zip contains all the new files and modified httpd.conf. it maintains directory structure from uniform server's root (the parent directory of diskw), so be careful not to overwrite your httpd.conf if you've changed it yourself......

tested and works for me on winxp pro sp2.. however, as always, ymmv. :)

basically you make a one line change to httpd.conf. it's line 288 for an unmodified file. (or use the included one if you've not made any changes to it).

three new files get put into apache's conf directory. make sure loadphp.conf loads the correct version that you have in /usr/local/php. the other version of php needs to be named 'php4' or 'php5' (as appropriate).

the batch goes in the parent directory of diskw. with uniform server shut down, just run the switchphp.bat file to switch which php version gets loaded.

Attached File  switchphp.zip   15.11KB   785 downloads

#2 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,344 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 08 May 2005 - 09:02 AM

Thanks :)
Finnally :P

Can you also post it in the SF Patches system over at our site page on SourceForge?

Thanks...

Edited by olajideolaolorun, 08 May 2005 - 10:08 AM.


#3 kermit

kermit

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 08 May 2005 - 02:31 PM

Thanks :)
Finnally :D

Can you also post it in the SF Patches system over at our site page on SourceForge?


i don't have a sourceforge account. i just leech.. err, i mean download stuff from there. B)

it's just something i whipped up cuz i needed it..

i saw another wamp installer that had one, so figured i'd share mine here.

i claim no rights to it, she's all yours. you can do whatever you want with it.. :)

#4 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,344 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 08 May 2005 - 04:56 PM

I will see what i can do with it. B) Thanks :D

#5 MACscr

MACscr

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 24 April 2006 - 04:20 AM

Does this work anymore? Apache wouldnt even load when I tried this and i didnt get any errors besides from when it tried to redirect to the admin panel after apache started and it couldnt connect. The switchphp file produced no errors. Any tips?

#6 MACscr

MACscr

    Newbie

  • Member
  • Pip
  • 2 posts

Posted 24 April 2006 - 05:08 AM

Does this work anymore? Apache wouldnt even load when I tried this and i didnt get any errors besides from when it tried to redirect to the admin panel after apache started and it couldnt connect. The switchphp file produced no errors. Any tips?

View Post


Figured it out, was an issue with the from the plugin not having the line: PHPIniDir "/usr/local/php/"

Everything works fine now. Woo hoo. =P

#7 olajideolaolorun

olajideolaolorun

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 2,344 posts
  • Gender:Male
  • Location:Atlanta, GA
  • SourceForge IDempirex
  • Wiki ID: olajideolaolorun
  • IRC Nickname: Olajide
  • Main OS: Windows 10

Posted 24 April 2006 - 10:53 PM

Woo Hooo....




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users