数据表初始化报错和链接无法打开

问题咨询 · music65 · 于 2年前 发布 · 1103 次阅读

1、在初始化数据表的时候报如下信息 检查了main-local.php里的数据库连接信息及本地连接mysql正常 重新安装了很多次,每次mysql里都是初始化到第39张表,在第40张表的时候报错, 刷新重新提交之后就好了,能正常访问PC首页 但是无法点击任意一个栏目,分类,链接,都是出现如下错误 composer安装fecmall 本地环境phpstudy_pro apache2.4.39/nginx1.15.11+php7.2*+php7.3各种搭配都试过,都是一样 这是apache配置

<VirtualHost *:80>
    DocumentRoot "I:/phpstudy_pro/WWW/fecmall/appfront/web"
    ServerName appfront.shop.com
    ServerAlias 
    FcgidInitialEnv PHPRC "I:/phpstudy_pro/Extensions/php/php7.3.4nts"
    AddHandler fcgid-script .php
    FcgidWrapper "I:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "I:/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 error/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 appadmin.shop.com
  ServerAlias shop
  DocumentRoot "I:/phpstudy_pro/WWW/fecmall/appadmin/web"
  FcgidInitialEnv PHPRC "I:/phpstudy_pro/Extensions/php/php7.3.4nts"
    AddHandler fcgid-script .php
    FcgidWrapper "I:/phpstudy_pro/Extensions/php/php7.3.4nts/php-cgi.exe" .php
  <Directory "I:/phpstudy_pro/WWW/fecmall/appadmin/web">
    Options +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

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

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

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

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

有知道问题出在哪的请指教!!!!

共收到 4 条回复
music65#12年前 0 个赞

问题以解决,是配置文件的问题,重新配置一下就好了

Fecmall#22年前 0 个赞

@music65 #1楼 您好,请详细标注一下,是那个配置文件?那段代码?什么原因导致了这个问题?

分享一下帮助后面遇到这个问题的人。

music65#32年前 0 个赞

之前看帖子,大部分windows安装都是apache,没有nginx的,我这就是nginx配置的,这个帖子 https://www.fecmall.com/topic/2101 就很详细的说了nginx配置 我就是根据这个配置来修复所有点击跳转都是404的问题,要注意的是把里面的root改成自己磁盘的位置及创建fcgi.conf文件

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