CGI-BIN

If you use one of the scripting languages such as PERL/CGI, TCL, or a Unix shell, the script itself needs to reside in the /cgi-bin directory. Many hosting companies do not allow you access to the cgi-bin. However, with 1-2-Wonder Hosting you get your own cgi-bin directory with every hosting account. When you create a subdomain, a cgi-bin is also automatically created for the subdomain.

The cgi-bin resides within your public_html folder.

PATHS
Here are the correct paths to the common server resources that PERL and/or CGI scripts often require:

Perl5: #!/usr/bin/perl
Sendmail: /usr/lib/sendmail
Date: /bin/date
Serverpath: /home/username/public_html/cgi-bin
Root path: /home/username/   (puts you in the root of your account)
Domain directory: /home/username/public_html   (puts you in your public_html directory)
Cgi-bin path: /home/username/public_html/cgi-bin/filename   (puts you in your cgi-bin)

For information about setting permissions for your folders and scripts, read more here.

In your cPanel:
Click on File Manager -->public_html (click on the folder, not the name) -->cgi-bin (again click on the folder, not the name).

<< BACK to previous small-window display 
Close WindowClose Window