DaveXP Posted August 28, 2003 Share Posted August 28, 2003 Hi Guysok 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 workplz help me. Link to comment Share on other sites More sharing options...
xper Posted August 28, 2003 Share Posted August 28, 2003 Whats the problem? Link to comment Share on other sites More sharing options...
DaveXP Posted August 28, 2003 Author Share Posted August 28, 2003 The problem is the php pages are all in code when you try to view them. Link to comment Share on other sites More sharing options...
xper Posted August 28, 2003 Share Posted August 28, 2003 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 ManagerRight click the top level icon (your computer name) click PropertiesClick the Edit button in the Master Properties box to edit the WWW Service properties.Click the 'Home Directory' tabClick 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 More sharing options...
DaveXP Posted August 29, 2003 Author Share Posted August 29, 2003 waht do you mean i cant seem to find anything in the IIS Control Panel about config? Link to comment Share on other sites More sharing options...
xper Posted August 29, 2003 Share Posted August 29, 2003 Check my earlier post again. Link to comment Share on other sites More sharing options...
DaveXP Posted August 29, 2003 Author Share Posted August 29, 2003 i am think you mean this but there are on props there? Link to comment Share on other sites More sharing options...
xper Posted August 29, 2003 Share Posted August 29, 2003 Default Web Site. Link to comment Share on other sites More sharing options...
DaveXP Posted August 29, 2003 Author Share Posted August 29, 2003 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 More sharing options...
DaveXP Posted August 29, 2003 Author Share Posted August 29, 2003 Update: ok now it says CGI ErrorThe specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:? does anyone no what this is Link to comment Share on other sites More sharing options...
DaveXP Posted August 29, 2003 Author Share Posted August 29, 2003 Anyone?? Link to comment Share on other sites More sharing options...
DFauLT Posted January 8, 2004 Share Posted January 8, 2004 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 More sharing options...
Aaron Posted January 8, 2004 Share Posted January 8, 2004 Here's a guide that was posted recently:http://forums.devshed.com/t61791/s.htmlIt didn't work for me, so I'm sticking with my Apache Link to comment Share on other sites More sharing options...
xper Posted January 8, 2004 Share Posted January 8, 2004 Just one thing. Be sure to PHP and MySQL are installed in C:\ folder. Not in C:\Program Files or something. Link to comment Share on other sites More sharing options...
bisco2k Posted January 8, 2004 Share Posted January 8, 2004 Give this a tryExtract the php zip file that ya downloaded to (c:\php\).Copy php.ini-dist to (C:\windows\) and rename it to php.iniCopy phpts.dll to (C:\windows\system32\)Open Control Panel and goto Administrative Tools and open Internet Information ServicesOpen 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.dllFor 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 0This needs to be turned off, php & IIS dosent work with this set to 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now