Gzornenplat;10989241 wrote:PHP is working OK, but MySQL isn't. Scripts blow up at the mysql_connect() stage, i.e. the first MySQL call.
What does "blow up" mean? What is the exact error message or messages you're receiving? Do you have display_errors set to On and error_reporting set to E_ALL?
Gzornenplat;10989241 wrote:The correct php.ini file is picked up (according to phpinfo()) and this is one which worked in Abyss (and still does if I swap back to Abyss)
Have you tried making a change in that php.ini file, such as toggling display_errors On or Off, restarting Apache, and then doing another phpinfo() to verify that your change was reflected? (This is an easy way to ensure that PHP is reading your php.ini file.)
If so, do you have the mysql extension enabled (i.e. uncommented) in that php.ini file?
Also, which version of PHP are you using?
Gzornenplat;10989241 wrote:So, any help or suggestions?
Other than ensuring that PHP was properly installed (i.e. its main installation directory was added to your system's PATH environment variable, etc.), have you considered using something like [man]MySQLi[/man] instead? The [man]mysql[/man] extension is old and outdated, and new projects are advised to switch to MySQLi instead.
Gzornenplat;10989241 wrote:It must be some Apache thing, but I haven't used Apache that much before - just set it up and left it.
If your php.ini file is being read, then Apache plays no part in whether or not the mysql_* functions work in PHP.