When trying to install an APS package on a ISPConfig3 system, the package was never installed and the status “installation_task” remained for the site I tried to install a package.
Investigating /var/log/ispconfig/cron.log revealed:
PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /usr/local/ispconfig/server/lib/classes/aps_installer.inc.php:627
This problem can occur when curl is not installed on the target server, but that was not the problem in this case.
The server had been upgraded to Ubuntu 18.04 which runs PHP 7.2 instead of PHP 5. Curl was installed but the problem was that php7.2-curl was missing. The problem was resolved by:
sudo apt-get install php7.2-curl
The next issue that occured according to the logs was:
PHP Fatal error: Uncaught Error: Class 'ZipArchive' not found in /usr/local/ispconfig/server/lib/classes/aps_installer.inc.php:106
This problem was resolved by:
sudo apt-get install php7.2-zip
After this nothing more had to be done. The ISPConfig cron now successfully installed the APS package automatically. Tags: aps, curl, ispconfig3, php, Ubuntu
$ sudo sh /usr/local/ispconfig/server/server.sh 07.05.2019-05:47 - WARNING - There is already a lockfile set, but no process running with this pid (24592). Continuing.
PHP Fatal error: Uncaught Error: Class 'ZipArchive' not found in /usr/local/ispconfig/server/lib/classes/aps_installer.inc.php:106 Stack trace:
thrown in /usr/local/ispconfig/server/lib/classes/aps_installer.inc.php on line 106