Can't install phpmyadmin - Cannot find /usr/local/mysql/bin/mysql

anay

Verified User
Joined
Dec 7, 2005
Messages
114
Hi,

I can't install phpmyadmin directadmin , when I try it through custombuild (gui as well cmd) , I get following error :
Code:
./build phpmyadmin
phpMyAdmin requires mysqld.  Cannot find /usr/local/mysql/bin/mysql

I am using database running on remote server. Had followed this guide :

As per the above guide, I need to make changes here (/var/www/html/phpMyAdmin/config.inc.php ) for PMA to know my remote mysql server /www/html/phpMyAdmin/config.inc.php , however, since its not installing, we don't have that file.

Further, as per this guide :
https://docs.directadmin.com/other-...dmin.html#using-custom-configs-for-phpmyadmin
I tried to add prepopulated config.inc.php for custombuild , still not working.

From error code, it looks like custombuild is first detecting if mysql is installed on system, since there is no mysql on this system, it is not proceeding further, should we call it bug or there is already way around it ?
 
Hi further did some digging into custumbuild/build file and was able to install phpmyadmin by following steps:

Code:
# Specified mysql version here :  (I have mariadb 10.5)

MYSQLV="10.5"

# commented out follwoing as I don't have mysql running on local server:

#if [ ! -s "$MYSQL_BIN" ]; then
#            echo "${boldon}phpMyAdmin requires mysqld.  Cannot find $MYSQL_BIN${boldoff}"
#            return
#        fi

Further, I had to set latest version of phpmyadmin using as it was installing older version:
Code:
cd /usr/local/directadmin
echo "phpmyadmin:5.1.3:" >> custom_versions.txt
Now build phpmyadmin:
Code:
cd /usr/local/directadmin/custombuild
./build phpmyadmin

@smtalk , I don't see any provision to handle mysql being on remote server when installing phpmyadmin in ./build , or there is way I can't find ?
 
Last edited:
Back
Top