How to enable/disable the option "Restrict the ability to follow symbolic links"

Started by Suhitha, Dec 16, 2025, 03:48 AM

Previous topic - Next topic

Suhitha

Applicable to:

  • Plesk for Linux

Question

How to enable/disable the option "Restrict the ability to follow symbolic links" for all domains on a Plesk server?


Answer

1.Connect to a Plesk server via SSH.

2.Run one of the following commands:

  • to enable the option "Restrict the ability to follow symbolic links":

# for i in `plesk bin site --list`; do plesk bin subscription --update-web-server-settings $i -apache-restrict-follow-sym-links true; done

  • to disable the option "Restrict the ability to follow symbolic links":

# for i in `plesk bin site --list`; do plesk bin subscription --update-web-server-settings $i -apache-restrict-follow-sym-links false; done