Can't Change PHP version WHM and Domain settings
I have WHM cpanel installed on a VPS server. I have a Wordpress site installed on this server and I'm not able to install plugins.
I tried changing the PHP version in cpanel and it wouldn't allow me to. I'm getting this error.
Error: API failure: “/usr/local/cpanel/bin/python-packman” reported error code “1” when it ended: Errors during downloading metadata for repository 'EA4-c8': - Curl error (6): Couldn't resolve host name for http://httpupdate.cpanel.net/ea4-c8-x86_64-mirrorlist [Could not resolve host: httpupdate.cpanel.net] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 573, in load ret = self._repo.load() File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 397, in load return _repo.Repo_load(self) libdnf._error.Error: Failed to download metadata for repo 'EA4-c8': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://httpupdate.cpanel.net/ea4-c8-x86_64-mirrorlist [Could not resolve host: httpupdate.cpanel.net] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/cpanel/bin/packman_get_info_json", line 16, in <module> packman.init_yum() File "/usr/local/cpanel/bin/packman_lib/dnf_impl.py", line 46, in init_yum base.fill_sack(load_system_repo=True, load_available_repos=True) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 405, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 140, in _add_repo_to_sack repo.load() File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 580, in load raise dnf.exceptions.RepoError(str(e)) dnf.exceptions.RepoError: Failed to download metadata for repo 'EA4-c8': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://httpupdate.cpanel.net/ea4-c8-x86_64-mirrorlist [Could not resolve host: httpupdate.cpanel.net] w/ /usr/local/cpanel/bin/packman_get_info_json ea-php82-php-fpm Often errors like this can be resolved by running `dnf makecache`
What could be the problem? I'm not adept in cpanel WHM management and VPS
-
Hey there! Just as a simple test, are you able to run this command on the server?
dig httpupdate.cpanel.net
and get an IP in response?
0
Please sign in to leave a comment.
Comments
1 comment