|
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]
|