Nginx environment under Linux + WordPress Tips "error occurs when cropping your image a" solution

Server used by bloggers as Tencent cloud server, you need to upload the images will be cropped in wordpress to build personal blog, which met WordPress Tips "error occurs when cropping your image of the" problem.

After a review of relevant information found due to the lack PHP GD library

Thus the code to perform the following

yum install php-gd

The results given:Error: php72w-common conflicts with php-common-5.4.16-46.1.el7_7.x86_64

//提示语句
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Obviously skip does not solve the problem cropped picture can not, therefore the implementation of the following codes:

yum install php72w-gd

That is, install the appropriate version of PHP GD library

Then restart php Service

systemctl restart php-fpm

WordPress is able to return to normal crop a picture, not being given

Released eight original articles · won praise 2 · Views 1058

Guess you like

Origin blog.csdn.net/daiyucheng88/article/details/103365141