install2.php crashes. Cannot connect to mysql.
During the web portion of the install, after inputting the info for connecting to mysql, install2.php either crashes or returns a blank page.
Possible solutions:
- If you see crashing errors in your error log, it may be because you did not specify the install location of mysql when you compiled apache (--with-mysql=/usr) for example. This would be evident if you create a sample php script that just calls mysql_connect with the appropriate values and that causes the same crash.
- If you see a blank page, the mysql libraries might not be installed. Use the test script below to check.
- As a last resort, look for the line that says:
header("Location: install3.php");
and change to// header("Location: install3.php");
Run the script again and take note of the error message.
Test script for determining if php can talk to mysql
<?php
if ( mysql_connect("mysql.server.com", "username", "password") )
{ print "Success."; }
else
{ print "Failure."; }
?>
