Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Sep 23, 2025, 06:10 AM

Title: How to set the cgi_bin location for a domain in Plesk?
Post by: Suhitha on Sep 23, 2025, 06:10 AM
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';"