please help my project to install moodle in freebsd , i installed mysql 5.5.30 ,php 5.4.10, and apache 2.4.3
i can connect to phpinfo and connect to mysql, but when i want to install moodle, i get some error.
"
Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
Warning: mysqli::mysqli(): (HY000/2002): No such file or directory in/usr/local/apache2/htdocs/moodle/lib/dml/mysqli_native_moodle_database.phpon line 76"
and i change config-dist.php to config.php and change some variable, after that i got "
Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly."
i installed php with configuration : ./configure --prefix=/usr/local/apache2/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/php --disable-cgi --with-zlib=/usr/local/zlib --with-gettext=/usr/local/gettext --with-gdbm=/usr/local/gdbm --with-libxml-dir=/usr/local/libxml2 --with-xsl=/usr/local/libxslt --with-iconv=/usr/local/libiconv --enable-mbstring --with-mysqli=mysqlnd