• 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

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