PHP GD 扩展可以在命令行上运行,但 Apache 无法在 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
我试图在不完全重新编译 PHP 的情况下启用 GD 支持。但我快要放弃了。奇怪的是它在命令行上运行良好,但在 Apache 加载期间却运行不佳。
有人有什么想法吗?
谢谢
When I start PHP from the command line, I get:
app1-test:wp-content wouser$ php -i | grep -i gd
gd
GD Support => enabled
GD Version => bundled (2.0.34 compatible)
But when I start Apache I get the following error (And the library doesn't show up in 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
I'm trying to enable GD support without entirely recompiling PHP. But I'm about to give up. Its odd that it works fine on the command line but not during Apache load.
Any one have any ideas?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您确定 gd.so 位于此目录中吗?
您是否检查了常见的事情,例如网络服务器对 .so 文件的文件访问权限?
对我来说听起来像是权限问题
Are you shure the gd.so is in this directory?
Did you check the usual things, like file access right for the webserver to the .so file?
Sounds like a permissions problem to me
我实际上找到了一个以 64 位预编译 gd.so 的网站。只需将文件放入目录中即可,一切顺利。
如果有人想知道:
http://www.viames.it/mac-os-x .html
I actually found a site that had gd.so precompiled in 64 bit. Just plopped the file in the directory and life was good.
In case anyone is wondering:
http://www.viames.it/mac-os-x.html