| · | Make sure you uploaded the cgi files with ASCII mode
|
| · | chmod 755 or 711 or even 700
|
| · | When Script Alias for /cgi-bin/ is turned on from the control panel, anything in /cgi-bin/ will be treated as scripts, and will be executed. This means if you put images or text file or html in /cgi-bin/ it won't work as expected as the web server will try to execute them. Your best solution is to move the scripts / app out of cgi-bin and simply turn on the Script extension for .cgi or .pl or whatever you choose.
|
| · | Turn on Error Logging from your control panel (CP -> Web Options)
|
| · | Check for the error. You can check this through the same area above (CP -> Web Options)
|
| · | Errors may be caused by missing libraries / modules, in this case, let us know and we'll most likely install them.
|
You can find more hint to fix your errors and insights on the suExec page.
Other useful resources:
Perl.org Troubleshooting CGI
Apache suExec Documentation
About File Modes
File Mode defines sets of permissions on the file. It defines who can read, write and execute it. File mode for cgi-bin has always been traditionally set to 755 (read + write + execute for owner, and read + execute for group and others). Since we utilize suExec, the CGI scripts can be safely set to 711 or even 700. This means nobody else can read your scripts. This provides a very good security in the shared hosting environment.
The file mode can be changed by using an FTP client, through the shell or using WebShell (the web based file manager, available through your control panel). It is normally changeable using the "chmod" command.
What do these numbers mean?
The file mode consists of three digits, and each digits range from 0 to 7. It defines who can access the file. There are three groups of people, each is defined by a digit in the file mode.
| · | The first digit defines the permissions for the owner of the file
|
| · | The second digit defines the permissions for the people in the same group as the file's group.
|
| · | The third digit defines the permissions for others.
|
The permissions are:
Read, Write, Execute (often shortened to rwx).
A digit represents the three access rights.
| 0 = No rights
|
|
|
| Basic:
|
| 1 = Execute Only
|
| 2 = Write Only (rarely used)
|
| 4 = Read Only
|
|
|
| Combination of the Basic:
|
| 3 = Write and Execute (rarely used)
|
| 5 = Read and Execute
|
| 6 = Read and Write
|
| 7 = Read, Write and Execute
|
As you can see, 3 = 2 + 1, which means Write and Execute. The same applies for the other combinations.
So when you see the file mode of 755, it means:
| · | The first digit is 7 = read, write and execute = file owner can read, write and execute this file
|
| · | The second digit is 5 = read and execute = people in the same group as the file's group can read and execute this file
|
| · | The third digit is 5 = read and execute = everyone else can read and execute this file too
|
Good luck!


