Apache 安装报错403

安装报错 · Striver · 于 15天前 发布 · 53 次阅读

服务器环境: 宝塔面板,PHP 7.2,APACHE 2.4.41,MYSQL 5.7.28

网站配置文件:

# Virtual Hosts
<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost 
  DocumentRoot "/www/wwwroot/test"
  <Directory "/www/wwwroot/test">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName work.test.com
  ServerAlias test
  DocumentRoot "/www/wwwroot/test/appadmin/web"
  <Directory "/www/wwwroot/test/appadmin/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>


<VirtualHost *:80>
  ServerName www.test.com
  ServerAlias test
  DocumentRoot "/www/wwwroot/test/appfront/web"
  <Directory "/www/wwwroot/test/appfront/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>


<VirtualHost *:80>
  ServerName h5.test.com
  ServerAlias test
  DocumentRoot "/www/wwwroot/test/apphtml5/web"
  <Directory "/www/wwwroot/test/apphtml5/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName img.test.com
  ServerAlias test
  DocumentRoot "/www/wwwroot/test/appimage/common"
  <Directory "/www/wwwroot/test/appimage/common">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName app.test.com
  ServerAlias test
  DocumentRoot "/www/wwwroot/test/appserver/web"
  <Directory "/www/wwwroot/test/appserver/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>


<VirtualHost *:80>
  ServerName api.test.com
  ServerAlias test
  DocumentRoot "/www/wwwroot/test/appapi/web"
  <Directory "/www/wwwroot/test/appapi/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

重启了APACHE和服务器,使用域名 www.test.com/install.php 安装的时候403,无法进行下一步。

请问是网站的配置文件有问题吗?

共收到 3 条回复
Fecmall#115天前 0 个赞

1.验证域名解析正确

2.出现403,404,都是和fecmall没有关系的错误一般都是nginx apache配置的问题,自行排查,这些报错谁也不能给你准确指出,只能说个大概的方面,自己排查

3.宝塔都是一键安装,不用自己配置nginx。详细文档:http://www.fecmall.com/doc/fecshop-guide/develop/cn-2.0/guide-fecshop-2-graphical-bt-install.html

文档写的很详细,严格按照文档操作就能配置成功。

Striver#215天前 0 个赞

@Fecmall #1楼 谢谢 我再看看 用的是Apache

Fecmall#315天前 0 个赞

@Striver #2楼 首次安装,先按照文档搭建起来熟悉代码,后面慢慢熟悉,一开始没有必要把时间浪费在安装上面。

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