/
/
Monarx antivirus with PHP in ispmanager 6

Monarx antivirus with PHP in ispmanager 6

This method is not applicable for CloudLinux. We recommend contacting the OS developer for advice.

By default, the antivirus PHP extension will only be installed for the native version of PHP.

Extensions for all other PHP versions are located at /usr/lib/monarx-protect/. To install the extension for an alternative PHP version, run the commands below, where phpXX is the desired alternative PHP version:

cp /usr/lib/monarx-protect/monarxprotect-phpXX.so /opt/phpXX/lib/php/modules/monarxprotect.so
echo 'extension=monarxprotect.so' > /opt/phpXX/etc/mods-available/monarxprotect.ini

Enable the extension in the PHP section by selecting the target version and clicking the Extensions button.

Verify that the module has been loaded with the following commands:

php -m | grep monarxprotect
/opt/phpXX/bin/php -m | grep monarxprotect

Replace phpXX with the required PHP version. For example, php83.

Conflicts

  • If Imunify360 is already installed on the server, its PHP protection module may conflict with monarx-protect.
  • Combine Monarx and BitNinja on the same server with caution, as both products perform similar tasks of PHP protection and file monitoring.
  • If you use CloudLinux together with AlmaLinux 9, LVE limits may restrict monarx-protect's functionality within user PHP processes.

In this article