
Apache
chose2875
这个作者很懒,什么都没留下…
展开
-
session_start(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)
session_start(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/project/)原因可能有以下几点:注:php.ini中的open_basedir默认指向的是/tmp下,所以php.ini是否配置不重要。1. 查看tmp文件夹权限是否够,然后赋权chmod 777 /tmp2. apache下配置域名的/httpd.conf和htt原创 2020-05-22 14:37:28 · 1945 阅读 · 0 评论 -
ThinkPHP下访问www.xxx.com访问成功www.xxx.com/后加上index、admin等报错
原因主要是Apache不支持.htaccess 1.httpd.conf,如果是多域名的要加上httpd-vhosts.confOptions FollowSymLinksAllowOverride None改为:Options FollowSymLinksAllowOverride All 2. httpd.conf中开启LoadModule rewrite_module modules/mod_rewrite.so...原创 2020-05-22 12:32:00 · 97762 阅读 · 0 评论