What does “HTTP Error 404 - formmail.pl Not Found” mean?


Answer: If you see the error:

Not Found
The requested URL /cgi-bin/formmail.pl was not found on this server.


A 404 - /cgi-bin/formmail.pl File Not Found error means that the FREE UNIX formmail CGI script is not yet installed to the proper directory on your server. There are only two ways this can happen.

1. You are using PayPal for UNIX and have not first published the store with the UNIX only setting.

2. Your web server does not store the cgi-bin folder in the same folder as your web documents.

If reason #1 is the cause:

  • Start the program.
  • Click the “Checkout Button.”
  • Click the “Server Tab.”
  • Change the “Server Type” to UNIX.
  • Click OK and publish your store.

If you originally were trying to use PayPal for UNIX After you install the script you can then CANCEL the publishing by closing the publishing wizard, THEN change your Server Type back to “PayPal for UNIX“ and the next time you publish everything should work fine.

Note: When changing checkout options it is not necessary to rebuild the entire store each time. The only file that needs to be published after changing the checkout parameters are “pay.html” and “secure-pay.html.”

How to upload this script manually.


For complete information on how to configure and upload this script manually please visit this page.

If reason #2 is the cause:

What to do if formmail.pl is already in your cgi-bin folder


It can be confusing if you see the formmail.pl script in your cgi folder yet you still receive a 404 File Not Found error when you try placing an order. The reason this happens is because your web server configuration ALREADY had a cgi-bin folder located somewhere outside of your web documents folder. (The cgi-bin folder you are seeing formmail in is the one RealCart created when it uploaded your files, NOT the one your web server was already using.)

If your web hosting plan came with cgi access then it probably already had a cgi-folder located on your server in a folder other than the cgi folder you’re looking in. The server that houses RealCart.com, for example, has the cgi-bin folder here:

/usr/local/etc/httpd/cgi-bin

However, the web documents that make up the RealCart.com site are located here:

/usr/local/etc/httpd/htdocs

Therefore if we published formmail.pl with the RealCart program itself we would end up with a second cgi folder located here:

/usr/local/etc/httpd/htdocs/cgi-bin

instead of here:

/usr/local/etc/httpd/cgi-bin

Since web servers can be configured any number of different ways there is no way to tell exactly where this folder will be on every server. While a great deal of them store the cgi-bin folder in the web documents folder, others do not. This is when uploading formmail.pl manually becomes necessary.

SOLUTION: Locate your real cgi folder and manually upload formmail to this folder. Usually the location of your cgi folder and your web documents folder is provided to you in the setup instructions provided to you by your web hosting provider.


How do you rate this answer?
Your email:
select a response: Great answer
Good answer
Need more info
Out of date answer
Wrong answer
Enter your comments: (optional)

Copyright © 1998-2004, RealCart.com®
This page last modified on