首先報錯:_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/769e70f2e46f34ceb60619bbda5e4691.php
解決此問題直接在專案目錄下給Appliccation目錄最高許可權
# chmod -R 777 Application/
重新整理首頁可以正常訪問,跳轉頁面後,然後報錯:Access denied.
這是因為ThinkPHP
的URL_MODEL
問題導致ngnix解析問題
# vim /usr/local/php/etc/php.ini
cgi.fix_pathinfo=0 //由0改為1
然後配置nginx.conf
fastcgi_split_path_info ^(.+\.php)(/.+)$;
然後在對應的域名解析配置中配置
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# service php-fpm restart //重啟php-fpm
問題解決~