Plesk for Linux
kb: technical
Applicable to:
- Plesk for Linux
Symptoms
-
Error loading module while running PHP script:
CONFIG_TEXT: PHP Warning: Module '<module_name>' already loaded in Unknown on line 0
Cause
A PHP Module is enabled several times in one of the php.ini
files.
Resolution
-
Connect to the server using SSH
-
Check the
.ini
files of the PHP handler and find duplicates using the module name from the error:For PHP version provided by OS vendor:
# grep -iR 'module_name' /etc/php/
For PHP X.X version shipped with Plesk, e.g. 7.4:
# grep -iR 'module_name' /opt/plesk/php/X.X/etc/
For custom php.ini file for the domain:
# grep -iR 'module_name' /var/www/vhosts/system/example.com/conf/etc/
-
Comment or remove the duplicated directive line using some text editor such as Vi.
Comments
0 comments
Please sign in to leave a comment.