LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1088|回复: 3

openbsd环境搭建Apache+php出现的问题

[复制链接]
发表于 2005-11-13 01:23:03 | 显示全部楼层 |阅读模式
配置好后,启动apache,出现以下错误提示:
/home/www/bin/httpd:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_block_alarms'
/home/www/bin/httpd: /usr/local/lib/php/libphp5.so: can't resolve reference 'ap_block_alarms'
/home/www/bin/httpd:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_unblock_alarms'
/home/www/bin/httpd: /usr/local/lib/php/libphp5.so: can't resolve reference 'ap_unblock_alarms'
/home/www/bin/httpd:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_user_id'
/home/www/bin/httpd: /usr/local/lib/php/libphp5.so: can't resolve reference 'ap_user_id'
/home/www/bin/httpd:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_group_id'
/home/www/bin/httpd: /usr/local/lib/php/libphp5.so: can't resolve reference 'ap_group_id'
/home/www/bin/httpd:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_user_name'
/home/www/bin/httpd: /usr/local/lib/php/libphp5.so: can't resolve reference 'ap_user_name'
/home/www/bin/httpd:/usr/local/lib/php/libphp5.so: undefined symbol 'top_module'
/home/www/bin/httpd: /usr/local/lib/php/libphp5.so: can't resolve reference 'top_module'
Syntax error on line 1041 of /home/www/conf/httpd.conf:
API module structure `php5_module' in file /usr/local/lib/php/libphp5.so is garbled - perhaps this is not an Apache module DSO?

我该如何解决啊?谢谢!
发表于 2005-11-13 09:21:52 | 显示全部楼层
php5模块有问题,你是如何安装的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-13 12:23:07 | 显示全部楼层
make以后,将生成的libphp5.so拷贝到apache的modules文件夹下,然后执行 make install.
因为如果运行make&&make install,在上述文件夹下找不到这个文件。
回复 支持 反对

使用道具 举报

发表于 2005-11-13 12:40:26 | 显示全部楼层
Post by karnare
make以后,将生成的libphp5.so拷贝到apache的modules文件夹下,然后执行 make install.
因为如果运行make&&make install,在上述文件夹下找不到这个文件。

建议使用pkg_add或者从ports进行安装
回复 支持 反对

使用道具 举报

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

本版积分规则

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