Our new servers have many new security features that are in place. Some of them may cause problems with your web site scripts. The cgi functions that are you are needing are still available, however you will just need to enable them on your own.
To allow your cgi files to execute outside the cgi-bin folder, you must do this via your .htaccess file. To do this, follow these instructions:
If you do not have a .htaccess file in the folder where your cgi code exists:
- Create a new file with the filename of .htaccess - notice there is a period that starts the file. You can not do this in windows, but you can create this file via FTP or in your control panel.
- Open the file, and insert the following line:
AddHandler cgi-script .cgi .pl .spl
- Save the file.
You now can execute cgi files outside the protected cgi-bin folder
If you already have a .htaccess file in the folder where your cgi code exists:
- Open the file via FTP or your control panel.
- Create a new line, and put this code in:
AddHandler cgi-script .cgi .pl .spl
- Save the File
You now can execute cgi files outside the protected cgi-bin folder