mjlogan Posted March 29, 2007 Share Posted March 29, 2007 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 Quote Link to comment Share on other sites More sharing options...
solarisuser Posted April 2, 2007 Share Posted April 2, 2007 Are you loading the mysql extension in your php.ini? Do that, restart the web server, and it should see it. Quote Link to comment Share on other sites More sharing options...
mjlogan Posted April 10, 2007 Author Share Posted April 10, 2007 Yeah mysql is set to load in php.ini Restarted it many a time, but it only seems to work through the exe through command line. A web browser using the dll will not work for some reason. Quote Link to comment Share on other sites More sharing options...
gp177 Posted April 26, 2007 Share Posted April 26, 2007 Just to make sure. Your restarting the World Wide Publishing (or whatever it is) and not just hitting the stop and play button in IIS right? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.