fecmall部署成功后访问报错

技术问题 · caicai · 于 13天前 发布 · 62 次阅读

我在本地部署成功后,访问localhost时,程序报了一个错,错误截图如下:

使用环境时php7+apache2+mysql5.7 apache2配置文件如下:

<VirtualHost *:80>
    ServerName localhost
	ServerAlias
    DocumentRoot "E:/phpstudy_pro/WWW/fecmall/appfront/web"
    FcgidInitialEnv PHPRC "E:/phpstudy_pro/Extensions/php/php7.3.4nts"
    AddHandler fcgid-script .php
    FcgidWrapper "E:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "E:/phpstudy_pro/WWW/fecmall/appfront/web">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
	  DirectoryIndex index.php index.html
  </Directory>
  ErrorDocument 400 /error/400.html
  ErrorDocument 403 /error/403.html
  ErrorDocument 404 /error/404.html
  ErrorDocument 500 /error/500.html
  ErrorDocument 501 /error/501.html
  ErrorDocument 502 /error/502.html
  ErrorDocument 503 /error/503.html
  ErrorDocument 504 /error/504.html
  ErrorDocument 505 /error/505.html
  ErrorDocument 506 /error/506.html
  ErrorDocument 507 /error/507.html
  ErrorDocument 510 /error/510.html
</VirtualHost>

<VirtualHost *:80>
  ServerName localhost/admin
  ServerAlias shopadmin
  DocumentRoot "E:/phpstudy_pro/www/fecmall/appadmin/web"
  FcgidInitialEnv PHPRC "E:/phpstudy_pro/Extensions/php/php7.3.4nts"
    AddHandler fcgid-script .php
    FcgidWrapper "E:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "E:/phpstudy_pro/www/fecmall/appadmin/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName localhost/html5
  ServerAlias shophtml5
  DocumentRoot "E:/phpstudy_pro/www/fecmall/apphtml5/web"
  FcgidInitialEnv PHPRC "E:/phpstudy_pro/Extensions/php/php7.3.4nts"
  AddHandler fcgid-script .php
  FcgidWrapper "E:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "E:/phpstudy_pro/www/fecmall/apphtml5/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName localhost/appimage
  ServerAlias shopimage
  DocumentRoot "E:/phpstudy_pro/www/fecmall/appimage/common"
  FcgidInitialEnv PHPRC "E:/phpstudy_pro/Extensions/php/php7.3.4nts"
  AddHandler fcgid-script .php
  FcgidWrapper "E:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "E:/phpstudy_pro/www/fecmall/appimage/common">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName localhost/server
  ServerAlias shopserver
  DocumentRoot "E:/phpstudy_pro/www/fecmall/appserver/web"
  FcgidInitialEnv PHPRC "E:/phpstudy_pro/Extensions/php/php7.3.4nts"
    AddHandler fcgid-script .php
    FcgidWrapper "E:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "E:/phpstudy_pro/www/fecmall/appserver/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName localhost/api
  ServerAlias shopapi
  DocumentRoot "E:/phpstudy_pro/www/fecmall/appapi/web"
  FcgidInitialEnv PHPRC "E:/phpstudy_pro/Extensions/php/php7.3.4nts"
    AddHandler fcgid-script .php
    FcgidWrapper "E:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "E:/phpstudy_pro/www/fecmall/appapi/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

共收到 1 条回复
Fecmall#113天前 0 个赞

1.报错信息论坛搜索,有相关帖子的

2.你这个报错是没有操作完安装文档,详细的就不说了,自己看安装文档吧

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