• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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