my WordPress running on CWP7, PHP 7.027
Today, my wordpress can’t upload images suddenly, the error is as follows:
“Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.”
I open the apache error_log, the following error is prompted
AH00052: child pid 4822 exit signal Segmentation fault (11)
I have searched many methods and tried all of them, but none of them can solve the problem. I tried the following methods
1. Change these data in php.ini
post_max_size = 128M
upload_max_filesize = 128M
max_execution_time = 360
memory_limit = 1024M
2. Add this to functions.php of my theme
add_filter(‘wp_image_editors’, function() {return array(‘WP_Image_Editor_GD’ );} );
3. Add this to wp-includes/functions.php
function use_gd_editor($array) {
return array(‘WP_Image_Editor_GD’, );
}
add_filter(‘wp_image_editors’,’use_gd_editor’ );
4. install imagick module for PHP
How to solve this problem?
The strange thing is that in addition to this wordpress, I can't upload pictures on another wordpress on another VPS, and the same error occurs. This VPS is also running on CWP7
Thank you very much!