- 论坛徽章:
- 0
|
回复 #4 jerrywjl 的帖子
我是要搭建mantis(bug管理器),之前是能访问的。前天访问的时候就无法显示网页了,连apache的页面也显示不了,我在服务器看了下,改了个端口,apache的页面是出来了。但是,访问mantis目录的index.php时就出现了以下错误:
Forbidden
You don't have permission to access /index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the req
mantis的目录是/var/www/html/bugmanage,我把bugmanage下的所有文件权限都设置成了755.然后再访问mantis目录中的index.php时就会弹出对话框,提示我下载index.php。这是不是无法解析php的意思?
我把bugmanage下的文件权限全都改回去后,再访问时就又成了Forbidden的问题。
然后我在网上找了找,在/etc/httpd/conf/httpd.conf配置文件中加了一句:LoadModule php5_module modules/libphp5.so
启动apache服务时系统提示:
Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: cannot open shared object file: No such file or directory
我查找了下,把/usr/lib/httpd/modules/libphp5.so这个复制到了/usr/local/apache4bug/modules/目录下(apache4bug是apache的目录)。然后再启动apache服务时,就又提示我:
启动 httpd:Syntax error on line 190 of /etc/httpd/conf/httpd.conf:
API module structure `php5_module' in file /etc/httpd/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
我用命令:apachectl -l 查看了下:
[root@sxbd221 sbin]# apachectl -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
大侠看看是什么问题。谢谢 |
|