Hey all.. been pulling my hair out on this:
Scenerio:
have two domains on one server:
/home/httpd/vhosts/domain1.com/httpdocs
/home/httpd/vhosts/domain2.com/httpdocs
domain1.com runs a php script which needs access to other domains 'httpdocs' directories.
eg: /home/httpd/vhosts/domain1.com/httpdocs/edit_me.php
here's where i have a brain fart:
if i copy /home/httpd/vhosts/domain1.com/httpdocs/edit_me.php over to /home/httpd/vhosts/domain2.com/httpdocs/edit_me.php
http://domain1.com/edit_me.php works fine... but running
http://domain2.com/edit_me.php doesn't..
I do not get a fopen error from php or from the echo "Could not open: $site_root/welcome/site_pages.inc"; part.. the script just.. stops ?
I have changed file permissions under both domains and the accounts have full read access onto those files...
I'm left with wondering if there is a chroot environment setup for domain2 and not for domain1...
this is where I need ur help... how do i check if a domain hosted on this plesk server is running in a chroot..?
and how do i disable a chroot?
thanks heaps..
Dave.
Scenerio:
have two domains on one server:
/home/httpd/vhosts/domain1.com/httpdocs
/home/httpd/vhosts/domain2.com/httpdocs
domain1.com runs a php script which needs access to other domains 'httpdocs' directories.
eg: /home/httpd/vhosts/domain1.com/httpdocs/edit_me.php
PHP:
<?php
$domain_name = "foo.com";
$site_root = "../../../$domain_name/httpdocs";
if(( $fd = fopen( "$site_root/welcome/site_pages.inc", "r" )) == NULL ){
echo "Could not open: $site_root/welcome/site_pages.inc";
exit;
}
etc...
?>
here's where i have a brain fart:
if i copy /home/httpd/vhosts/domain1.com/httpdocs/edit_me.php over to /home/httpd/vhosts/domain2.com/httpdocs/edit_me.php
http://domain1.com/edit_me.php works fine... but running
http://domain2.com/edit_me.php doesn't..
I do not get a fopen error from php or from the echo "Could not open: $site_root/welcome/site_pages.inc"; part.. the script just.. stops ?
I have changed file permissions under both domains and the accounts have full read access onto those files...
I'm left with wondering if there is a chroot environment setup for domain2 and not for domain1...
this is where I need ur help... how do i check if a domain hosted on this plesk server is running in a chroot..?
and how do i disable a chroot?
thanks heaps..
Dave.