xavatar / yiimp_install_scrypt

Install Script for Yiimp on Ubuntu Server 16.04 / 18.04
https://www.xavatar.com
94 stars 248 forks source link

exception: CDbConnection failed to open the DB connection. #35

Closed 5053s closed 2 years ago

5053s commented 2 years ago

When attempting to run main.sh , loop2.sh etc it get this error and the page does not load

    exception: CDbConnection failed to open the DB connection.

Appreciate any 'Screen' advice. Could not locate a debug log

5053s commented 2 years ago

What I needed to do was install php7.3-memcache and php7.3-memcached: - which I had seen previously. Sorry to sound like a moron. But I forgot two steps. Sharing for future users. - All 3 steps.

After you use the install scrypt and reboot, do this also. (as of April 22')

Step 1:

sudo apt install php7.3-memcache php7.3-memcached memcached

Step 2:

sudo update-alternatives --set php /usr/bin/php7.3

Step 3:

sudo service nginx restart
sudo service php7.3-fpm restart

It worked