Applicable to:
- Plesk for Linux
Symptoms
- Websites that are using PHP 7.4 and PHP 8.0 are inaccessible on CloudLinux OS with the error below:
CONFIG_TEXT: 504 Gateway Time-out
- PHP 7.4 and PHP 8.0 master process consumes 100% of CPU.
- The following error can be found in /var/log/plesk-php74-fpm/error.log file:
CONFIG_TEXT: WARNING: [pool example.com] child 1335278 said into stderr: "ERROR: [pool example.com] CageFS jail error Failed to initialize lve library instance: No such file or directory: No such file or directory (2)"
WARNING: [pool example.com] child 1335278 said into stderr: "ERROR: [pool example.com] child failed to initialize"
ERROR: [pool example.com] Error on LVE enter: LVE(10022)
CONFIG_TEXT: WARNING: [pool example.com] child 3682835 said into stderr: "ERROR: [pool example.com] CageFS jail error Failed to initialize lve library instance: Operation not permitted: Operation not permitted (1)", pipe is closed
WARNING: [pool example.com] child 3682835 said into stderr: "ERROR: [pool example.com] child failed to initialize", pipe is closed
Cause
Product issue:
-
#PPPM-13184 "In Plesk on CloudLinux with enabled CageFS and the latest PHP updates installed, PHP 7.4. and 8.0 no longer consume all the CPU."
Fixed in:- PHP Updates 31 August 2021 (Linux)
Resolution
Workaround
- Log into the server via SSH.
- Run the command to open PHP 7.4 configuration file:
# systemctl edit plesk-php74-fpm.service
-
Add the line below:
CONFIG_TEXT: [Service]
PrivateDevices=false -
Save changes.
-
Run the command below to apply the changes:
# systemctl restart plesk-php74-fpm.service
For PHP 8.0
- Log into the server via SSH.
- Run the command to open PHP 8.0 configuration file:
# systemctl edit plesk-php80-fpm.service
- Add the line below:
CONFIG_TEXT: [Service]
PrivateDevices=false -
Save changes.
- Run the command below to apply the changes:
# systemctl restart plesk-php80-fpm.service
Note: in case top command shows that one of the process uses 1
# kill
- Log into the server via SSH.
- Run the command to open PHP 7.4 configuration file:
# systemctl edit plesk-php74-fpm.service
-
Add the lines below:
CONFIG_TEXT: [Service]
PrivateDevices=false
RestrictNamespaces=false -
Save changes.
-
Run the command below to apply the changes:
# systemctl restart plesk-php74-fpm.service
For PHP 8.0
- Log into the server via SSH.
- Run the command to open PHP 8.0 configuration file:
# systemctl edit plesk-php80-fpm.service
- Add the line below:
CONFIG_TEXT: [Service]
PrivateDevices=false
RestrictNamespaces=false -
Save changes.
- Run the command below to apply the changes:
# systemctl restart plesk-php80-fpm.service
Note: in case after applying the steps above the previously created master PHP process still highly consumes CPU follow the steps:
- Run top utility to find the affected PHP master process:
- Using the ID from the previous step, kill affected process with the command:
# kill -9 1151803
Comments
0 comments
Please sign in to leave a comment.