打开安装界面报错,404

安装报错 · maysthree · 于 4年前 发布 · 2188 次阅读

第二次安装还是卡在这里 访问http://appfront.xxxx.cn/install.php 时404 not found Nginx没有错误日志 查看页面日志:

 [crit] 6504#0: *6 stat() "/www/wwwroot/fecmall/appfront/web/install.php" failed (13: Permission denied)

这次是用宝塔安装的,用户和组都是www,给install.php权限还是不能访问,我就把Nginx和php的用户和组都改成当前的root,报错成了:

[error] 11271#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 221.204.12.182, server: appfront.xxxx.top, request: "GET /install.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-71.sock:", host: "appfront.xxxx.top"
共收到 5 条回复
Fecmall#14年前 0 个赞

install.php 第一行加入 echo 1;exit; ,先让其能输出。先配置好nginx.php可以访问php文件

yanzy#24年前 0 个赞

docker安装同出现该问题,版本2.3.7;Wampserver安装并没有问题; 另,各文件的权限应当如何配置啊

8#8: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.16.20.16, server: appfront.fecshoptest.com, request: "GET /install.php HTTP/1.1", upstream: "fastcgi://172.20.0.6:9000", host: "appfront.fecshoptest.com"

Fecmall#34年前 0 个赞

@yanzy #2楼

1.404, 一般是nginx没有配置好,学习一下nginx conf文件语法

2.linux下的各个文件的权限,安装步骤的 ./init 步骤,对文件权限进行了设置

3.如果基础知识差,可以试一下宝塔这种,安装文档有针对宝塔的apache 和 nginx文档,很 详细

4.安装文档是验证过了的,很多人安装都没有问题,出现问题,可以论坛搜索,多从自己的角度找找原因,和google搜索。

yanzy#44年前 0 个赞

nginx确实用的不熟,我是访问appadmin的install.php报上述错误,当时访问同路径下的favicon.ico就还能返回个图标

Fecmall#54年前 0 个赞

@yanzy #4楼

1.多学习

2.apache同样可以安装fecmall

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics