分页: 1 / 1

阿里云CentOs安装typecho后台登陆404

发表于 : 2019年 4月 23日 10:52
pythonworld
好奇怪,后台登陆和文章都出现404,百度了说是伪静态的问题,
我按照http://asks.typechodev.com/question/207下面的来做,重启Nginx后发现会提示

代码: 全选

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.


我根本没enable-php-pathinfo.conf这几个文件呀

我的nginx配置目录
2.png
2.png (9.85 KiB) 查看 7770 次


我的网站目录
3.png
3.png (11.25 KiB) 查看 7770 次

Re: 阿里云CentOs安装typecho后台登陆404

发表于 : 2019年 4月 23日 11:11
pythonworld
有人吗?

Re: 阿里云CentOs安装typecho后台登陆404

发表于 : 2019年 4月 23日 13:02
ClayMore
建议使用一键lnmp 省心少事
https://github.com/oneinstack/oneinstack

Re: 阿里云CentOs安装typecho后台登陆404

发表于 : 2019年 5月 12日 19:52
kilig
需要配置pathinfo

Re: 阿里云CentOs安装typecho后台登陆404

发表于 : 2019年 5月 17日 14:21
superuser
建议使用lnmp

没有enable-php-pathinfo.conf就新建一个,内容如下

代码: 全选

        location ~ [^/]\.php(/|$)
        {
            fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
            include pathinfo.conf;


然后编辑网站配置文件;导入配置文件就好了,类似于这样

代码: 全选

include enable-php-pathinfo.conf;