Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
Thread: mysql5 setup php5, apache2
01-20-2007, 02:40 PM #1
mysql5 setup php5, apache2
Unsure where to post this, might be in the wrong forum so feel free to move it to the right one Trying to setup mysql5 to run with apache 2 and php5 and having very little luck. I've followed instructions from many sites and yet it still isn't being recognised when using the php functions to connect to the db. mysql runs fine on it's own as I've been using it. I've downloaded the *.dlls from mysql and installed them in the correct dir's, uncommented the mysql dll in php.ini and restarted apache. Also tried restarting the pc Any help please? I'm stuck without this
01-20-2007, 03:01 PM #2
- Join Date
- Oct 2006
- Denver, Colorado USA
- Thanked 312 Times in 304 Posts
Getting any actual error messages, either in the server log or output directly to the browser?
Some possible causes are - extensions path to the dll's is not set in the php.ini; the php.ini that php is using is not the same one you are making changes in; an auxiliary .dll file cannot be found...
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
01-20-2007, 03:06 PM #3
I'm getting no server errors, it's just not trying to load it when apache is restarted. PHP's error is just that mysql_connect is undefined. Never usually have problems setting this up, but I'm struggling today for some reason
01-22-2007, 01:13 AM #4
Finally sorted it tonight. No idea what I'd done wrong, but basically reinstalled everything, reused the recommended php ini to replace the one I had used and everything is working fine now. Still no idea what I'd done wrong or differently from all the other times