找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5532|回复: 5

Lighttpd + php + mysql 建站问题,gd库启动不了,高手来

[复制链接]
发表于 2014-7-12 22:02 | 显示全部楼层 |阅读模式
错误日志如下:
  1. <a href="mailto:root@OpenWrt_x86">root@OpenWrt_x86</a>:~# cat /var/log/php_errors.log
  2. [12-Jul-2014 21:58:14 Asia/Shanghai] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/gd.so' - (null) in Unknown on line 0
  3. [12-Jul-2014 21:58:14 Asia/Shanghai] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/gd.so' - (null) in Unknown on line 0
  4. [12-Jul-2014 21:58:14 Asia/Shanghai] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/gd.so' - (null) in Unknown on line 0
  5. [12-Jul-2014 21:58:14 Asia/Shanghai] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/gd.so' - (null) in Unknown on line 0
  6. [12-Jul-2014 21:58:14 Asia/Shanghai] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/gd.so' - (null) in Unknown on line 0
  7. <p> </p>
复制代码

高手帮帮忙看看什么问题,php5-mod-gd 和 libgd 正确安装,/usr/lig/php/gd.so 正常存在,php.ini里面gd.so前的分号去掉了,其它动态库都可以启用,就是启用不了gd库,大神帮忙看看。
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2014-7-16 14:42 | 显示全部楼层
自己解决了问题。强行重装这几个包,意外的解决了问题
root@OpenWrt_x86:~# opkg install php5-mod-gd libjpeg libpng libgd php5-mod-gd --force-reinstall

点评

楼主,你是按照哪里的教程做的?我的一直都是php文件打不开  详情 回复 发表于 2014-7-18 03:25
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-7-18 03:25 来自手机 | 显示全部楼层
hui21894558 发表于 2014-7-16 14:42
自己解决了问题。强行重装这几个包,意外的解决了问题:
root@OpenWrt_x86:~# opkg install php5-mod- ...

楼主,你是按照哪里的教程做的?我的一直都是php文件打不开

点评

我结合两个帖子来做的,帖子都是老版本的配置方法了。关键应该是这里: vi /etc/lighttpd/conf.d/10-fastcgi.conf  详情 回复 发表于 2014-7-18 15:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2014-7-18 15:08 | 显示全部楼层
本帖最后由 hui21894558 于 2014-7-18 15:09 编辑
zengguixin1 发表于 2014-7-18 03:25
楼主,你是按照哪里的教程做的?我的一直都是php文件打不开

我结合两个帖子来做的,帖子都是老版本的配置方法了。Nginx我也试过,没问题,而Lighttpd关键应该是这里:
vi /etc/lighttpd/conf.d/10-fastcgi.conf
  1. server.modules += ( "mod_fastcgi" )
  2. fastcgi.server = ( ".php" =>
  3.                    ( "php-local" =>
  4.                      (
  5.                        "socket" => "/tmp/php-fastcgi.socket",
  6.                        "bin-path" => "/usr/bin/php-fcgi",
  7.                        "max-procs" => 1,
  8.                        "broken-scriptfilename" => "enable",
  9.                      )
  10.                    ),
  11.                    ( "php-tcp" =>
  12.                      (
  13.                        "host" => "127.0.0.1",
  14.                        "port" => 9999,
  15.                        "check-local" => "disable",
  16.                        "broken-scriptfilename" => "enable",
  17.                      )
  18.                    ),
  19.                                                                                           
  20.                    ( "php-num-procs" =>
  21.                      (
  22.                        "socket" => "/tmp/php-fastcgi.socket",
  23.                        "bin-path" => "/usr/bin/php-fcgi",
  24.                        "bin-environment" => (
  25.                          "PHP_FCGI_CHILDREN" => "16",
  26.                          "PHP_FCGI_MAX_REQUESTS" => "10000",
  27.                        ),
  28.                        "max-procs" => 5,
  29.                        "broken-scriptfilename" => "enable",
  30.                      )
  31.                    ),
  32.                 )         
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-11-17 09:09 | 显示全部楼层
请问你用的哪个博客系统呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-11-19 00:11 | 显示全部楼层
我的也是这样的了,今天突然发现不能显示验证码了,一看原来也是GD库没有启动,我按照你的方法还是不能启动。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-28 20:03

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表