CentOS: Enabling GD Support in PHP Installation

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

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

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-30 09:20

    1. You need to find a repo that offers a GD lib matching your current php version. I've had great success using Remi Collet's repo for this purpose. In fact, I used it yesterday to update my php install to the latest 5.4.0RC6 version on my CentOS6 box.
    2. Once you've setup the repo it's a simple matter of running sudo yum install php-gd
    3. Of course, the usual things apply: make sure you restart apache after installing, etc.

提交回复
热议问题