I looked online on old Virtualmin blog posts and Stackoverflow help, but half of them weren’t working, and the other half made more problems than fining problems. Most of the resources were made for CentOS commanded ligne only and not for Ubuntu 20.
From Stackoverflow, I tried the line: sudo apt-get install php8.0-gd
But GD wasn’t enabled.
How could I enable PHP libraries? Are they away from the GUI, if not from the command line?
Do you think PHP8 could cause the problem?
I try: sudo apt-get install php7-curl
and sudo apt install curl
and other lines, but I’m unable to install Curl, Do you have a line with will make it works.
I restart the webserver also.
The above is for “PHP 8.0”, for other versions switch “php8.0” with “phpA.B” where “A” represents the “major” and “B” represents the “minor” version number.
Thanks @tpnsolutions , It’s now working I have to make a restart then use the command line and type:
PHP 8.0 : sudo apt install -y php8.0-curl && sudo systemctl restart apache2
PHP 7.4: sudo apt install -y php7.4-curl && sudo systemctl restart apache2