What exactly is CGI? |
| CGI
stands for Common Gateway Interface. However, the
majority of CGI scripts are written in Perl. Having
CGI will enable you to create forms, guest books...
giving your website some interactivity. |
What do I need to run CGI scripts? |
| You
need to create a directory in your web space called
cgi-bin with permissions 755. When working on CGI
use ASCII mode, otherwise scripts will not work.
|
What do I need to know when installing
CGI Scripts? |
- Using
a text editor (such as Notepad):
CGI scripts are written in ASCII format, and
can be opened and viewed using any text editor.
In order to install a CGI script, you'll need
to configure it & you will need to use Notepad
or another text editor.
- The
path to the Perl on your hosting space.
When you open the script you will see at the
top a path that would look like this: #!/usr/bin/perl
, you need to make sure it matches to your exact
Perl path. This can be different depending on
the server.
|
Uploading the script: |
- Always
upload CGI scripts in ASCII mode (Not binary)
- After
uploading the script, set it's permission The
most common permission settings are chmod 755,
and chmod 777
|
| Right
click on the file that you wish to change permissions.
Then select chmod (UNIX) and you will see a box
with 9 tick boxes. Tick the relevent boxes and click
OK. |
|
|
| chmod
755 |
 |
| chmod
777 |
|

|
| chmod
776 gives read, write
execute to owner and group, but only read and write
to others. |
| chmod
774 gives read, write
execute to owner and group, but only read to others. |
| chmod
770 gives read, write
execute to owner and group only. |
| chmod
677 gives read and write
access to owner and full access to group and others. |
| chmod
676 gives read and write
access to owner and others, and full access to group. |
| chmod
666 gives read and write
permission to all, but execute to none. |
Where can I find free cgi scripts? |
| The
best place to find free cgi scripts is Cgi-resources.com |
|
What
Paths do I need when configuring my scripts? |
|
Path
to Perl: |
|
/usr/bin/perl
|
|
Path
to PHP: |
|
/usr/bin/php
|
|
Path
to Sendmail: |
|
/usr/sbin/sendmail
|
|
Path
to Date: |
|
/bin/date
|
|
Full
path to your domain: |
|
/home/yourusername/public_html
|
|
500
Internal Server Error:
The most common cause for this type of problem is
incorrect settings on a cgi script or a file that
the script needs to work with. Settings for most
cgi-scripts are 755, but please consult your scripts
readme file for more details. We do offer cgi scrip
installations, please contact sales@pickaweb.co.uk
for a quotation. |