hi,
php doesn't connect with mysql in windows server with IIS our website is build in both php and .net applications so we have to host it in windows server.
It depends which library you are using (PDO or just the procedural mysql commands or mysqli). Make sure the extension is uncommented in php.ini. If it still not works, do a phpinfo(); and post it here.
1. Install Xampp
http://www.apachefriends.org/en/xampp-windows.html#641
2. Start Apache, Start MySql
3. In a web browser find out where
http://localhost/xampp/
4. Click on the phpinfo() and note the php.ini location incase you need in future
5. Look at the MySql by clicking phpMyAdmin
If your connecting to this machine from another ensure
a.) Firewall allows mysql port
b.) copy from xampp files the correct version of libmysql.dll to the system32 directory of the machine running the .net app
Probably is a firewall issue. Or Mysql not running. XAMPP is the best way to go. It will install all for you and will be listning. Make sure to turn off IIS to free port 80. Later you can change apache port (to 8080 or whatever)
@tascam
Of course it runs. Do you know that Microsoft is one of the major PHP sponsor? PHP install directly and work in IIS. Of course it runs better on Apache and Linux/Debian/whatever flavor. Even the Azure platform has PHP extentions.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.