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
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.