[main page] [Part
I] [Part II] [Part III] [Part Win NT]
PART II: LINUX
Account
General Account Information
FTP
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
following areas:
Profile Name: This is any name you wish to
identify your ftp information.
Host Name: Your IP
address
Host Type: Automatic
Detect
User ID: Your login
name
Password: Password
(BE SURE to put a check in the Save Password box)
The remaining
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
a directory.
- The 'RmDir' button removes
a directory.
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 : myself@mydomain.com
All email addressed to @mydomain ie. sales@mydomain.com, doyok@mydomain.com, etc
will be directed to main email address (myself@mydomain.com).
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)
Account_name@Domain_name:
myself%mydomain.com@mydomain.com
Incoming mail server: mydomain.co.id
Outgoing (SMTP) server:
mail.yourdomain.com or your
ISP's SMTP server.
Password: Your
Password
If you entitle to more than 1 POP account,
You can always add your POP account later on from your control panel.
EMAIL REDIRECT
All email that sent to redirect address
(user@domain.com) will be automatically fowarded to your POP email account.
AUTORESPONDERS
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.
Forms
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
address.
<form
action="/cgi-bin/fmail.pl" method="POST">
<input type="hidden" name="recipient" value="email address to
receive form info">
<input type="hidden" name="subject" value="Name of form-Order
Form">
<input type="hidden" name="thankurl"
value="http://yourdomain.co.id/thankyou.htm">
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
e-mail.
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
working.
Also, the place in your HTML code where you
ask the visitor for their e-mail address change the coding to reflect something like
this:
<input type=text
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
your form.
Please note that if you DO NOT want to use the "thankyou.htm" you can
specify:
<input type="hidden"
name="thankurl" value="no">
(this will display a default 'thankyou' page
for you, saves some HTML coding)
Counter
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:
<img
src="/cgi-bin/Count.cgi?ft=5|dd=C|frgb=255;255;255;&df=your_name.dat">
(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
counter)
- 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)
Related Resource:
http://www.counterguide.com
Tips for CGI
Installations
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
: /home/userid/htdocs/yourfiles.ext
- Cgi-bin directory
: /home/userid/cgi-bin/yourfiles.ext
- Sendmail : /bin/sendmail
OR /usr/sbin/sendmail
- Date
: /bin/date
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
script :
- 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
the coding.
- 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
script).
- 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
parameters!
- 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!)
Related Resource:
Good Tutorial: CGI and Perl
http://www.perl.com
http://www.worldwidemart.com/scripts
Telnet Access
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
MySQL
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
command.
<?
$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");
Your SQL
QUERY HERE
?>
PHP4
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
Zip/Unzip Files
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.
TAR Files
to unzip .tar extention, simply type:
tar -xvf filename.tar
Miva Empressa
Contact support to activate Miva
Empressa, detail information how to use Miva script,
visit Miva
Empressa documentation.
CGI Script
Resources
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.
Paths
to Date, Mail, Perl, etc. (Advanced Users)
CGI scripts often require paths to common server resources. These paths are as
follows:
(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
: /home/userid/htdocs/yourfiles.ext
- Cgi-bin directory
: /home/userid/cgi-bin/yourfiles.ext
- Sendmail
: /bin/sendmail OR /usr/sbin/sendmail
- Date
: /bin/date
Setting
Permissions (Advanced
Users)
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:
cd directoryname
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
information.
Examples
of using chmod:
PEOPLE |
PERMISSIONS |
| 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
you've given:
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:
-rwxr-xr-x
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
people.
Remember: the first 3 apply to user, the second 3 apply to group, and the
third 3 apply to others.
OTHER QUESTION:
If you have any questions regarding your
server configuration, please contact support. |