I'm trying to setup a script on a subdomain in plesk which is linked to another script in mydomain.com/httpdocs/ while the forum is in mydomain.com/subdomains/forum/httpdocs So.. Do I want to modify the Open_BaseDir, or is it that I need to disable openbase_dir so I can link them like this from mydomain.com/httpdocs/example.php i want to include config.php which is located in /mydomain.com/subdomains/forum/httpdocs using "../subdomains/forum/httpdocs/config.php" and I want this ability in both /httpdocs and /subdomains... So.. is it that I need to disable open_basedir, or enable it and modify the path in a vhosts.conf file? I'm totally lost here and this downtime on my site is killing me. Anyone have any good articles or anything? I've been struggling with this for hoursss.
If it's only your sites on the server disable it. If you have other sites that are not yours I suggest you modify the vhosts.conf file to include the extra path.
Don't dare remove it, modify it so that both sites can access the same directory. Removing it will result in problems later on down the road when you get exploited -- bad, bad idea. Remember the statement above: 'when you get exploited', not 'if you get exploited'.
To disable open_basedir for the domains, you need to make the following changes. 1. Create a file called "vhost.conf" under the "conf" directory of each of the domain. >> vi /var/www/vhosts/domain.com/conf/vhost.conf 2. Add the following lines to it. ================= <Directory /var/www/vhosts/domain.com/httpdocs> php_admin_value open_basedir none </Directory> ================= 3. Update Plesk configuration by running the following command. >> /usr/local/psa/admin/sbin/websrvmng -v -a 4. Restart Apache. >> /etc/init.d/httpd restart That is it!!