We have just discovered that cPanel currently (11.40.1) has an issue with parsing out single quotes in the ~/.my.cnf. For instance, if your /root/my.cnf file looks like:
With the way that cPanel currently parses this, it uses the password with the single quotes, and sends that off to MySQL. If you’re doing something that requires a connection with MySQL, this of course fails; the password doesn’t really have single quotes included around it.
As a workaround, either remove the quotes from the ~/.my.cnf or change them to double quotes – both work. If you want to know more, This was submitted as a bug report with cPanel.
When updating to cPanel 11.40, this enables IPv6 by default. This can cause an issue when cPanel starts rebuilding the Apache configuration though because it adds one or both of these lines:
When IPv6 is installed on a server, the Listen directive is set to Listen[::]:80, which listens for all IPv6 addresses on the server.
The above is basically how Apache will listen for IPv6 addresses. So far I believe this only works with Apache 2.0+. When Apache encounters this problem on start/restart it will present a similar error to the following:
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address
To resolve this temporarily just disable the lines that contain the ipv6 listen directives by adding the pound sign, number sign, or hashtag to the beginning of the line:
This can permanently be resolved by forcing EasyApache to rebuild the currently installed apache and php versions.
(Never run easyapache without first making sure you backup current Apache config, php config and php information as well as currently installed modules)
From what we are seeing in certain circumstances, this can even upgrade your PHP version when the currently installed version of PHP is no longer an option in EasyApache. To be 100 percent safe and save yourself some time always verify the current php version and make sure it is selected in EasyApache. If for any reason this does not happen, you may find that EasyApache upgraded the php version and some websites may not be working anymore. This does appear to be a trending issue as more and more servers are upgraded to 11.40 without making any changes to their apache configuration at all.
Just a heads up…