• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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