Forum Moderators: coopster

Message Too Old, No Replies

installing php 5.2.5 with binary distro

it has become a pain in neck to install on xp

         

phparion

6:06 am on Mar 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi

I have been trying to install PHP 5.2.5 on windows XP but no luck so far. I tried .msi installer. it installed the php fine but it didn't install any extensions. in fact there was no extensions directory under php installation. Then I removed it and downloaded .zip file for the same version and unzipped it, moved the php.ini, after renaiming from php.ini-recommended , to windows/system32 folder. I added three lines in the httpd.conf. now here the real gamble started. apache was unable to pick php5apache2_2.dll ( i am using apache 2.2) then i tried it with php5apache2.dll but no luck. I checked the path etc and everything was ok but still apache was giving error when i tried to restart it.

After hours of frustration, I googled and found a FAMOUS blog entry where the fellow had told a very unique way to install php5.2.5 on windows i.e to use installer first then unzip zip file and copy ext folder to the php installation. Unfortunately, even that didn't work for me. Now php pages are not executed at all..

Does anyone know a step by step tutorial to install this version of php on windows xp? I tried to read the install.txt file bundled with php zip file but that is ..... zend zend zend...

thanks in advance for help.

henry0

12:59 pm on Mar 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is your local test bed correct?
So why not using WAMP5 if offers the most recent PHP and MySQL distro and installs in a few seconds headaches free.

Also did you read this in the library [webmasterworld.com] (I posted it maybe two years ago and it probably needs updating)

phparion

5:52 am on Mar 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Long the days gone when I used to use WAMP, PHPtriad kinda softwares to install everything right a way. Now I love installing and configuring mysql,apache and PHP myself one by one so that I can have full control on many options I want. Because now I am not going to write echo "hello world"; and then jump out of my chair to see its output :) now the game is more critical...

anyway, how do you install / control extensions with .msi installer? and how did you install php 5.2.5 with .zip archive file from php.net? ON WINDOWS of course.

thank you

mikesmith76

8:26 am on Mar 12, 2008 (gmt 0)

10+ Year Member



all you need to do for extensions is copy the ext (or is it extension) directory from the zip download. Then look for the extension_dir in your php.ini file, and change the path to the directory you have just copied.

Final thing to check is if apache has permissions to access the extension dir, as i have had odd problems with this in the past.

Restart apache and you should be good to go.

Hope this helps

alex95_bg

7:47 pm on Mar 18, 2008 (gmt 0)

10+ Year Member



I'm using PHP 5.5 on Apache 2.2 on WinXP.I had a similar problem.The .msi installer didn't install the mysql module.I don't remember much details but maybe you need to choose Advanced(Custom) installation.And the php.ini can be in the php install folder only.For me it's C:Program Files/PHP/php.ini