Control Web Panel
WebPanel => MySQL => Topic started by: megaster55 on April 12, 2025, 11:02:41 AM
-
Hello, I use vbulletin. For this, I need to use php version 5.3. I receive error messages like this from time to time. Sometimes these messages occur 1-2 times a day and sometimes 50-60 times a day. Why does it make this error?
(https://i.hizliresim.com/lghhas9.png) (https://hizliresim.com/lghhas9)
-
The socket (/var/lib/mysql/mysql.sock) exists?
Can you run PHP 5.4?
Are you running it under PHP-FPM?
-
The socket (/var/lib/mysql/mysql.sock) exists?
Can you run PHP 5.4?
Are you running it under PHP-FPM?
Yes, there is such a file. Since I use vbulletin 3.8.5, php 5.4 version works incorrectly. For this reason, I need to use php5.3. I use litespeed.
(https://i.hizliresim.com/myixfdr.png) (https://hizliresim.com/myixfdr)
-
PHP Forums are known to be hard on mysql servers. It's entirely possibly that the mysql server is overwhelmed with connections, thus the timeout message. Tuning your mysql to meet your server resources, as well as caching plugins should help resolve the problem.
-
Consider running a MySQL tuning script for recommendations for better performance:
https://github.com/major/MySQLTuner-perl (https://github.com/major/MySQLTuner-perl)
-
PHP Forums are known to be hard on mysql servers. It's entirely possibly that the mysql server is overwhelmed with connections, thus the timeout message. Tuning your mysql to meet your server resources, as well as caching plugins should help resolve the problem.
i use already APC (Alternative PHP Cache)
-
Consider running a MySQL tuning script for recommendations for better performance:
https://github.com/major/MySQLTuner-perl (https://github.com/major/MySQLTuner-perl)
How to install this I am a beginner is there an installation article for cwp
-
cd /usr/local/src
wget https://github.com/major/MySQLTuner-perl/archive/refs/tags/v2.6.0.tar.gz
tar xzvf v2.6.0.tar.gz
cp MySQLTuner-perl-2.6.0/mysqltuner.pl /usr/local/bin/
chmod +x /usr/local/bin/mysqltuner.pl
/usr/local/bin/mysqltuner.pl
-
cd /usr/local/src
wget https://github.com/major/MySQLTuner-perl/archive/refs/tags/v2.6.0.tar.gz
tar xzvf v2.6.0.tar.gz
cp MySQLTuner-perl-2.6.0/mysqltuner.pl /usr/local/bin/
chmod +x /usr/local/bin/mysqltuner.pl
/usr/local/bin/mysqltuner.pl
I did what you said and installed it but now it comes with an error like this
(https://i.hizliresim.com/ouozgci.png) (https://hizliresim.com/ouozgci)
and when I enter the control panel it gives such an error. It had come last night too. I reset the mysql password and it gave the same error. I checked last night until I entered the panel the site gave a database error. Whenever I entered the panel I encountered this error and the error disappeared.
(https://i.hizliresim.com/hghz8vo.png) (https://hizliresim.com/hghz8vo)
-
Can you confirm that the root password is the same in both of these files?
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
/root/.my.cnf
Make sure they agree and if necessary, reset the PW using the script in /scripts/mysql_pwd_reset