FAQ: Browse database
 
Displaying entries 1-9 of 9

IDTopic IDQuestionAnswer
1  cgi  What is a CGI-script  Just so you know what you're actually dealing with, a brief introduction of what a CGI-script actually is, might be a good place to start. First of all, CGI is not a programming language. CGI is short for Common Gateway Interface, and it's a way for programs and scripts on the web-server to communicate with the web-browser (easily explained).

Usually a CGI-script is made with Perl, which is an interpreted scripting language, very common on the UNIX operation system. However, CGI-scripts may be written in any language, C++ for example (but then it should be called a CGI-program, because it's compiled and no longer a script).

We'll deal with CGI-scripts made with Perl (which is the most common use). Such a script is simply just a text file with a filename ending with ".cgi".

An important aspect to remember is that CGI-scripts are server side scripts, meaning the scripts are executed on the server and only the results (the output) of the script is shown in the browser. Compared it to JavaScript, where the actual script is downloaded within an HTML page and executed in the browser (client side script).  
2  cgi  Hosting requirements  The first thing to check when you're thinking about using a CGI-script on your homepage, is to make sure your web host company support CGI-scripts and that you have permission to use them. If you've noticed a directory called cgi-bin when you're uploading your HTML files, then you most certainly are able to use CGI-scripts.

You also need some more basic things like a text-editor to edit the script (notepad is fine) and a FTP program.  
3  cgi  How to upload scripts  Upload scripts files with FTP client program in ASCII (TEXT) mode.
Then set following permissions:
777 - directories
755 - *.cgi
666 - data/*.*
666 - template.en/*.*
644 - *.en;*.set;*.pl;*.pm 
4  cgi  I get 403 Permission Denied error  Error 403 is a sure thing; it's because you forgot to change the file permissions of the script. Set all .cgi files to chmod 755 to be sure. 
5  cgi  I get 404 File Not Found error  You simply entered the wrong URL. The actual file (i.e. the script) was not found. This is the same error you get when you click on broken links. 
6  cgi  I get 500 Internal Server Error  Messages reporting 'Error 500' or 'internal server error' can be caused by a number of possible problems. This section briefly lists and explains some of the commonest causes of such errors.
1) Script uploaded in BINARY (not ascii) mode.
When uploading CGI-scripts, you must use ASCII mode (not binary). This is because UNIX and Windows use different line-breaks.

2) Execute permissions not set correctly.
For a script to run, the permissions bits must be set to allow it to be executed. If your server runs as nobody, you'll need to make your script world-executable with:

chmod a+x MyScript.pl

If the server runs scripts using your own UID, you can get away with

chmod u+x MyScript.pl

3) Bad interpreter line
A Perl script should begin with a line that identifies the Perl interpreter on the local system, e.g.
#!/usr/bin/perl

If the line doesn't give the path of a valid Perl interpreter, an error will be generated. You can usually find out the path to the interpreter by using Unix command:
which perl

The interpreter line must be the first line of the script, and must begin with '#!'. 
8  cgi  Script text displayed instead of executing  The most likely reason for this is that you've installed the script in the wrong place, or given it the wrong name. Most servers are set up to execute only scripts placed in certain directories, or, more rarely, with certain suffixes (e.g. '.cgi'). If you put a script in the wrong directory, it won't be executed, and the text of the script will be returned as an ordinary text file. 
9  easydata  Is is possible to cutomize the look of EasyData? We would like to apply our corporate colors and change font.
 
Yes, it is possible.
We recommand to make a copy of template file "easydata.htm", then make modifications of CSS (Cascade Style Sheet) in a copy, then in table parameters select created replacement for template "easydata.htm" (parameter "Main output template").
It possible, of course, apply modifications to file "easydata.htm", but in this case modifications will affect other tables and design of admin's interface will be affected too.
 
10  atomicdesk  We configured AtomicDesk to download mail from our pop3 account: added new "POP3 gateway accounts" record, set "Maintenance interval" to 600.
But the mailbox is never emtied, so we guess some error happens.
Can you assist? 
If any error happens during downloading of messages from POP3, it is logged to "logs/error.log" file. Please download this file and check it for errors relevant to your POP3 server.