[转载]Warning: main(/html_head.php): failed to open stream: No such file or directory in « 第一php网-专注PHP编程技术 积极分享知识,耐心帮助他人,争做业内第一技术互助平台!

[转载]Warning: main(/html_head.php): failed to open stream: No such file or directory in « 第一php网-专注PHP编程技术 积极分享知识,耐心帮助他人,争做业内第一技术互助平台!.
我的网站一打开就这样,那们朋友帮忙看看怎么回事?我的硬盘全是FAT格式的.
Warning: main(/html_head.php): failed to open stream: No such file or directory in D:\site\p-t.com.cn\index2.php on line 44
Warning: main(): Failed opening ‘/html_head.php’ for inclusion (include_path=’.;c:\php4\pear’) in D:\site\p-t.com.cn\index2.php on line 44
Warning: main(/html_index.php): failed to open stream: No such file or directory in D:\site\p-t.com.cn\index2.php on line 46
Warning: main(): Failed opening ‘/html_index.php’ for inclusion (include_path=’.;c:\php4\pear’) in D:\site\p-t.com.cn\index2.php on line 46
Warning: main(/html_foot.php): failed to open stream: No such file or directory in D:\site\p-t.com.cn\set_foot.php on line 4
Warning: main(): Failed opening ‘/html_foot.php’ for inclusion (include_path=’.;c:\php4\pear’) in D:\site\p-t.com.cn\set_foot.php on line 4
配置文件:

问题补充::配置文件:
http://hi.baidu.com/lxq73061/blog/item/817e2f12676db150f819b8e5.html

有时候运行phpmyadmin时会遇到这样问题!解决方法两种,如果这两种都解决不了你的问题,你干脆重装!
问题1:
Warning: session_write_close(): open(/tmp\sess_847b8fce6866c2511ca41dbb0c04f3ec, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\phpMyAdmin\index.php on line 44
Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in C:\Program Files\Apache Group\Apache2\htdocs\phpMyAdmin\index.php on line 44
Warning: Cannot modify header information – headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\phpMyAdmin\index.php:44) in C:\Program Files\Apache Group\Apache2\htdocs\phpMyAdmin\index.php on line 105
问题1解决 :
把C:\WINDOWS\TEMP 这个文件夹权限 加上everyone权限
然后在打开网页试一下,你马上就能在文件夹下看到这个文件“sess_0cc9095f59d0c249da49b3885e4f9608”
问题2:
Warning: session_write_close() [function.session-write-close]: open(D:\Server\PHP\sessiondata\sess_e70f19b251c2d5e1cd8ebd4950689087, O_RDWR) failed: No such file or directory (2) in D:\Forum\phpMyAdmin\index.php on line 44
Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (D:\Server\PHP\sessiondata) in D:\Forum\phpMyAdmin\index.php on line 44
问题2解决 :
这时只需要在相应的位置建立如下的文件夹即可: D:\Server\PHP\sessiondata

赞(0) 打赏
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