我在让GD使用我的web服务器(Apache2)时遇到了很多困难。
这是一个使用CentOS 5.5的虚拟专用服务器,目前正在从头开始设置它。
我已经安装了GD (似乎无法在任何yum安装中获得GD2 )..。
显然,我已经使用GD配置了PHP 5.2.17:
./configure --with-gd=/usr/local/cpanel/src/3rdparty/gpl/gd-1.8.4它看起来很不错,但是当我重新启动apache并检查phpinfo()时,就没有显示GD了。
似乎不能让这件事起作用。
注:
我还发现在yum安装包中找不到任何php-gd库。只有gd.。
对评论的回应:百胜反驳者的输出
repo id repo name status
base CentOS-5 - Base enabled: 3,535
extras CentOS-5 - Extras enabled: 299
rpmforge RHEL 5 - RPMforge.net - dag enabled: 10,722
updates CentOS-5 - Updates enabled: 765
repolist: 15,321发布于 2011-07-28 02:04:17
我还发现在yum安装包中找不到任何php-gd库。只有gd.。
你仔细检查过了吗?它位于base回购公司:
# repoquery -i php-gd
Name : php-gd
Version : 5.1.6
Release : 27.el5_5.3
Architecture: x86_64
Size : 341034
Packager : None
Group : Development/Languages
URL : http://www.php.net/
Repository : base
Summary : A module for PHP applications for using the gd graphics library
Description :
The php-gd package contains a dynamic shared object that will add
support for using the gd graphics library to PHP.发布于 2011-07-29 04:54:59
下面是安装php5.3在centos 5上有gd的指南
发布于 2011-08-19 01:17:55
FEI:您不必手动编译php/apache,也不必在cpanel服务器中安装rpms。您只需使用/ script /easyapache脚本来配置/启用/禁用apache/php模块。
-$
https://serverfault.com/questions/294838
复制相似问题