Articles in this section

How to set the cgi_bin location for a domain in Plesk?

kb: how-to Plesk for Linux

Question

How to set the cgi_bin location for a domain in Plesk?

Answer

  1. Connect to the server via SSH
  2. Add CGI bin directory:

    # plesk bin settings --set force_separate_cgi_bin_dir=true

  3. Set webspace root for domain:

    # plesk bin site -u example.com -cgi-mode webspace

Additional information

Check force_separate_cgi_bin_dir status:

# plesk db "select * from misc where param='force_separate_cgi_bin_dir';"

Check domain's parameters:

# plesk db "select * from dom_param where param = 'cgi_bin_mode';"

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.