• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

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