opencart发布规则,magento路由无效
2022-10-14 10:55:10 - 米境通
![](https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwww.weidea.net%2Fwp-content%2Fuploads%2F2011%2F08%2Ftemplate_shelf1.jpg&refer=http%3A%2F%2Fwww.weidea.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668308103&t=c5e50f66cdb233e2fcd15bacbac0ad46)
1.GC报错
错误内容
opencartSessionHandler::gc():ps_files_cleanup_dir:opendir(/var/lib/php5)failed:Permissiondenied
1
解决方法
更改php.ini中的session.save_path为webserver有权限写的目录,比如「/tmp」(当然「/tmp」不是一个最好的选择)。修改后一般要重启webserver。
2.未设置长度单位、重量单位、默认库存状态等
错误内容
在admin后台修改时,提示length\_classes、weight\_classes、stock\_status等相关错误。
1
解决方法
在admin后台的system中设置length_classes、weight_classes、stock_status等相关内容。
3.增加Nginx与PHP之间的超时时间
错误内容
Nginx错误日志显示:
489upstreamtimedout(110:Connectiontimedout)whilereadingresponseheaderfromupstream,client:xxx,server:xxx,request:"xxx",upstream:"fastcgi://unix:/var/run/php5-fpm.sock",host:"xxx",referrer:"http://xxx"
1
解决方法
修改nginx.conf:
location~.php${
...
fastcgi_read_timeout120;
...
}
相关问答: