• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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