PHP and IIS  | |
January 31st, 2007, 11:12 PM
|
#1 (permalink)
| | Mobile Member
Join Date: Apr 2005 Location: S. Central PA
Posts: 3,601
|
is there something i need to set in IIS to get my PHP code to run correctly.. I installed php from php.org or wherever it was. I had IIS installed, but i changed the port to 8083 instead of just 80. Im just using notepad++ for my code, but when i save it with a .php extension and throw it in my wwwroot folder and browse to it, i get a dialog box asking me if i want to open or save it (in IE)... In Firefox it says the same, but it recommends using "CLI"  to open it, but it still does nothing.
I know my IIS server is running on the local machine because i can target it with something like http://localhost:8083/ and get the default WIndows XP Pro page that says i have IIS running.. I then add the path for the file, and it doesnt want to load it, rather it asks me what it wants to do.
I asked a friend and he said that i should look for a config file since IIS was on there before PHP and since IIS doesnt recognize it, its probably something with my settings..
Anyone ever encounter this, or have any suggestions for getting my code to run (its just some simple echo stuff at this point) 
__________________ Thinkpad T61 14.1" wide | WinXP Pro | C2D T8300 CPU | 3GB DDR2 | 160GB HDD | AGN & WWAN
Lenovo S10 10.2" LED display | 1.6Ghz Atom CPU | 1GB DDR2 | 1.3mp webcam | B/G WiFi | 160GB HDD |
| |
January 31st, 2007, 11:22 PM
|
#2 (permalink)
| | Anime Otaku
Join Date: Oct 2001 Location: Tampa, FL USA
Posts: 108,969
|
__________________ Robert Richmond | TechIMO Community Relations Director
Infinite perceptions. One reality. FanFiction.Net - Unleash your imagination. |
| |
January 31st, 2007, 11:28 PM
|
#3 (permalink)
| | Mobile Member
Join Date: Apr 2005 Location: S. Central PA
Posts: 3,601
|
thanks Rob  |
| |
January 31st, 2007, 11:55 PM
|
#4 (permalink)
| | Mobile Member
Join Date: Apr 2005 Location: S. Central PA
Posts: 3,601
|
in looking at that tutorial, since i had some stuff in another directory and to eliminate another potential factor i uninstalled PHP 5.2 and im reinstalling it now, im asked in the setup what kind of web server i want to use, maybe last time i picked the wrong one, my choices for IIS are:
IIS 4+ ISAPI module
IIS 4+ CGI
and IIS/PWS 3
or i can choose stuff like do not setup a web server, apache stuff etc.. Which one should i pick? I dont rememeber what i chose last time, but i was probably wrong i have Windows XP pro and when i run the localhost and get my IIS screen it says on there somewhere Welcome to IIS 5.1, isnt that a newer version than what PHP has as options?
What should i choose in my install of PHP again so i can get this working better? |
| |
February 1st, 2007, 12:03 AM
|
#5 (permalink)
| | Anime Otaku
Join Date: Oct 2001 Location: Tampa, FL USA
Posts: 108,969
|
The IIS 4+ ISAPI install of PHP is generally considered "better" for IIS, but if you want to simply get PHP working, the IIS 4+ CGI install of PHP should be your best bet. As to version, note 4 +, so 5.x would be covered.  |
| |
February 1st, 2007, 12:07 AM
|
#6 (permalink)
| | Mobile Member
Join Date: Apr 2005 Location: S. Central PA
Posts: 3,601
|
alright here RR..
which one.. im counting on you  better or faster, which should i choose? Its for a PHP/mySQL class and i will probably be doing some stuff in PHP on the side.. |
| |
February 1st, 2007, 12:22 AM
|
#7 (permalink)
| | Anime Otaku
Join Date: Oct 2001 Location: Tampa, FL USA
Posts: 108,969
|
If you want to attempt an automated installer setup, go for the CGI-based install. Otherwise, I doubt you will notice much difference for basic usage. |
| |
February 1st, 2007, 12:28 AM
|
#8 (permalink)
| | SoMuchAnime-SoLittleTime
Join Date: Aug 2003 Location: Plymouth, WI
Posts: 14,983
|
I would not reccomend IIS.
Use Apache.
And if this isn't going to be setup as anything more than a development server... http://www.wampserver.com/en/index.php
1 simple install package, comes with Apache, PHP, MySQL, and phpMyAdmin.  |
| |
June 22nd, 2007, 06:00 PM
|
#9 (permalink)
| | Junior Member
Join Date: Jun 2007
Posts: 1
| Setting IIS6, PHP and MySql
Hello,
I got all 3 to work after hours of trial and error, here is an article so you can avoid the pain. http://www.atksolutions.com/articles...mysql_iis.html
Hope it helps,
Anthony    You're lucky I just didn't hit the 'SPAM' button. One post is fine to say you found/have a solution. DO NOT post it again. EvilRick |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |