Crystone AB
Control panel

CGI/Perl

Read this first!
We do not allow you to upload the classic FormMail script (Matt Wright's) as it contains serious security holes. Use our script instead. See the FormMail page in the menu.

Please remember

  • Scripts can only be executed from the “cgi-bin” directory. You can create the directory yourself under your “www” directory.
  • The CGI script should have the “.pl” or “.cgi” file extension. For example: “formmail.pl” or “formmail.cgi”.
  • All scripts should be changed to CHMOD 755. You can do this with your FTP program after uploading the script.
Paths
  • Path to Perl binary compilator: /usr/bin/perl
  • Path to SendMail: /usr/sbin/sendmail
  • Path to your cgi-bin directory: /home/user name/www (replace "user name" with your FTP log-in user name)
  • Path via the Internet: www.your-address.top/cgi-bin/your-script.pl
Here’s how to set up a script step-by-step
  1. Create the “cgi-bin” directory under the “www” folder in your FTP account, i.e. “www/cgi-bin”.
  2. Configure the script (see the “Paths” heading).
  3. Upload the script to the “cgi-bin” directory.
  4. Change the script to CHMOD 755.
  5. The script should now work. If not, see the information under the “Common errors” heading.
Common errors
  • You haven’t changed the script file to CHMOD 755.
  • You haven’t configured the script correctly. The first line in the script should always be "#!/usr/bin/perl". Also check that other paths are correct.
Script archive
You can download scripts from this archive: