• 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.

Subdomains config and httpdocs directory.

D

Dimitriy

Guest
Hello, there is a subdomain, for him to change the open_basedir, but it does not work.
I tried to prescribe a rule to:
/var/www/vhosts/DOMAIN/conf, /var/www/vhosts/DOMAIN/subdomains/SUBDOMAIN/conf
# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
#/var/www/vhosts/DOMAIN/conf/vhost.conf

<Directory /var/www/vhosts/DOMAIN/ads>

<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/DOMAIN/SUBDOMAIN/:/tmp/:/var/www/vhosts/DOMAIN/
</IfModule>

<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/DOMAIN/SUBDOMAIN/:/tmp/:/var/www/vhosts/DOMAIN/
</IfModule>


Options -Includes -ExecCGI

</Directory>

<Directory /var/www/vhosts/DOMAIN/httpdocs>

<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/DOMAIN/SUBDOMAIN/:/tmp/:/var/www/vhosts/DOMAIN/
</IfModule>

<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/DOMAIN/SUBDOMAIN/:/tmp/:/var/www/vhosts/DOMAIN/
</IfModule>


Options -Includes -ExecCGI

</Directory>

<Directory /var/www/vhosts/DOMAIN/subdomains/SUBDOMAIN>

<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/DOMAIN/SUBDOMAIN/:/tmp/:/var/www/vhosts/DOMAIN/
</IfModule>

<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/DOMAIN/SUBDOMAIN/:/tmp/:/var/www/vhosts/DOMAIN/
</IfModule>


Options -Includes -ExecCGI

</Directory>
<Directory /var/www/vhosts/DOMAIN/subdomains/SUBDOMAIN/httpdocs>

<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/DOMAIN/SUBDOMAIN/:/tmp/:/var/www/vhosts/DOMAIN/
</IfModule>

<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir /var/www/vhosts/DOMAIN/SUBDOMAIN/:/tmp/:/var/www/vhosts/DOMAIN/
</IfModule>


Options -Includes -ExecCGI

</Directory>

More httpdocs directory subdomain is located in:
/var/www/vhosts/DOMAIN/SUBDOMAIN (this is the httpdocs directory subdomain)
but the directory conf, cgi-bin, error_docs are in:
/var/www/vhosts/DOMAIN/subdomains/SUBDOMAIN
is this correct?

P.S. sorry, bad English :)
 
Back
Top