Web hosting in Greece by IP.GR Register greek domain by IP.GR
Home | My Account | Web hosting | .gr .eu .com Domains | Support | Contact | Whois    Greek version English version
    

CGI Scripts

All CGI scripts must be placed in the directory public_html/cgi-bin.

Upload CGI scripts

When you upload through FTP, it is very important to "upload" script files (e.g. .cgi and .pl) in ASCII mode. FTP clients will give you the option to "upload" in ASCII, binary, or "auto." If "auto" is selected, then make sure .cgi and .pl are considered ASCII files.

ATTENTION! Scripts will not be executed properly if they are uploaded in binary mode.

Paths

Path to perl: /usr/bin/perl
Path to sendmail: /usr/sbin/sendmail

CGI URL: http://www.yourdomain.com/cgi-bin/script.cgi
Subdomain CGI URL: http://subdomain.yourdomain.com/cgi-bin/script.cgi

Path to cgi-bin: /home/username/domains/domain.com/public_html/cgi-bin
Path to cgi-bin (subdomain):
/home/username/domains/domain.com/public_html/subdomain/cgi-bin

Permissions

File permissions define who can read, write, and execute files such as scripts. When the installation instructions ask you to CHMOD a file, you are being asked to set file permissions. File permissions can be modified by FTP clients or through the control panel.

Some common permission levels for files are:

600 Makes a file inaccessible
644 Readable by everyone.
666 File can be read and modified by everyone.
755 File can be read and executed by everyone.
777 Writable and executable by everyone

Most CGI scripts need to be set to 755.

PHP scripts

PHP scripts are fully supported. PHP scripts may be placed and executed in any folder within your public_html directory.


<< E-mail

MySql >>

Internet Promotions | Terms of services | Sitemap | Contact | Email
 
The logos Internet Promotions and ip are registered trademarks of Internet Promotions
IP.GR web hosting and domain registration services in Greece