« Cannot delete file : Access is denied | Main | The People's Progressive Truth Generator »

March 13, 2006

Upgrading PHP422 to PHP512 under XP

To upgrade from PHP422 to PHP512, I went and downloaded the PHP 5.1.2 windows binaries (.zip version). Note: When you download PHP for Windows, make sure you get the .zip file instead of the executable installation file, or you won't get the Apache dll files. I extracted them to a folder named c:\php_512.

Then, I deleted all of my version 4 php*.dll files from the c:\windows\system folder. I copied in my new version 512 copy of the GD2 extension (php_gd2.dll) to the c:\windows\system folder. (Alternately, you could use c:\windows\system32. Either folder works for me.)

I replaced my old PHP.INI in the C:\windows with my new and improved version 5 PHP.INI file. These are the only changes I made to it:
register_globals = On
extension=php_gd2.dll
SMTP = mail.wispertel.net
smtp_port = 25
sendmail_from = peeniewallie@wispertel.net

I edited my Apache httpd.conf configuration file to load the new PHP module:

LoadModule php5_module "c:/php512/php5apache2.dll" *
#LoadModule php4_module "c:/php442/sapi/php4apache2.dll"

DocumentRoot "C:/Inetpub/wwwroot"

DirectoryIndex index.php index.html index.html.var index.cgi

* Note: Be sure to use the php5apache2.dll. Not the php5apache.dll.
** Note: Slashes always have to go forwards, even though it's Windows. I know. It looks stupid. But trust me. It's right.

And then I restarted the server. (God, I love Apache!)

Created phpinfo.php as:
phpinfo();
?>

Then open the file with a browser: http://www.peeniewallie.com/phpinfo.php


Posted by Peenie Wallie on March 13, 2006 at 9:40 PM

Comments

Scary to think there are people out there to whom all that makes sense. Probably Racanksy.

Posted by: Billll on March 18, 2006 at 4:27 PM

Post a comment




Remember Me?

(you may use HTML tags for style)


NOTICE: IT WILL TAKE APPROX 1-2 MINS FOR YOUR COMMENT TO POST SUCCESSFULLY. YOU WILL HAVE TO REFRESH YOUR BROWSER. PLEASE DO NOT DOUBLE POST COMMENTS OR I WILL KILL YOU.