cPanel has pushed updates again which re-enables IPv6 on any box greater than 11.40.
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 on all IPv6 addresses on the server. The above config is basically how Apache will listen for IPv6 addresses. So far I think this only works with Apache 2.0+.
When Apache encounters this problem on start/restart it will present an similar error to the following:
(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 as such:
This can permanently be resolved by simply forcing EasyApache to rebuild the currently installed apache and php.
(NOTE: Never run easyapache without first making sure you backup current Apache config, php config, php information and installed modules)
From what I hear even this can upgrade your PHP version in certain circumstances 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 your current php version and make sure it is selected in EasyApache. if for any reason this doesn’t happen you may find that EasyApache upgraded the php version and some websites may not be working anymore.
Now that Apache has been covered, MySQL is also now trying to bind to IPv6 addresses. This will require you to add the following directive to the /etc/my.cnf and restart MySQL:
This should bind to IPv4, and allow all IPv4 addresses to connect.
This one-liner backups up the current config to a .bak file and makes the needed changes for you…
You can also append
to the end if you wish.