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>
有知道问题出在哪的请指教!!!!
问题以解决,是配置文件的问题,重新配置一下就好了
@music65 #1楼 您好,请详细标注一下,是那个配置文件?那段代码?什么原因导致了这个问题?
分享一下帮助后面遇到这个问题的人。
之前看帖子,大部分windows安装都是apache,没有nginx的,我这就是nginx配置的,这个帖子 https://www.fecmall.com/topic/2101 就很详细的说了nginx配置 我就是根据这个配置来修复所有点击跳转都是404的问题,要注意的是把里面的root改成自己磁盘的位置及创建fcgi.conf文件
@music65 #3楼 OK