• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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