• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

disabling open_basedir restriction on plesk 10.1

0

01i

Guest
Hi,

I have a domain set up as following

...../tablewarfare.com/www <- live site htdocs
...../tablewarfare.com/code <- code for the live site
...../tablewarfare.com/boards <- message boards accessable from live and dev
...../tablewarfare.com/devel/www <- dev site htdocs
...../tablewarfare.com/devel/code <- dev site code source

The apache config for the devel subdomain includes the following

<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/tablewarfare.com/devel/www/:/tmp/
</IfModule>

This prevents access to the /boards/ directory via a symlink and prevents me from including documents from the code folder.

this KB http://kb.odin.com/en/432 tells me to create a vhost.conf file in ...../tablewarfare.com/subdomains/devel/conf/ and followed that to http://download1.swsoft.com/Plesk/Plesk8.1/Doc/plesk-8.1-unix-administrators-guide/17359.htm

I create the file with the following contents

php_admin_value open_basedir none

and then ran the script suggested:

/plesk_installation_directory/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain_name>

that script told me it was out of date and to run httpdmng instead, so I tried that.

I have run

httpdmng --reconfigure-domain devel.tablewarfare.com
httpdmng --reconfigure-domain tablewarfare.com
httpdmng --reconfigure-all

I have also manually restarted apache, and rebooted the webserver

The basedirectory restriction is still in place.

The KB article I found is only for Plesks 8 and 9.

How do I add some manual vhost directives for apache2 on plesk 10.1
 
I have edited the file again and added directory containers around the command

<Directory /var/www/vhosts/tablewarfare.com/devel/www>

php_admin_value open_basedir /var/www/vhosts/tablewarfare.com:/tmp

</Directory>

allows the symlink to the boards to work

But includes are still failing to the code directory

I tried adding

<Directory /var/www/vhosts/tablewarfare.com/devel/>

php_admin_value open_basedir /var/www/vhosts/tablewarfare.com:/tmp

</Directory>

and

<Directory /var/www/vhosts/tablewarfare.com/devel/www>

php_admin_value open_basedir /var/www/vhosts/tablewarfare.com:/tmp

</Directory>

but the includes still fail.
 
Back
Top