• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Event Hanlder -> Update Subdomains -> Document directory

S

StefanieW

Guest
Event Handler -> Update Subdomains -> Document directory

Hello Igor,

could you please help me, i tried to modify open_basedir in php.ini for subdomains with plesk event handler to get like:

open_basedir = "/var/www/vhosts/tld/site1|2|3......andso_on_:/tmp........."

Shellscript for eventhandler :

/root/adjust_subdomains.sh <old_domain_name> <new_domain_name> <old_php_support> <new_php_support> <old_system_user_type> <new_system_user_type> update_subdomains ${OLD_HOME_DIRECTORY}

Could you please tell me the variable for new document root ? so nothing is working ->OLD_HOME_DIRECTORY, NEW_HOME_DIRECTORY, www_root

I need for example "site1"or "site2" or "site3" -> the document directory für subdomains selected bei costumer

Available Variables from documentation:

http://download1.parallels.com/Ples...inistrator-guide/index.htm?fileName=67897.htm
 
Last edited by a moderator:
Back
Top