Thinkphp在Lnmp环境下部署项目先后报错问题解决:_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/...Access denied.

首先报错:_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/769e70f2e46f34ceb60619bbda5e4691.php

Thinkphp在Lnmp环境下部署项目先后报错问题解决:_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/...Access denied.

解决此问题直接在项目目录下给Appliccation目录最高权限

# chmod -R  Application/

刷新首页可以正常访问,跳转页面后,然后报错:Access denied.

这是因为ThinkPHPURL_MODEL问题导致ngnix解析问题

# vim /usr/local/php/etc/php.ini
cgi.fix_pathinfo= //由0改为1

然后配置nginx.conf

fastcgi_split_path_info  ^(.+\.php)(/.+)$;

Thinkphp在Lnmp环境下部署项目先后报错问题解决:_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/...Access denied.

然后在对应的域名解析配置中配置

fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

Thinkphp在Lnmp环境下部署项目先后报错问题解决:_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/...Access denied.

# service php-fpm restart  //重启php-fpm

问题解决~

上一篇:Java内存管理-你真的理解Java中的数据类型吗(十)


下一篇:使用ssh免密码登录其他机器