Jump to content

IIS\MySQL\PHP


Recommended Posts

Hi Guys

ok i have got my web site as some people may no about already and i decided to host it from my own computer as the site is to big to be hosted by a free server anymore.

I installed IIS 5.0 with Frontpage server add on 2002 and it worked fine!

but i wanted to have a forum as well but i cant get mysql or my php to work

plz help me.

:)

Link to comment
Share on other sites


Go to IIS and check config. You need to add path to php.exe and add .php extension too.

Thats it.

Open the Internet Services Manager

Right click the top level icon (your computer name) click Properties

Click the Edit button in the Master Properties box to edit the WWW Service properties.

Click the 'Home Directory' tab

Click the 'Configuration' button.

Click the 'Add' button to add an Application Mapping.

Click 'Browse' and find the path to php.exe as the Executable Use .php as the extension and check the Script engine checkbox.

Link to comment
Share on other sites

sorry to be a pain i have do that above thing you said but now i get page cannot be displayed i have configed the php.ini in the windows dir to point to my web root and also to point to where my php is installed "C:\PHP" so does anyone no why this is happening.

Link to comment
Share on other sites

  • 4 months later...

Sorry man,

I just got PHP and MySQL to work but on IIS 6.0. Are they similar enough to give you the way I did it? If so, I could help you out.

It was a pain setting up PHP in IIS but after a couple weeks and a couple "hard drive reformats" i got it to work.

I would recommend using Apache, but IIS is just so simple once you know how to work it. Also, easier to change settings (My opinions).

Well, if both IIS work the same let me know.

Laters

Link to comment
Share on other sites

Give this a try

Extract the php zip file that ya downloaded to (c:\php\).

Copy php.ini-dist to (C:\windows\) and rename it to php.ini

Copy phpts.dll to (C:\windows\system32\)

Open Control Panel and goto Administrative Tools and open Internet Information Services

Open the local computer branch and goto Web Service Extensions.

Select Add a new Web service extension.

For the Extension name type in PHP.

Hit the Add button.

Hit the Browse... button to find php4isapi.dll in the sapi folder where you extracted.

Enable the checkbox for Set extension status to Allowed and hit OK.

Right click the Web Sites branch and select Properties.

Goto the Home Directory tab and hit the Configuration... button.

Hit the Add... button and then hit the Browse... button to find php4isapi.dll

For the extension put php and hit the OK button.

Restart the World Wide Web Publishing Service.

Also search your php.ini for: cgi.force_redirect and set it to 0

This needs to be turned off, php & IIS dosent work with this set to 1

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...