Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts

    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

  • #2
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,072
    Thanks
    2
    Thanked 320 Times in 312 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.

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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

  • #4
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •