You are here: permission denied while include file « All PHP « IT news, forums, messages
permission denied while include file

Posted by volantecho on 09/15/05 12:41

Hi all.

I'm having problem when i tried to include file in my php script.

ie : /home/lain/public_html/index.php

at line 3, i require a file outside the public_html
require_once("/home/lain/lainlib/global.inc.php");

but i receive the error message shown as below :
Warning: main(/home/lain/lainlib/global.inc.php) [function.main]:
failed to open stream: Permission denied in
/home/lain/public_html/index.php on line 3

i wonder it is my apache configuration setting problem.

things i'd gone through:
1. all related files, folder i 've chmod 755 on them, still failed.
2. try to run the index.php in SSH, it works!!

i wonder is it when i run the script on a browser, it doesnt have
enough permission to 'get' the file outside from public_html.
it's able to include files inside the public_html folder, while the
line 2 in index.php do so.

anything i can do to solve this permission problem?

my server
Redhat Linux Fedora 4
Apache version 2.0.54
php version 5.x.x

thanks for every suggestion

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация