News:

SMF - Just Installed!

Main Menu

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

Started by mahesh, Dec 31, 2024, 06:15 AM

Previous topic - Next topic

mahesh

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';"