Yes if folder structure looks like you show this would be easy but it isn't.. ;)
In this case folder structure looks like following:
In my main domain root folder has
Code:
httpdocs <- where is main domain files
subdomains <- where is all subdomain folders
folder view is for my main domain:
Code:
/var/www/vhosts/mydomain/httpdocs/
and subdomain:
Code:
/var/www/vhosts/mydomainname/subdomains/mysubdomainname/httpdocs/
in main subdomain folder, in each own subdomain folder has same folder hierarcy as main domain folders.
And if I try to include from my main domain files
Code:
/var/www/vhosts/mydomain.com/httpdocs/inc/function_file.php
I got this in error_log:
Code:
PHP Warning: include() [<a href='function.include'>function.include</a>]: open_basedir restriction in effect. File(/var/www/vhosts/mydomainname/httpdocs/include/include_file.php) is not within the allowed path(s): (/var/www/vhosts/mydomainname/subdomains/mysubdomainname/httpdocs:/tmp) in /var/www/vhosts/mydomainname/subdomains/mysubdomainname/httpdocs/orders.php on line 1
something about open_basedir?
Sorry about my first post, I haven't describe my problem good enough..
I have dedicated server, CentOS5 and Plesk 8.3 installed.
Thanks for all help!