Jump to content

IIS7, PHP 5, MySQL - Nearly there.


Recommended Posts

I have installed php5 on iis7 under a restricted user.

 

I am running php through the dll, and it loads fine and parses php files.

 

I have installed mysql, which is correct and functions fine.

 

But when loading a webpage in firefox,

 

<?php

if (function_exists('mysql_connect')) {
    echo "MySQL functions are available.<br />\n";
} else {
    echo "MySQL functions are not available.<br />\n";
}

?> 

 

I get that the functions are not available.

 

running the same file through command line, throught the exe,

 

I get that the functions are available.

 

I have tried changing as many permissions as possible.

 

IIS7 + PHP exe = Won't work, 500 error, something isn't setup correctly, can't work out what.

IIS7 + PHP dll = Works fine.

IIS7 + PHP dll + MySQL = nope. cant find mysql.

PHP exe (command line) + MySQL = fine, works as expected.

 

Anyone managed to get this setup working on IIS7?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/44837-iis7-php-5-mysql-nearly-there/
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.