RadianT tutorials, tips and tricks

Server control panels

Posted on 2007-Oct-24 at 04:20 in Web servers

Most web servers are nowadays equipped with a control panel which makes the life of any webmaster a lot easier. The most popular control panels are Ensim, Plesk and Cpanel. The control panel controls domain creation, domain updating, DNS binding, FTP server configuration, Web server configuration, MySQL or other db configuration and maintenance, and a lot more.

ENSIM

Sophisticated software that transforms a server into a professional Webhosting business. Available for both Linux and Windows, Ensim Pro hosting
automation software includes all the tools and features service providers need to build professional hosting plans for their shared, reseller and small
business customers.

Ensim Pro

Ensim Webppliance for Linux

Ensim Pro for Windows

Ensim Pro datasheet for Linux (PDF)

Ensim Pro datasheet for Windows (PDF)

Ensim DNS Config Guide (PDF)

Ensim VPS

PLESK

Comprehensive server management to manage thousands of virtual hosts on a single machine. Server management, domain management, reseller management, service plans, and more all available via a web browser interface.

Plesk 7.5 Reloaded for Linux/Unix

Plesk 7 for Windows

Plesk Expand is an add-on to Plesk 7 that combines multiple Plesk 7 servers into an integrated hosting platform.

CPANEL

cPanel & WebHost Manager (WHM) is a web server control panel system. cPanel & WHM include an easy to use web based interface (GUI). WHM allows you to administering individual accounts, reseller accounts & performing basic system and control panel maintenance via a secure interface. cPanel is designed for the end users of your system and allows them to control everything from adding / removing email accounts to administering MySQL databases.

cPanel homepage

cPanel forum

cPanel documentation

WHM documentation

cPanel installation guide

cPanel modules How-to

DNS clustering quick-start guide

Using remote access keys PERL

Using remote access keys PHP


DNS registration

Posted on 2007-Sep-7 at 05:23 in Web servers

What is DNS?

The Domain Name System (DNS) is a distributed Internet directory service. DNS is used to translate domain names into IP addresses, and to control Internet e-mail delivery. The DNS directory service consists of DNS data, DNS servers, and Internet protocols for fetching data from the servers. The billions of resource records in the DNS directory are split into millions of files called zones. Zones are kept on authoritative servers distributed all over the Internet, which answer queries according to the DNS network protocols. In contrast, caching servers simply query the authoritative servers and cache any replies. Most servers are authoritative for some zones and perform a caching function for all other DNS information. Most DNS servers are authoritative for just a few zones, but larger servers are authoritative for thousands of zones.

Since most servers are Unix machines, the most used program is BIND (Berkeley Internet Name Domain). BIND 9.2.1 is the latest release of BIND. DNS software is made up of two components the name server and a resolver. The name server responds to browser requests by supplying name-to-address conversions. When it doesn't know the address, the resolver will ask another name server for the information.

How does DNS work?

At the top of the DNS database tree are root name servers, which contain pointers to master name servers for each of the top-level domains (.com, .net, etc.). For example, to find out the numeric IP address of www.simplythebest.net, a DNS server would ask the root name server for the address of the master name server for the .net domain. The master name servers for each of the top-level domains contain a record and name-server address of each domain name. So the DNS server asks the .net server for the name of the server that handles the simplythebest.net domain. The individual name server for each domain name contains detailed address information for the hosts in that domain. So the DNS server asks the simplythebest.net server for the name of the server that handles the simplythebest.net domain. Finally this name server supplies the DNS server with the IP address of the machine called www.domain.com.

When you type in a URL, your browser sends a request to the closest name server. If that server has ever received a request for the same host name (within a time period set by the administrator to prevent passing old information), it will locate the information in its cache and reply. If the name server is unfamiliar with the domain name, the resolver will ask a server further up the tree. If that doesn't help that server will ask yet another, until it finds a server that knows. A server that knows the address without asking another is an authoritative server. Once the address is located, it is sent back to your browser and you get to see the related web site. Read more about the Domain Name System.

