473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

PHP5 connection to MySQL problem

I've seen many people asking the same question in other forums but I haven't been able to solve this problem.

First the environment:
Windows Vista Ultimate running IIS6

Now the story:
Installed PHP and configured it in IIS with no problems.
Installed MySQL with no problems.
Both up and running except that PHP will not recognize the presence of MySQL

Using all the recommendations that I saw (some of them conflicting recommendations...) I tried the following:

Modified the php.ini file so that the extensions entries (the drive map and the DLLs) are being pointed to the correct EXT location.
Restarted ISS and ran a test page with phpinfo() and the MySQL sections are not there.

Modified the os path environment variable to include the PHP folder...Restarted ISS and ran a test page with phpinfo() and the MySQL sections are not there.

Moved the php.ini to the windows folder ... Restarted ISS and ran a test page with phpinfo() and the MySQL sections are not there.

Manually added the IUSRS user to the list of users of the file... in case it was a matter of permissions...Restarted ISS and ran a test page with phpinfo() and the MySQL sections are not there.

Moved the libmysql.dll to the windows/system32 folder ... Restarted ISS and ran a test page with phpinfo() and the MySQL sections are not there.

I think I tried every permutation of file locations for the php.ini file and for the DLL files (php_mysql.dll and php_mysqli.dll) Restarted ISS after each change and ran a test page with phpinfo() and the MySQL sections are not there.

I've reached the end of my rope trying every possibility...

Anyone has managed to get these 2 to talk to each other in a vista system?
Does anyone have any ideas?

Thank you for your help in this matter
Jul 19 '07 #1
4 1782
nathj
938 Expert 512MB
Hi Frank,

I have managed to get PHP and MySQL to commuinicate on Windows Vista Business using IIS7.

I had a lot of bother achieving this but in the end, after trying many configurations I did the following:
1) Cleared all web server software off the machine
2) Completely removed PHP and all associated files.
3) Left MySQL where it was
4) Installed IIS7 again
5) Teseted //localhost to be sure
6) Downloaded the PHP msi file and installed it ensuring to select mySQL extensions during the installation process.
7) Configured IIS to know about PHP and recognise it properly

After this I was able to see the MySQL section under phpInfo() and all was well. The two things talk happily.

I hope this helps
nathj
Jul 19 '07 #2
Thanks for the recommendation... but....

I don't recall, at the time of the PHP installation, being prompted to select the MySQL extensions...

In a matter of fact, I'm sure I was not.


Hi Frank,

I have managed to get PHP and MySQL to commuinicate on Windows Vista Business using IIS7.

I had a lot of bother achieving this but in the end, after trying many configurations I did the following:
1) Cleared all web server software off the machine
2) Completely removed PHP and all associated files.
3) Left MySQL where it was
4) Installed IIS7 again
5) Teseted //localhost to be sure
6) Downloaded the PHP msi file and installed it ensuring to select mySQL extensions during the installation process.
7) Configured IIS to know about PHP and recognise it properly

After this I was able to see the MySQL section under phpInfo() and all was well. The two things talk happily.

I hope this helps
nathj
Jul 19 '07 #3
nathj
938 Expert 512MB
Thanks for the recommendation... but....

I don't recall, at the time of the PHP installation, being prompted to select the MySQL extensions...

In a matter of fact, I'm sure I was not.
That's fine, I thought exactly the same when the recommendation was given to me. However, I then realised that the first time round I hadn't used the msi. When you use this there is a point when you get a dialog box up with a tree view in it, all nodes collapsed.

Expanding the extensions (or maybe extras) node gives access to these options such as gd, mqsql etc. In fact if you used the msi initially try the program repair option from control panel -> Programs and Features then right click on PHP and select change. You will then see the dialogue box I'm talking about, as lopng as the msi is still on your machine.

Cheers
nathj
Jul 19 '07 #4
Did exactly as you recommended with no success...

Any other ideas from anyone?

That's fine, I thought exactly the same when the recommendation was given to me. However, I then realised that the first time round I hadn't used the msi. When you use this there is a point when you get a dialog box up with a tree view in it, all nodes collapsed.

Expanding the extensions (or maybe extras) node gives access to these options such as gd, mqsql etc. In fact if you used the msi initially try the program repair option from control panel -> Programs and Features then right click on PHP and select change. You will then see the dialogue box I'm talking about, as lopng as the msi is still on your machine.

Cheers
nathj
Jul 20 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Spidah | last post by:
Looking at the list of changes made in PHP5 one of them is "Removed the bundled MySQL client library" Does anyone know exactly what this means? I assume we will still be able to code for...
5
by: Tim | last post by:
I have trouble with MySQL 5 and PHP 5.0.2, using XP SP1 with IIS. I can get PHP to access MySQL using CGI and the (older) MySQL functions, but when I try and use ISAPI and MySQLi functions I have...
0
by: gunzip | last post by:
I want to setup PHP5 to access MySQL 4.0 on the local (Fedora 2) machine and 4.1 on a remote (OS X) machine. I've compiled PHP5 successfully using '--with-mysql=/usr' to find the local MySQL 4.0...
12
by: Sarah Tanembaum | last post by:
Though I installed MySQL5 and PHP5, how come my phpinfo() shows as follow: MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.57 <<<<<<<<<<<<<<< ...
2
by: NevrGivUp | last post by:
Hello. I am in the process of learning php. I am particularly interested in its uses with MySQL. I have Apache 2 and PHP5 both installed and working fine. I pasted a MySQLi example for opening...
1
by: Nospam | last post by:
I am trying to get mysql 4, php5, and apache to work on my winxp sp2 comp, unfortunately even though php5 and apache seems to work ok I am unable to utilise mysql with php and apache, I have yet to...
1
by: soft_devjava | last post by:
my environment: =========================== -php ver 5.2.0 -mysql 5 -windows xp -apache 2 -all of these are on the same machine my code: ==========================
6
by: michael.schmitz | last post by:
Hello, my tiny PHP5 test application cannot establish a connection to a database while I am able to connect to the same database using the DB2 command line tool. Our server is 64 bit system...
8
by: Tony B | last post by:
Hi, I'm trying out my local copy of a site that uses php4, mysql,apache2. I've moved it from a php4 machine to a php5 machine, and it doesn't work at all now. A couple of other php4 sites I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.