File ./vendor/autoload.php missing or not readable. in centminmod phpMyAdmin

After installed the phpMyAdmin in centminmod, I saw this error message.

File ./vendor/autoload.php missing or not readable.
Most likely you did not run Composer to install library files.

I like to fix it manually and access to my server shell and run these command.

cd /usr/local/nginx/html/1111_mysqladmin12345
git pull
rm -rf composer.phar
wget -cnv https://getcomposer.org/composer.phar -O composer.phar
php composer.phar update --no-dev

To make sure every time update phpmyadmin and update the composer too, you should modify the file

/root/tools/phpmyadmin_update.sh

and add in these lines.

git pull
rm -rf composer.phar
wget -cnv https://getcomposer.org/composer.phar -O composer.phar
php composer.phar update --no-dev

Tags:

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.