Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS not aware of PHP?

Status
Not open for further replies.

SimonJC

ISP
Mar 1, 2003
2
GB
I posted a message in the MySQL forum and got the following response:

Looks like IIS doesn't know its suppopsed to be using PHP. personally Im unsure of how to configure it to do so but a post in this forum : Forum41 should get you up and running quickly.

I've put a copy of the origional message below.

Hi

I'm trying to setup my computer as a server.

OS: XP Pro
IIS: installed
mysql-3.23.55-win
php-4.3.1-Win32

When I ran "winmysqladmin" I received an ODBC error saying that 3.51 drive hadn't been found. I didn't find the 3.51 driver straight away but found the "myodbc-2.50.39-nt" which I installed, error still there! (obviously!). I have since installed the 3.51 driver which has cured that error.

Do I need to remove the 2.50 driver? If so how?

I've used a test.php (located in "c:/Inetpub/ from "PHP & MySQL for DUMMIES" (like me) and I get the following error:

Error " . mysql_errno() . ": " . mysql_error() . ""); elseif (mysql_num_rows($result) == 0) echo("Query executed successfully!"); else { ?> Variable_name Value
&quot;); $row_array = mysql_fetch_row($result); for ($j = 0; $j < mysql_num_fields($result); $j++) { echo(&quot; &quot; . $row_array[$j] . &quot; &quot;); } echo(&quot;
&quot;); } ?>

I set the following as:
$host=&quot;localhost&quot;;
$user=&quot;root&quot;;
$password=&quot;&quot;;

I've since tried the same &quot;test.php&quot; on a commercial web host and it ran fine.

Can some one please point me in the right direction?

Thanks

Simon
 
Also try this site



Jason Rich Cook -- &quot;Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.&quot;
 
Hi, I had that same error, got the odbc driver now its ok ... but in myodbc part in winmysqladmin it says 'Not Found'

Please let me know how to fix this.
 
IIS 5.0 (Windows 2000 Advanced Server)

I tried to get IIS 5.0 to work / see PHP scripts using the info found on these two sites



I also installed MySQL on the server, but I ran into problems with the IIS 5.0, PHP scripts and the database (MySQL).

I fixed it by un un-installing everything and getting this file

appserv-win32-1.9.0.exe (this can be found here >> ) which contains PHP, MySQL, PHP-Nuke (which I use), Apache Server.
I did a custom install and left out the Apache Server and PHP-Nuke.
(I now notice that 2.0 of this application is out, but I have not tested it yet.)

I installed MyODBC-3.51.06.exe

and then rebooted the server.

I then configured IIS 5.0 to look for the php.exe file in C:\AppServ\php and rebooted the PC again.

Now all my scripts and database work as they should.

Would be a good idea if someone could make a new installer like the appserv-win32-1.9.0.exe so that it works without all the headache of a manual install.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top