• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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