Q: Can I use my own CGI or Perl scripts?
A: Yes, we do provide you with your own cgi-bin.
You may upload your own scripts to it but your scripts must not cause issues with our servers or use too many resources to the detriment of other users.
Make sure your CGI or Perl scripts are uploaded using ASCII transfer mode in your FTP client, and they must be placed in the /public_html/cgi-bin/ folder to be called from other scripts.
Your script should also have the permissions set to 755.
The path to the script on our Linux servers would be:
(Change username to your Lunarpages username.)
The path to Perl in the first line should be:
What is CGI?
CGI stands for Common Gateway Interface. It's used to provide interactivity and turn static pages into dynamic ones. For example, forums where posts are entered and replied to, guest books with entries, content management systems (CMS) which pull content in from other sites, etc.
CGI scripts are usually fairly easy to install. Most come with instructions to follow. Follow the instructions, be sure the path to perl is set to #/usr/bin/perl in it, upload it in ASCII mode (some files may need binary mode such as graphics), and set your permissions correctly per the instructions. Usually they will be set to 755. If your script needs a hostname, try localhost.
Are there any limits for CGI?
We don't have a limit on how many you can install. There are some scripts that we do not allow. In general, you are free to install scripts as long as they do not use too many server resources, cause the server to become unstable, create a security breach, harm the server or other users, etc.
You can check our forums to see if a script is allowed and view discussions on the subject. It is possible that a script that was previously allowed is now banned due to recent information on vulnerabilities or changes to the script.
Want to read this in another language?