求助,lnmp安装后如何设置默认指向的网页?
求助,lnmp安装后如何设置默认指向的网页?默认指向的是index.html的页面,可是我想让它指向论坛的一个页面forum.php,应该怎么设置呢,我在下面的index后加forum.php会显示数据库无法连接,但我直接用"域名/forum.php"却能访问,应该怎么设置呢,谢谢了,我都弄了2天了,实在弄不了,呜呜:'(server
{
listen 80;
server_name www.lnmp.org;
index index.html index.htm index.php; #这里加forum.php不行
root/home/wwwroot/;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php; #这里换成forum.php也不行
include fcgi.conf;
} 这是设置默认网页为forum后打开网页显示的错误
Warning: require(./source/class/class_core.php) : failed to open stream: Permission denied in /home/wwwroot/forum.php on line 14
Fatal error: require() : Failed opening required './source/class/class_core.php' (include_path='.:') in /home/wwwroot/forum.php on line 14 直接用于吗就能访问到 域名/forum.php
discuz x ? 这个得需要你自己在discuz x里设置吧,这个得到discuz 论坛提问吧
Warning: require(./source/class/class_core.php) : failed to open stream: Permission denied in /home/wwwroot/forum.php on line 14
Fatal error: require() : Failed opening required './source/class/class_core.php' (include_path='.:') in /home/wwwroot/forum.php on line 14
都已经提示你错误信息了,你目录文件的权限设置问题,都与lnmp没关系
回复 3# 的帖子
我检查过权限了,都是设为644的,它提示的那个文件./source/class/class_core.php我还特意设为777都不行,但是我直接用'域名+/forum.php'却能正常访问,奇怪了
页:
[1]