• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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