[main page] [Part
I] [Part II] [Part III] [Part Win NT]
PART II: LINUX
General Account Information
FTP (File Transfer Protocol)
is used for transferring files (HTML pages, graphics, etc.) to/from your server. We
suggest using programs specifically designed for FTP'ing (transferring) your files.
For Windows(tm), we suggest the following
ftp program: WS_FTP from Ipswitch, Inc. You can get a shareware (evaluation) copy
of WS_FTP from: ftp://ftp1.ipswitch.com/pub/win32/ws_ftple.exe
For Macintosh(tm), we suggest the following
ftp program: FETCH
You can get a copy of FETCH from: http://www.dartmouth.edu/pages/softdev/fetch.html
Logging in with FTP
Based on the assumption you
are FTP'ing with WS_FTP (as recommended above) the following section will give you a basic
run-down on how to configure and use WS_FTP for transferring files.
- You will need your initial e-mail from us
about your NEW SERVER INFORMATION.
- You will need to start up WS_FTP. You should
first be prompted with a "Session" dialog box.
You will start configuring WS_FTP in the
Profile Name: This is any name you wish to
identify your ftp information.
Host Name: Your IP
Host Type: Automatic
User ID: Your login
(BE SURE to put a check in the Save Password box)
entries should remain empty.
Click the "OK"
button and WS_FTP should start logging you into your FTP site. If there are any login
error messages, please check every input (please note that the password is CASE sensitive,
we suggest that you cut-n-paste your password DIRECTLY into the WS_FTP password area).
Once you have correctly
ftp'd to your server. You will see your server directories in the right side window.
Please put all your accessible files ie. html and graphics in htdocs
directory and scripts in cgi-bin directory.
When setting up your HTML
files, BE SURE name your homepage (your main page) - 'index.htm' (or .html). Files are
case sensitive. If you document says MYFILE.HTM then your file must be saved as MYFILE.HTM
not myfile.htm. Any subdirectories you would like to create may be created.
- The 'MkDir' button creates
- The 'RmDir' button removes
Remember to transfer your
text base files (html, script, etc) in ASCII and your non-text base files (gif, jpg, etc)
in Binary mode.
POP3 Email Account
If your user name is "myself", and
your domain name is "mydomain.com"
Your main email address will be : email@example.com
All email addressed to @mydomain ie. firstname.lastname@example.org, email@example.com, etc
will be directed to main email address (firstname.lastname@example.org).
Here's how to access your mailbox from your
email client software:
Account name: myself%mydomain.com
Some email client
software require account name and domain name in 1 field (ie. Eudora)
Incoming mail server: mydomain.co.id
Outgoing (SMTP) server:
mail.yourdomain.com or your
ISP's SMTP server.
If you entitle to more than 1 POP account,
You can always add your POP account later on from your control panel.
All email that sent to redirect address
(email@example.com) will be automatically fowarded to your POP email account.
When someone send email to your email
address, autoresponder will automatically send autoreply to the sender. You can customize
this message message.
If you need additional
POP3/Redirect/AutoResponder email account,
please contact support if you need autoresponder
feature, do not forget to include your domain name.
Your server is
pre-configured with a 'fmail.pl' (form mail) script. This script is designed to process
any forms that you write for your site. No knowledge of CGI is necessary to implement a
working form on your website.
Add the following 4 lines to
your form document and your form will send the information to the specified e-mail
<input type="hidden" name="recipient" value="email address to
receive form info">
<input type="hidden" name="subject" value="Name of form-Order
<input type="hidden" name="thankurl"
Note: Do not alter any word above, only
change the values.
The above 4 lines need to
be placed at the beginning of your HTML coding that starts the forms. The above 4 lines
declare that the forms in your HTML page will be processed by the fmail.pl script in your
CGI-BIN (Line 1).
Then, the 2nd line tell
the form script to send the completed forms to the specified recipient (your e-mail
address of whomever's you set it for).
The 3rd line tells the
form script to place the declared subject line into the form sent to the recipient via
The 4th line tells the
form script to send the visitor filling out the form to a page thanking them for filling
out the form. These are the only codes you need to interface with to get the forms
Also, the place in your HTML code where you
ask the visitor for their e-mail address change the coding to reflect something like
name="username">What is your e-mail address?
The key parameter is the
name="username". This will take the e-mail address from the form and place it
into the e-mail form that is sent to the recipient (declared in Line 2 of the form
coding). This is a must. Otherwise, the form won't work.
Don't forget to create a 'thankyou' page for
Please note that if you DO NOT want to use the "thankyou.htm" you can
(this will display a default 'thankyou' page
for you, saves some HTML coding)
Your server is already configured for the
placement of standard hit counters. A counter may be added to your page by including the
following line in your html document:
(replace the your_name with your server
login or something similar)
For additional counters (on other pages) simply add your_name1, 2, 3, etc... You can
modify the look of your counter by changing the following values :
- ft = x - ('x' equals the size of frame around
- dd = A,B,C,D, or E - (you can try different
ones, 5 different counter digits have been pre-installed for you (A,B,C,D,E)
- frgb= xxx;xxx;xxx; - (color codes for frame)
Tips for CGI
When installing your own CGI
scripts, you will, most likely, need to modify some of the script's parameters. In most
scripts the parameters to modify will be located at the top of the actual script file
after any instructions or headers (most are clearly marked and have concise instructions
in the comments for modifying the parameter, rule of thumb, though, READ THE INSTRUCTIONS
before modifying a script!).
Some common path :
- The first line of your script must be
: #!/bin/perl OR #!/usr/bin/perl
- Document directory
- Cgi-bin directory
- Sendmail : /bin/sendmail
If you need any specific paths that is
required by the script, feel free to e-mail: support
and we will do the best we can to help you track down the path for your script.
Things to do before you installing the
- Read the documentation for the script you are
trying to install!
- If you don't find any documentation WITH the
script, check inside the script ITSELF, some scripts have the instructions written in with
- If you can't find any help, contact the
author of the script (most scripts have the author's information in the header of the
- Make sure you have properly set any
permissions for the file (most scripts require CHMOD 755, or read-execute permission to
properly execute on the server).
- Make sure you have properly set all paths and
- Make sure (if it's a Perl script) you
transferred it as an ASCII file (Perl scripts are text files [ASCII] not binary files like
some compiled CGI scripts!)
Good Tutorial: CGI and Perl
Your Telnet account is setup automatically for you when you open your account. Each User
ID has its own Telnet account. Each Telnet account has its own Home Directory,
but will share the same www Directories and FTP Directories.
Telnet is much like a DOS program in both
use and appearance, requiring specific typewritten commands. There are "power"
uses for Telnet, but only Advanced Users will be able to understand or implement them. The
novice user will probably not need to use Telnet very much or very often, but some basic
knowledge of it will be useful.
SSH & SFTP (Secure
Telnet and Secure FTP)
You can use SSH - Secure Telnet (recommended),
please download Freeware SSH from OpenSSH
Windows OS: http://www.openssh.org/windows.html
Linux OS: http://www.openssh.org/unix.html
we do not give a tutorial to use MySQL,
please visit the official document and tutorial at http://www.mysql.com
MS SQL Server
to connect MSSQL Server from Linux using PHP, use the following PHP
$hostname = "sqlserver IP";
$username = "your-username";
$password = "your-passowrd";
$dbName = "your-databasename";
MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO RESPOND.");
mssql_select_db($dbName) or DIE("Table unavailable");
PHP4 is a 3rd party scripting engine. Please
Note: We do not provide support for PHP4. We have added it for users that
our already familiar with it. To use PHP4 on your domain just end the php pagewith
.php rather than .html.
Visit the official document and tutorial at http://www.php.net
This Unix program is compatible with the zip program for DOS and Windows. To zip files,
first have the files uploaded to your server, then log into your account with Telnet.
Navigate to the directory where the files are that you want to zip.
(for instance by typing cd htdocs then cd sounds).
Then type: zip myzip file1 file2 file3
This puts the files "file1", "file2", and "file3" into a new
zip archive called "myzip.zip".
On the other hand, if you had the archive"myzip.zip" and wanted to get back the
files, you would type: unzip myzip
Typing zip or unzip by itself will give
you a usage summary, showing nearly all the options available.
to unzip .tar extention, simply type:
tar -xvf filename.tar
Contact support to activate Miva
Empressa, detail information how to use Miva script,
There are many good resources for CGI scripts found on the web. The scripts at Matt's
Script Archive found at http://www.worldwidemart.com/scripts are very good. Many of our
scripts come from there. Unless you are an expert on the subject, you should look for
scripts that are very well documented and come with step-by-step instructions. You
may contact us for help or installation if you like.
to Date, Mail, Perl, etc. (Advanced Users)
CGI scripts often require paths to common server resources. These paths are as
(puts you in your web directory) (puts you in your cgi-bin)
- The first line of your script must be
: #!/bin/perl OR #!/usr/bin/perl
- Document directory
- Cgi-bin directory
: /bin/sendmail OR /usr/sbin/sendmail
The following is a simple explanation of file permissions in Unix. To list the access
permissions of a file or directory, telnet to your server, then type:
to change the directory until you are either in the directory above the file you are
interested in, or above the directory you are checking.
Type: ls -l filename
and you will see what the current permission settings are for that file, along with other
of using chmod:
|u = the file's user (you)
||r = read access
|g = the file's group
||x = execute access
|o = others
||w = write access
|a = the user, the group, and others
To change permissions for a
file named filename.cgi, you need to chmod the file (change mode). For example,
when you type this:
chmod u=rwx,g=rx,o=rx filename.cgi
read, execute, and write access to the user (that's you)
read and execute access to the group and
read and execute access to others
Some scripts will tell you to chmod
775 (for example). Doing the above is the same thing as typing chmod 775. You can use
either method with our Unix servers. Let me explain:
When using the numeric system, the
code for permissions is as follows:
r = 4 w = 2 x = 1 rwx = 7
The first 7 of our chmod775 tells Unix to change the user's permissions to
rxw (because r=4 + w=2 + x=1 adds up to 7.
The second 7 applies to the group, and the last number 5, refers to others (4+1=5).
When doing an ls -l on the file,
telnet always shows the permissions this way:
Ignore the first dash, then break up the above into three groups of letters. If there's a
dash where a letter should be, it means that there is no permission for those
Remember: the first 3 apply to user, the second 3 apply to group, and the
third 3 apply to others.
If you have any questions regarding your
server configuration, please contact support.