Symptoms
Increasing PVPS_Panel resource limit from 0 to 1 gives a blank page with no errors.
At the same time the following exception is registered in /var/log/pa/core.log
:
Command: bash
Code: 255
stdout:
Fatal error: Call to undefined function curl_init() in /usr/local/aps/584a7be1-4bd0-4c3f-b210-1e5333837e1c/vendors/php-runtime/aps/2/apsc.php on line 292
Cause
The VPS includes a custom PHP bundle, configured by customer, and it doesn't have curl
module carried along.
Resolution
Two alternative solutions are possible:
Fall back to the default PHP:
root@server-1010101-1:/usr/local/aps# ls -alh /etc/alternatives/php lrwxrwxrwx 1 root root 15 Dec 3 16:50 /etc/alternatives/php -> /usr/bin/php5.6 root@server-1010101-1:/usr/local/aps# ls -alh /usr/bin/php* lrwxrwxrwx 1 root root 21 Dec 2 12:16 /usr/bin/php -> /etc/alternatives/php -rwxr-xr-x 1 root root 8.7M Oct 3 15:15 /usr/bin/php5 -rwxr-xr-x 1 root root 4.2M Nov 14 05:05 /usr/bin/php5.6 root@server-1010101-1:/usr/local/aps# unlink /etc/alternatives/php root@server-1010101-1:/usr/local/aps# ln -s /usr/bin/php5 /etc/alternatives/php root@server-1010101-1:/usr/local/aps# ls -alh /etc/alternatives/php lrwxrwxrwx 1 root root 15 Dec 3 16:50 /etc/alternatives/php -> /usr/bin/php5
Increase the resource limit, wait for the Panel provisioning task to complete and revert the changes back.
Install the
curl
module for the PHP version currently used:For Debian-based VEs:
root@server-1010101-1:/usr/local/aps# apt-get install php5.6-curl
For RHEL-based VEs:
root@server-1010101-1:/usr/local/aps# yum install php5.6-curl