Setting up a DNS server

There are two ways to configure DNS. You can use your ISP's DNS server or you set up your own DNS server. In the first case you don't have to register the name server (your ISP already did) with a domain registrar, in the latter case you will have to appoint a NS1 and NS2 name server, f.e. ns1.simplythebest.net, and ns2.simplythebest.net (a primary and a secondary name server).

In both cases, you will have to provide your domain registrar with at least two name server addresses to link to your domain. You will also have to add these DNS addresses to your TCP/IP stack on your server. If your ISP provides the DNS server you need to forward him any domain names which will reside on your server. Your ISP will then add the necessary MX records and A records to the DNS server.

MX records
If you want to receive e-mail from the Internet, you will need to have a Mail Exchange (MX) record for your domain in your ISPs or your own DNS database. An MX record has 3 parts: your domain name, the name of the machine that will accept mail for the domain, and a preference value. The preference value lets you build in a priority level, f.e. simply.net mail.simply.net 0. You can set multiple MX records, and the mail server will attempt the one with the lowest preference value first, and if it fails try the next, and so forth.

A records
A records associate IP addresses with computer names. For example, an A record links the name 'yourdomain.com' to the IP address of your Web server.

CNAME records
DNS allows machines to have a true (canonical name), as well as an unlimited number of aliases. The CNAME record takes care of aliases. CNAME records can be useful when you want a subdomain to point to a computer outside of your domain.

DNS resources

 

How to untar Unix/Linux files

Posted on 2007-Sep-7 at 05:08 in Web servers

How to untar a Unix / Linux file

Unzipping files is an important part of downloading Linux files from the Internet. In Linux a majority of the files that are downloaded are in tgz format (a gnu zipped tar file), although there are other common extensions, as shown here:

[filename].tgz
[filename].tar
[filename].tar.gz
[filename].tar.z
[filename].z

Extraction

First you upload the .tgz, .tar .tar.gz or .tar.z file to the directory on your web server designated for public Internet use. Typically this directory is named 'www', 'htdocs' or 'web'. The file should be uploaded in BINARY format using any FTP program.

Once the installation file has been uploaded, connect to your web server using a terminal emulation program. Two of the most popular of these programs are SSH and Telnet. Enter your username and password when prompted, then change to the directory on your web server designated for Internet use. If this directory is named 'www', you should type the following command at the prompt:

cd /usr/dom/www
or cd /home/sites/me/web

Always start from the root directory (/).

With files that have the .tgz, tar.gz, or tar.z extension use this command:

tar -zxvf [filename with all extensions]

Example: tar -zxvf yourfile.tar.gz

This will extract the file for you in the directory you are currently in. Using the above command will save you from having to redirect the output for gzip or anything else (because the z option automatically decompresses the file for you), otherwise without the z argument, you would have to do a command like this:

uncompress [filename with all extensions]

tar -xvf [filename with only tar extension]

Other ways to decompress files are to use:

gunzip [filename with .gz extension] - f.e. gunzip yourfile.gz

zcat [filename with .gz extension] - f.e. zcat yourfile.gz

uncompress [filename with .z extension] - f.e. uncompress yourfile.z

Not all Unix systems extract archive files with all the necessary permissions intact, therefore you should set the proper permissions on the program as required.

Using Telnet type the following at the prompt:

chmod -R 777 "directoryname"
cd "directoryname"
chmod 755 cgi-bin
cd cgi-bin
chmod 755 *.cgi
chmod 755 *.pl

You can also use most FTP clients to change the file attributes. 777 (RWX-RWX-RWX) and 755 (RWX-RX-RX) are the most widely used attributes for files relating to running most CGI scripts on a server.

 


RadianT's blog offers informational items, such as tips and tricks on many computer related subjects.

Links

- Home
- Archives
- RSS Feed