Jinah Adam ’s Official weBlog..
my thoughts, my projects, my intrests, my reviews, my life ….

installing php on windows XP x64 edition

as anyone who has done any development/hosting on a win64 system wud knw it has IIS 6.0, theoratically the same one you find in server 2003. but i had to 2 to do a few additional steps compared to Server 2003 in order to install php on it.

all though my system had 64bit hardware(AMD64) i been working with XP x32, and day before yesterday i decided to switch to 64Bit cause the old version i had was very buggy and there was a problem with the bluetooth driver. Anyway i had everything set up. even IIS. So i went to php.net downloaded the 5.20 version.(windows installer).

I ran the setup, the new windows installer was very nice, well atleast until it started to copy the files. It gave an ERROR, a very vague error. the message said “an error has occurred. set up didn’t complete successfully”. So i did what anybody would do. i googled it!. but there was nothing on installing php on win64. not even on the message boards at php.net

I tried downloading the zip file and configuring IIS manually but both the cgi and ISAPI version rendered errors. obviously i wasnt really good at manual configurations. So i assumed it must be a bug .. most probably in IIS, and it was incompatible with the current php release.

I searched my pc at work for an older 5.X version, and did find one. Even that gave ERROR, but this time the error was a bit more informative. It said it couldnt find the “iisext.vbs” file in the system32 folder. i searched for the file. and it was there in the system32 folder. i wonder why the setup couldnt find it there… i ran the script once and restarted IIS.

Everything is working smoothly now! :D

6 Responses to “installing php on windows XP x64 edition”

  1. Hi, I’m running Windows x64 edition and had this same problem, I did what you said and it was still an issue. I found several posts around the interweb saying to run a script in run to change iis to allow 32bit apps. Finally, the one that worked was this: cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

    Cheers

  2. Hi i have been trying to setup php5 on my win2k3 r2 x64 server and after running the script

    cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

    I now get a service unavailable for all web pages on the server..

    Before i ran the script i was getting the error 500…

    Any assistance with this would be much appriciated..

    Yours Truly

  3. I guess we all are having same issue, if anyone comes across any fixes, please post, as i have scoured the web looking for hours and trying everything and now my webpage’s arent even comming up, i seem to be digging my self a bigger hole. P.s. not having a mouse or little cursor for your text is slightly annoying, might i reccomend changing that.

    Cheers,

    Ansel

  4. You could try doing the following:

    msiexec /a filename.msi

    I executed the above command/syntax for PHP 5.2.5 Win32 (on Vista Ultimate x64) using the following:

    msiexec /a php-5.2.5-win32-installer.msi

    This method does not show you any messages or progress, but it seems to actually install the files on to the system. I am not very sure if it did install all of the files, because PHP still does not run under IIS7.

    I did write a very simple C++ program that executes the MSIEXEC application with the /a switch, and php-5.2.5-win32-installer.msi , and the reason for the small program in C++, is that it calls the User Access Control (UAC) so it makes my life a bit easier.


Leave a Reply