在这方面,我做了些什么......
在工厂,如果早于php5(因违约而重归并和扶持)5。
在您的php.ini(就地点而言,见phpinfo()或可操作>php-i)改变了行文。
会 议:save_handler = 档案
纽约总部
会议:save_handler = sqlite
- Then in the same file (php.ini) make sure NOTICES are turned on
错误——报告 = E.ALL
- restart apache if you changed php.ini
页: 1
Now you will be getting a sensible error message most likely revealing you dont have correct permissions 纽约总部your session.save_path so ...
- Find out your web services user and group unless known.
There are several ways 纽约总部do so but I placed this line temporarily in my php code ...
印刷机(主食-植被(植被));
我发现,用户www-data和团体www-data被我的笔录为这一网络用户。
为网站用户提供网页上的会议名录(可能是/var/www)。
sudo mkdir /var/www/whatever;
sudo chown <user_from_last_step>:<group_from_last_step> /var/www/whatever
eg>sudo chown www-data:www.data /var/www/whatever
同样,在您的网址(www.php.ini)中,确保会议举行。 除此以外,还发表评论,例如......。
;会议:save_path = /var/lib/php5
不适用
会议:save_path = /var/lib/php5
(届会,0;0750;/var/www/whatever)
Note that we set session.save_path in your code rather than in php.ini 纽约总部help keep it secure, so 纽约总部replace whatever with something inventive would be useful.
By now it should appear 纽约总部be working, 不适用 quite, it doesent work accross ajax requests for some reason that I dont care about related 纽约总部sqlite ... so ...
- Go back 纽约总部your php.ini file and change the line ...
会议:save_handler = sqlite
页: 1
会 议:save_handler = 档案.
固定: 希望: