TUTORIAL: How to install PHP and MySQL on IIS

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post October 3rd, 2007, 11:14 am

Have you seen this?
http://www.somacon.com/p126.php

It describes your error in IIS and provides resolutions.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 3rd, 2007, 11:14 am

  • mmaderich
  • Born
  • Born
  • No Avatar
  • Joined: 03 Oct 2007
  • Posts: 4
  • Status: Offline

Post October 3rd, 2007, 12:20 pm

ATNO/TW wrote:
Have you seen this?
http://www.somacon.com/p126.php

It describes your error in IIS and provides resolutions.


Now, correct me if I'm wrong in this, but basically, what I'd do is replace where it says to choose asp.dll with php5isapi.dll, since I'm using PHP, not ASP for the page, and I'd setup php5isapi.dll for .php extension not the .html extension, yes? (Though, I tried for .html and .htm as well, just to see what would happen, and no go.)

Also, I discovered that if when I type in the URL, instead of going to http://www.domain.com , I go to http://www.domain.com/index.php it will let me login, but certain PHP scripts, when I go to certain pages, won't run, and part of the page will be blank.

I found one site that said that the cause of that is if you have Front Page setup in IIS, so I removed it, but it still happens.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post October 3rd, 2007, 1:00 pm

For the mapping I used .php ext c:\PHP\php-cgi.exe verbs "all". Have never had a problem with any php file.

I got that from here when I set mine up.
http://www.visualwin.com/PHP/
  • mmaderich
  • Born
  • Born
  • No Avatar
  • Joined: 03 Oct 2007
  • Posts: 4
  • Status: Offline

Post October 4th, 2007, 1:37 am

ATNO/TW wrote:
For the mapping I used .php ext c:\PHP\php-cgi.exe verbs "all". Have never had a problem with any php file.

I got that from here when I set mine up.
http://www.visualwin.com/PHP/


Sorry for taking so long to respond. Well, I set up the server earlier to use PHP-CGI.exe, and once I finished configuring it because of the redirect, it still has the same exact problem. Anything else you can think of? (At this point, I'm thinking it might be easier to wipe it, install Fedora, then just yum install Apache, PHP, and MySQL.)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post October 4th, 2007, 5:26 am

I seem to recall trying a couple programs once where I've got that error. Oddly I have about a dozen php apps running just fine on IIS with MySQL including phpMyAdmin, phpBB, and Coppermine as well as ones I wrote. I basically summed it up as something in the way the programs were written that IIS didn't like, couldn't figure out what, and just chucked the programs and found another solution.
  • magicmarc
  • Born
  • Born
  • No Avatar
  • Joined: 09 Oct 2007
  • Posts: 1
  • Status: Offline

Post October 9th, 2007, 12:02 pm

hi anto,
quick question, im following thesesteps to install the php/mysql onto my existing iis 5 server running on a windows 2000 sbs server i have here.
im wanting to add a moodle website to my server, in addition to my existing websites already on the server.

in order to run the moodle site ineed php and mysql.
my question is this, im installing php, and its asking what 'webserver setup'... what web server setup? 'do not setup a web server' since i already have my iis up and runnin fine?
thanks
marc
im very new to php, i had the wamp package running on a dedicated pc, but not an iis server previously!
thanks'
m
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post October 10th, 2007, 4:18 am

You know it's been nearly two years since I've set it up and I can't recall that part of the install. Perhaps someone with a more recent install experience could answer that for you.

Post October 16th, 2007, 1:29 pm

Thank you for your great tutorial.

I am having some issues with the php. I can run the test page and it works but no other .php pages will load?

Any suggestions?
  • phplunatic
  • Born
  • Born
  • No Avatar
  • Joined: 29 Oct 2007
  • Posts: 1
  • Status: Offline

Post October 29th, 2007, 3:16 pm

Hello there

First of all thanks for your tutorial. After four frustrating hours am more frustrated now(but every programmer goes through it), I've been trying to run php on windows xp machine which is used for development purpose. Am not sure where am going wrong. I have carefully followed the instructions in this tutorial but still am getting HTTP 500 error, Should I use php5isapi.dll for mapping purposes or php.exe? Sorry am totally confused and a newbie for php, so any help would be much appreciated.

Tons of thanks in advance
  • chris2699
  • Born
  • Born
  • No Avatar
  • Joined: 02 Nov 2007
  • Posts: 1
  • Status: Offline

Post November 2nd, 2007, 4:05 pm

I have followed your instructions to the 'T' and I am getting an error when I goto my browser:

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

I can not find any errors or a log file for that matter.

My php.ini you said to edit is not where you said it would be it is in the c:\PHP directory. Although I did modify it according to your instaructions.

Also I am running the defaulr web server on port a non standard port.

Any insite would be great

Thank you
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post November 2nd, 2007, 9:34 pm

If you didn't do the standard Windows Install, then you need to copy and paste the php.ini to C:\Windows
That should fix the errors once php.ini is in the correct place.
  • bettytech
  • Born
  • Born
  • No Avatar
  • Joined: 04 Nov 2007
  • Posts: 4
  • Status: Offline

Post November 4th, 2007, 10:09 pm

//please do not repost copyrighted articles from blogs and other places. Link to them instead. Original blog post
http://www.bizpassion.com/?p=79
  • Shadxow
  • Born
  • Born
  • No Avatar
  • Joined: 10 Nov 2007
  • Posts: 2
  • Status: Offline

Post November 10th, 2007, 10:08 am

i would first like to say awesome tutorial.

when i tried to follow it, i got to the part of installing php and got this error when trying to install it:

Image

Image

the error is in the second pic. it says "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2878."

i have tried re-downloading the installer 3 times already, and ive disabled the bitdefender and registry mechanic programs that i have installed. i have also tried to restart the pc and none of those things helped.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post November 12th, 2007, 6:49 am

This was apparently a problem with 5.2.5 and was reported November 9th here:
http://aspn.activestate.com/ASPN/Mail/M ... ev/3579705


This issue was addressed and closed by jmertic. Check this post posted yesterday from jmertic
http://aspn.activestate.com/ASPN/Mail/M ... ev/3579990

Apparently it's now fixed in the CVS but might take a few days for the installer. I'd suggest give it a day or two and download again, or if you want download the current CVS from the link provided in that post. If you aren't comfortable installing from a CVS, I'd suggest waiting until the installer is fixed.
  • Shadxow
  • Born
  • Born
  • No Avatar
  • Joined: 10 Nov 2007
  • Posts: 2
  • Status: Offline

Post November 13th, 2007, 8:42 pm

thxs for the quick responce. i dont mind waiting so ill just wait for the installer.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 13th, 2007, 8:42 pm

Post Information

  • Total Posts in this topic: 142 posts
  • Moderators: joebert, katana
  • Users browsing this forum: No registered users and 59 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2008. Driven by phpBB © 2001-2008 phpBB Group.

 
 
 
 

Need a pre-made web design for your website?

Check out our templates here: Ozzu Templates


400+ FREE Website Templates. Download Now!