Jump to content


Photo

installing php 5 question


  • Please log in to reply
3 replies to this topic

#1 darkcarnival

darkcarnival
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts

Posted 07 June 2006 - 05:04 PM

hi,

i plan to upgrade my test server from 4.3.9 to 5.1.4

now i did try to use php 5 before but i wnen t back to php 4 after i seen mysql had to aded in as a mod, now is that still needed? and if so how do i set that up?

thanks.

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 June 2006 - 07:05 PM

Yes if you use PHP5 you have to manaully enable the extension, just edit two lines in the php.ini if you're on Windows and you now have mysql support, for more details explainatio read my thread [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=87276\" target=\"_blank\"]here][/a]

Also if you want to upgrade PHP just download the Zipped binaries package and extract the contents of the zip file where your PHP folder is setup to and overrite ALL current files in that folder.

Now you need to edit your httpd.conf file and if you configured Apache to use PHP as a module you'll need to modify it slghtly, such as changing any instance of isapi/php4apache.dll or isapi/php4apache2.dll to php5apache.dll or php5apache2.dll

And thats it! You have now upgraded PHP, save your httpd.conf and restart Apache. If you did it in a different way or used a different server, like IIS, then it may take bit more editing.

If you're not on Windows and are using *nix based OS then you may need to recomiple PHP to the setup you want.

#3 darkcarnival

darkcarnival
  • Members
  • PipPipPip
  • Advanced Member
  • 162 posts

Posted 07 June 2006 - 07:09 PM

thanks

i setup php differently in apache than what you listed btw i did it the cgi way, i believe thats what its called. calling php.exe which in php 5 i learned was renamed to php-cgi.exe

thank you for the help.

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 June 2006 - 07:11 PM

No problem. I prefer trhe Apache Module way myself. [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users