by Zack Schiller.
I have fixed my problems with php.
php -v gives me 5.4.24
php -m shows that I do have mysql, mysqli, and mysqlnd
I think the problem is in that Apache log I found that it was saying: [error] PHP Warning: mysqli::mysqli(): (HY000/2002): No such file or directory in /Library/Server/Web/Data/Sites/Default/moodle/lib/dml/mysqli_native_moodle_database.php on line 384
I'm still not sure what that means.
It's strange that phpmyadmin shows me that the Moodle database looks fine, yet localhost/moodle is still giving me the "Error: Database Connection Failed"
I may try reinstalling Moodle after I back everything up.
Any other ideas?