CentOS: Enabling GD Support in PHP Installation

前端 未结 6 1389
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-30 08:51

How do I go about enabling GD Support in a CentOS Installation?

6条回答
  •  盖世英雄少女心
    2021-01-30 09:22

    With CentOS 6.5+ and PHP 5.5:

    yum install php55u-gd
    service httpd restart
    

    If you get an error like: cannot map zero-fill pages: Cannot allocate memory in Unknown on line 0, it could be because you don't have a swap file. I suggest you take a look at the tutorial mentioned in this answer: https://stackoverflow.com/a/20275282/828366

    Tutorial: https://www.digitalocean.com/community/articles/how-to-add-swap-on-centos-6

提交回复
热议问题