PHP Service and Related Module Troubleshooting
Here are some common issues and solutions encountered with PHP and PHP extensions.
ImageMagick number of supported formats: 0
Some users may encounter the following error when using ImageMagick:
ImageMagick number of supported formats: 0
If users face this issue, please resolve it as follows:
- Open ServBay
- Select
Services
-Common Services
- Find
ServBay Runtime
on the right side and upgrade to the latest version (above 1.0.20 or 1.1.20). - Restart the PHP service.
Upload speed decreases when using PHP to upload large files
Some users may experience a decline in upload speed when using PHP to upload large files over 1G (such as with Tus-PHP, NextCloud, etc.). The cause of this issue is related to php-fpm and file chunking.
The solutions are as follows:
- Increase the
max_children
count of php-fpm.
The default pm.max_children
setting in ServBay is 10
, and users can appropriately increase this number. They can also fine-tune the pm settings.
- Disable file chunking.
Not recommended, but disabling chunking in the code can also solve the issue.
- Check the
fastcgi_request_buffering
parameter innginx.conf
.
If nginx is used as the default web server, it is enabled by default for fastcgi_request_buffering
. It can be adjusted to fastcgi_request_buffering off;
, and then tried again.