ComsenzEXP一键安装php显示Warning: session_start() [funct
[重要通告]如您遇疑难杂症,本站支持知识付费业务,扫右边二维码加博主微信,可节省您宝贵时间哦!
ComsenzEXP一键安装php显示Warning: session_start() [function.session-start]: open的解决方式
自己PC没有配置PHP环境,今天测试PHP程序的时候用的康盛的ComsenzEXP安装好后,
提示以下错误:
Warning: session_start() [function.session-start]: open(..\..\php5\Temp\sess_f177b3c51416619e81e977da6b04dc5e, O_RDWR) failed: No such file or directory (2) in D:\ComsenzEXP\wwwroot\system\library\session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\ComsenzEXP\wwwroot\index.php:100) in D:\ComsenzEXP\wwwroot\system\library\session.php on line 11Warning: Cannot modify header information - headers already sent by (output started at D:\ComsenzEXP\wwwroot\index.php:100) in D:\ComsenzEXP\wwwroot\index.php on line 173
解决方法如下:
1.我是用ComsenzEXP一键安装php,系统为win8,把php.ini拷贝到c:\windows目录下,
2.在php.ini中把 session.save_path ="C:\WINDOWS\Temp"改为这个;
3.把session.use_cookies = 0,修改为:session.use_cookies = 1;
4.把output_buffering = off,修改为:output_buffering = on;
5.重起appache,一切显示正常。
问题未解决?付费解决问题加Q或微信 2589053300 (即Q号又微信号)右上方扫一扫可加博主微信
所写所说,是心之所感,思之所悟,行之所得;文当无敷衍,落笔求简洁。 以所舍,求所获;有所依,方所成!