- 主题:SMTH的php中funcs.php的 bbs_init_ext();失败
funcs.php中
我试着注释,找错误,其他的都已经注释掉,只留下这段
if (!bbs_ext_initialized())
bbs_init_ext();
只要调用到它bbs_init_ext();就在IE中返回"该页无法显示"
把它注释掉,就没有错误(空白页),怀疑这个函数的问题,
去phpbbslib.c看了看,应该是initialize the extension失败。
但现在不知道失败的原因。:-(
phplib已经工作,phpinfo();中有smth_bbs support enabled 的提示。
--
修改:lovef1y FROM 210.30.17.*
FROM 210.30.17.*
你什么系统?redhat 7.3 ?
【 在 lovef1y (阿菜(是菜鸟的菜,不是菜刀的菜!!)) 的大作中提到: 】
: funcs.php中
: 我试着注释,找错误,其他的都已经注释掉,只留下这段
: if (!bbs_ext_initialized())
: ...................
--
FROM 128.12.181.*
debian
smth是1.2的
【 在 atppp (Big Mouse) 的大作中提到: 】
: 你什么系统?redhat 7.3 ?
--
修改:lovef1y FROM 210.30.17.*
FROM 210.30.17.*
tail httpd 的 error.log
【 在 lovef1y (阿菜(是菜鸟的菜,不是菜刀的菜!!)) 的大作中提到: 】
: debian
: smth是1.2的
--
FROM 128.12.181.*
[Sat Oct 2 15:31:01 2004] [notice] Apache/1.3.27 (Unix) PHP/4.3.1
configured -- resuming normal operations
[Sat Oct 2 15:31:01 2004] [notice] Accept mutex: sysvsem (Default:
sysvsem)
Error! shmat 2 error! key = e74.: Permission denied
Error! shmat 2 error! key = e74.: Permission denied
【 在 atppp (Big Mouse) 的大作中提到: 】
: tail httpd 的 error.log
--
FROM 210.30.17.*
用root身份执行ipcs,然后 grep "^User" httpd.conf
【 在 lovef1y (阿菜(是菜鸟的菜,不是菜刀的菜!!)) 的大作中提到: 】
: [Sat Oct 2 15:31:01 2004] [notice] Apache/1.3.27 (Unix) PHP/4.3.1
: configured -- resuming normal operations
: [Sat Oct 2 15:31:01 2004] [notice] Accept mutex: sysvsem (Default:
: ...................
--
FROM 128.12.181.*
#ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000e74 2031616 root 660 1024 9
0x00000e6d 2064385 root 660 11204 0
0x00000e70 2097154 root 660 5837252 0
0x00001ee8 4063235 bbs 660 5837252 8
0x00001e85 4096004 bbs 660 11204 8
0x00001194 4128773 bbs 660 4798384 4
0x00000ec9 4161542 bbs 660 14578200 4
0x00000000 4259847 root 600 46084 6 dest
0x00000e72 4194312 bbs 660 224296 4
0x00002335 4227081 bbs 660 60008 4
------ Semaphore Arrays --------
key semid owner perms nsems status
0x00054188 0 bbs 700 20
------ Message Queues --------
key msqid owner perms used-bytes messages
0x00000888 0 bbs 664 0 0
#grep "^User" httpd.conf
User bbs
【 在 atppp (Big Mouse) 的大作中提到: 】
: 用root身份执行ipcs,然后 grep "^User" httpd.conf
--
FROM 210.30.17.*
e74 owner root perms 660 所以httpd没办法读那个共享内存
解决办法killall所有bbs程序,用root身份清共享内存
【 在 lovef1y (阿菜(是菜鸟的菜,不是菜刀的菜!!)) 的大作中提到: 】
: #ipcs
: ------ Shared Memory Segments --------
: key shmid owner perms bytes nattch status
: ...................
--
FROM 128.12.181.*
apache 使用
User bbs
Group bbs
相关bbs也是用bbs起的啊。
共享内存的权限问题会出在什么地方呢?:(
【 在 atppp (Big Mouse) 的大作中提到: 】
: 用root身份执行ipcs,然后 grep "^User" httpd.conf
--
FROM 210.30.17.*
我一样这个问题
【 在 lovef1y (阿菜(是菜鸟的菜,不是菜刀的菜!!)) 的大作中提到: 】
funcs.php中
我试着注释,找错误,其他的都已经注释掉,只留下这段
if (!bbs_ext_initialized())
bbs_init_ext();
只要调用到它bbs_init_ext();就在IE中返回"该页无法显示"
把它注释掉,就没有错误(空白页),怀疑这个函数的问题,
去phpbbslib.c看了看,应该是initialize the extension失败。
但现在不知道失败的原因。:-(
phplib已经工作,phpinfo();中有smth_bbs support enabled 的提示。
--
修改:lovef1y FROM 210.30.17.*
FROM 202.114.206.*