How to disable follow symbolic links option for several domains?

Created:

2016-12-22 14:48:23 UTC

Modified:

2017-08-08 13:41:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to disable follow symbolic links option for several domains?

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Question

How to disable Restrict the ability to follow symbolic links option for several domains simultaneously?

Answer

  1. Get the list of domains with enabled Restrict the ability to follow symbolic links option :
    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa --skip-column-names -e "SELECT domains.name FROM domains INNER JOIN dom_param ON domains.id=dom_param.dom_id INNER JOIN WebServerSettingsParameters ON dom_param.val=WebServerSettingsParameters.webServerSettingsId WHERE param='webServerSettingsId' AND WebServerSettingsParameters.name='restrictFollowSymLinks' AND value='true'" > list
  2. Download and unpack the script:
    # wget https://support.plesk.com/hc/en-us/article_attachments/115000350905/unreject.tar.gz
    # tar -xzf unreject.tar.gz
  3. Add execution permission to the script:
    # chmod +x unreject.sh
  4. Execute the script, specify the name of the file from step one as an argument:
    # ./unreject.sh list

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.