Help - Search - Members - Calendar
Full Version: File Permission
The Planet Forums > Operating Systems > Red Hat Linux > Red Hat HOWTOs
vien
Hello there:
Please help me here as am kind of stranded:

Through the domain, http://edit.jolis.net (/home/httpd/vhosts/jolis.net/subdomains/edit/httpdocs/) I need to list directory contents from a domain http://otherdomain.org hosted on the same server

in simplest terms I get a permission error when I run the code below:

[PHP]
include ("/home/httpd/vhosts/otherdomain.org/httpdocs/images");
[/PHP]

here is the error I get:

Warning: main(): open_basedir restriction in effect. File(/home/httpd/vhosts/kampalacentral.org/httpdocs/images) is not within the allowed path(s): (/home/httpd/vhosts/jolis.net/subdomains/edit/httpdocs:/tmp) in /home/httpd/vhosts/jolis.net/subdomains/edit/httpdocs/test.php on line 2

Warning: main(/home/httpd/vhosts/kampalacentral.org/httpdocs/images): failed to open stream: Operation not permitted in /home/httpd/vhosts/jolis.net/subdomains/edit/httpdocs/test.php on line 2

Warning: main(): Failed opening '/home/httpd/vhosts/kampalacentral.org/httpdocs/images' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/jolis.net/subdomains/edit/httpdocs/test.php on line 2

The error above may be also viewed through: http://edit.jolis.net/test.php

To me this seems to be an apache permission problem ... please help me on how to sort this mess out.

Thanks Alot

Vien
top500
Remember you may need to do a:

chown -R admin1:admin1 directoryname
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.