PHP GD扩展在命令行上工作,但在Mac OS X服务器上无法加载Apache


PHP GD extension works on the command line but Apache fails to load on Mac OS X Server

当我从命令行启动PHP时,得到:

app1-test:wp-content wouser$ php -i | grep -i gd
gd
GD Support => enabled
GD Version => bundled (2.0.34 compatible)

但是当我启动Apache时,我得到以下错误(并且库没有显示在phpinfo中):

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20060613/gd.so' - (null) in Unknown on line 0

我试图启用GD支持没有完全重新编译PHP。但我要放弃了。奇怪的是,它在命令行上工作得很好,但在Apache加载时却不行。

谁有什么想法?

谢谢

你在关闭gd吗?在这个目录里吗?

您是否检查了通常的事情,例如web服务器对.so文件的文件访问权?

听起来像是权限问题

我发现了一个有gd的网站。所以在64位预编译。只要把文件放到目录里,生活就很美好了。

如果有人想知道:

http://www.viames.it/mac-os-x.html