ispmanager 6

/
/
Error accessing the "Sites" section in ispmanager 6

Error accessing the "Sites" section in ispmanager 6

Symptoms

The panel returns "An error occurred while executing the request" error when attempting to open the "Sites" section.

The following errors are registered in the panel log:

May 23 09:49:02 [763473:892] php ERROR Failed to call to php_bin
May 23 09:49:02 [763473:892] libmgr ERROR Error: Type: 'execute' Object: '/usr/bin/php -nv'

Causes

The native version of PHP installed from the operating system repositories on the server has been changed, or its settings have been changed.

Solution

We recommend resetting configurations of the native PHP version to their original state in the same way they were changed.

As a temporary solution, check and manually restore the broken sequence of symlinks.

An example for 7.4 PHP version:

/usr/bin/php --> /etc/alternatives/php --> /usr/bin/php7.4

Most often, the first symlink in the sequence is broken.

To restore the sequence, run the following command:

ln -s /etc/alternatives/php /usr/bin/php

In ispmanager 6, there is no need to manually install and change PHP versions for your projects. The panel provides an opportunity to install alternative PHP versions.

That enables you to work with different versions of PHP simultaneously without disrupting the operation of the panel and other projects!

In this article