• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Problem with CGI scripts: 404 Not Found

Matt M

New Pleskian
I am currently migrating from one Plesk Onyx server to another. I migrated a domain with numerous CGI scripts in the cgi-bin. When I try to access any of them by going to: http://domain.com/cgi-bin/script.cgi, I get error 404.

I've ensured that CGI support is enabled in the Hosting Settings for the subscription. I have rebuilt the config using plesk repair web domain.com. However, this has not helped. I'm completely stumped. Any ideas what could be the possible cause here?
 
Well, I have found the issue. On the old server, the cgi-bin folder was in the vhost root. That is:
Code:
/var/www/vhosts/domain.com/cgi-bin

On the NEW server, it's looking for it under httpdocs:
Code:
/var/www/vhosts/domain.com/httpdocs/cgi-bin

I could've sworn this was something one could change from the Plesk web interface, but I'm not finding anything. Short of moving cgi-bin to the new location, what can I do?
 
Well, I have found the issue. On the old server, the cgi-bin folder was in the vhost root. That is:
Code:
/var/www/vhosts/domain.com/cgi-bin

On the NEW server, it's looking for it under httpdocs:
Code:
/var/www/vhosts/domain.com/httpdocs/cgi-bin

I could've sworn this was something one could change from the Plesk web interface, but I'm not finding anything. Short of moving cgi-bin to the new location, what can I do?
See: Resolved - Virtual Host Template
 
Back
Top