• 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.

cgibin

danh1968

New Pleskian
Hi Guys,
This is my first post to the forum and my first vps ive managed. So first off hello :)
Now my server seems to be having a problem with the cgi bin when trying to execute the file for the contact form i get returned the a 404. I have opened a support ticket with my provider and got the following results. I am really lost in what to do.

Thanks for your patience.

The problem here is that the cgi-bin folder is not correctly being listed as being in the web space so when you visit the URL it's in fact looking for the following directory:

script not found or unable to stat: /var/www/cgi-bin/formmail

This is of course incorrect and it should automatically look for the files in either of the following locations:

/var/www/vhosts/domain/cgi-bin
/var/www/vhosts/domain.co.uk/httpdocs/cgi-bin

As this isn't happening this is the problem your seeing but a work around would be to call this script using the server path exactly so rather than looking http://domain.co.uk/cgi-bin/formmail/FormMail.pl you can just use either of the paths provided above so it accesses the file that way instead. It would require slightly different coding but this means you can contact plesk about this to find out why the cgi-bin is not loading correctly but if you have any questions please let me know.


Im pretty lost and you cannot call that directory as advised in an html document right? ~Well i tried and it did not work
 
Last edited:
Thanks. The article says not the document root of the domain.
Well i have placed the cgi-bin in the site root and also in the httpdocs neither will work. I do not understand how to sort this? thanks
 
Back
Top