Seem Internet Solutions Bargain Domain Name Registration and NT Web Hosting Packages

UK and US Domain Names Registrar and NT Web Hosting Packages
WorldPay Secure Shopping

See What Domain Names Registrations and Hosting Packages are in your Shopping CartView Cart

Domains Hosting FAQ / Support
Control Panels Dial Up Access Contact


UNIX Scripting Frequently Asked Questions

Email

Uploading CGI Scripts?
Setting File Permissions for CGI scripts?
Setting CGI scripts Paths and Variables?
Using PHP scripting?

Back to Support Index

UNIX Scripting Frequently Asked Questions

Uploading CGI Scripts?
To upload a script, login to your virtual server using FTP.  Once logged in go to the directory where you want to upload your cgi script to, this is usually /web/cgi-bin.  Make sure that your FTP client is set to ASCII mode (if you upload in binary mode then your script will not work), upload your cgi script ensuring that it has a .cgi or .pl extension    ...top

 

Setting File Permissions for CGI scripts?
To make a script work then you must make the script executable, you do this by setting the permissions on the script.  A cgi script should be given the following permissions:-

chmod 700 or owner=read/write/execute, group=nothing, world=nothing

 ....top

 

Setting CGI scripts Paths and Variables?
Variables and paths are the parts of the script that you must configure so that the script knows where data and programs can be found. Absolute and URLs will most likely be used in cgi scripts and if so you need to know where they are.

The main paths are as follows:

> PERL - /usr/bin/perl
> PERL 5 - /usr/bin/perl
> Sendmail - /usr/sbin/sendmail
> Date Program - /bin/date

The first line of all PERL scripts must be :

#!usr/bin/perl

An absolute path is a path to a certain file or directory on the server.  For example you might want to set a variable ($links) to the absolute path to your links.pl file.  When configured properly the link should look like:

$links="/home/www.yourdomain.co.uk/web/cgi-bin/links.pl";

The script may also ask for the URL to this file (links.pl). If the variable were $links then set it as follows:

$linksurl="http://www.yourdomain.co.uk/cgi-bin/links.pl";

Scripts obtained from free archives will almost always require the variables to be defined as we have done above.  This is the most common source of problems with scripts not working properly so make sure your variables are set correctly.

...top

 

Using PHP scripting?
PHP Version 3 is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and PERL with a couple of unique PHP-specific features thrown in The goal of the language is to allow web developers to write dynamically generated pages quickly. All our hosting packages have PHP configured by default.

To use PHP simply end your filename in .php3. Our servers will parse the code and dynamically generate the html to return to the client's browser.

Please note that we only make PHP available on our servers. We cannot support development related PHP scripting and development issues.

Further information on PHP can be found at http://ww.php.net

...top

Back to Support Index


UNIX Scripting Frequently Asked Questions

© 2008 Seem Internet Solutions Limited All rights reserved.
View our Privacy Policy - More Info About Us - Customers Comments - Vat Number 859720389