lnmp一键安装项目出现的问题

1、thinkinfo不支持

https://www.cnblogs.com/cm920/p/12887179.html

2、部署好项目后,登录验证码未显示

/usr/local/PHP/etc/PHP.ini

 

 

 cgi.fix_pathinfo=0 改为: cgi.fix_pathinfo=1

 

二、一台服务器上部署两个项目,相同域名,访问端口不同

1、/usr/local/Nginx/conf/Nginx.conf

server
    {
        listen 80 default_server reuseport;
        #listen [::]:80 default_server ipv6only=on;
        server_name _;
        index index.PHP index.htm index.html;
        root  /home/wwwroot/gms;

        #error_page   404   /404.html;

        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.PHP$ { deny all; }

        #include enable-PHP.conf;
		include enable-PHP-pathinfo.conf;
        location /Nginx_status
        {
            stub_status on;
            access_log   off;
        }

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /.well-kNown {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/access.log;
		
	}	
	
	
server
    {
        listen 8091 default_server reuseport;
        #listen [::]:80 default_server ipv6only=on;
        server_name _;
        index index.PHP index.htm index.html;
        root  /home/wwwroot/gms_sz;

        #error_page   404   /404.html;

        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*\.PHP$ { deny all; }

        #include enable-PHP.conf;
		include enable-PHP-pathinfo.conf;
        location /Nginx_status
        {
            stub_status on;
            access_log   off;
        }

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /.well-kNown {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/access_sz.log;
		
	}	

  更改server中,listen 端口,root 地址改为修改后地址

重启Nginx,访问地址后

访问网站出现500错误 HTTP ERROR 500

 

解决办法:修改fastcgi配置文件

/usr/local/Nginx/conf/fastcgi.conf

 

 

重新启动后,网站正常运行

 

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...