New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

/includes/class_core.php on line 311 error

Started by megaster55, April 12, 2025, 11:02:41 AM

Previous topic - Next topic

megaster55

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?


overseer

The socket (/var/lib/mysql/mysql.sock) exists?
Can you run PHP 5.4?
Are you running it under PHP-FPM?

megaster55

#2
Quote from: overseer on April 12, 2025, 11:47:35 AM
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.


rcschaff

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.
Google Hangouts:  rcschaff82@gmail.com

overseer

Consider running a MySQL tuning script for recommendations for better performance:
https://github.com/major/MySQLTuner-perl

megaster55

Quote from: rcschaff on April 12, 2025, 01:00:53 PM
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)

megaster55

Quote from: overseer on April 12, 2025, 01:45:35 PM
Consider running a MySQL tuning script for recommendations for better performance:
https://github.com/major/MySQLTuner-perl
How to install this I am a beginner is there an installation article for cwp

overseer

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

megaster55

#8
Quote from: overseer on April 12, 2025, 02:32:33 PM
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




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.


overseer

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