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

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