Archive for the ‘Server Hosting’ Category

Install RKHunter Cronjob

Saturday, June 7th, 2008

How to setup a daily scan report?

# vi /etc/cron.daily/rkhunter.sh

#!/bin/bash
(/usr/local/bin/rkhunter -c –cronjob 2>&1 | mail -s “Daily Rkhunter Scan Report” email@domain.com)

#chmod x /e
#chmod x /etc/cron.daily/rkhunter.sh

#rkhunter –update

How to select Domain Name?

Tuesday, March 11th, 2008

Domain Name:Domain name represents the unique name of your website in the World Wide Web(WWW).

A right domain name is one of the important part of success for your online business project. As well as domain name can become a premium investment of your business because as far as you promote your website domain name cost is increasing. We are talking not about the cost of the domain name registration, but the value of domain name .

There are many tips that we would like to mention, that can help you to choose and register a domain name:-

1) You must select the domain name which can be easily recognize and it should be related to your business, products or services you provide, thus it must be descriptive and be a branded name.

2) It should be easy to remember and easy to spell.

3) Good domain name must be short.

4) You must select the domain name which can be understandable to the visitors from all around the world.

5) You must avoid numbers in the domain name, the domain name should be consist of alphabets only. The exception can be the numbers that can be substituted by the words, for example 2 is often used for to, 4 – for, etc

6) Hyphens also make the domain difficult to remember.

7) Very often used domains are generic top level domains like: com, net, org, biz, info. In the past time each domain name extension was used for specific areas, for example com is often used for commercial organizations, now the usage of this domain name is unrestricted, net – originally for network infrastructures, now unrestricted, org – organization, biz – business, info- for informational websites, but unrestricted.
As the Internet developed, domains with .com extension has become one of the most popular and widely used. Nowadays in .com zone there are more than 62 millions of the domains registered, while the number of .net domain names compiles 9,1 million of domain names.

8) If you have decided to register international .com domain it is recommend that you consider the registration of your domain name in the other domain zones.
Registering multiple domain names extensions will allow you to keep your domain name safe from your competitors that can register your domain name in another zone and can help you to avoid long court procedures while resolving domain name disputes.

9) To market services and products accordingly and to use different strategies for search engine optimization and targeting

10) You can set another domain name extensions to point to your website and following it you can drive more and more traffic to it.

11) If in case your domain name can be misspelled or one can make any mistakes while typing it in an address bar, so it is also recommended you to register all the spelling options of your domain name.

Note:
It is very important to choose the right name for your domain name once and for all. Please remember that once registered domain name cannot be changed again as when you change even a latter in it this will result in a totally new domain name that should be registered as well.

Microsoft SilverLight

Thursday, January 24th, 2008

Microsoft Silver Light is a browser infix (plug-in) technology for providing easy platform with synergistic change for the web applications. Microsoft Silver Light is developed with many qualities like audio-video playback ,animation , and vector graphics- quality that characterize a good internet application.

Silver light competes with softwares like Adobe Shockwave,Adobe Flash ,Apple QuickTime , and Java FX. Silver light enables the creation of rich, visually stunning and interactive content and applications that run on multiple browsers and operating systems. It was developed under the codename Windows Presentation Foundation/Everywhere (WPF/E). Silver light is congenial with multiple web browser products used on Microsoft Windows and Mac OS X Operating Systems.

It is liberately or freely available for all platforms and browsers supported.It allow Windows Media Audio and Video (WMA, WMV7–9) and VC-1, It also supports MP3 audio. Silver light is extremely fast - for example: you can play more than one videos at the same time without stuttering or dropping frames.

By using Microsoft Expression Studio and Microsoft Visual Studio, designers and developers can collaborate more effectively.

Dedicated Servers and Virtual Private Servers : IP Address Allocation Policies

Wednesday, January 23rd, 2008

IP address provided allocation policies are managed by ARIN (American Registry for Internet Numbers). ARIN Policies include justification of IP usage provided to you. In case of not providing IP justification to ARIN will end in not providing us with new IP address blocks. ARIN has full rights to verify the usage of the IP and which should be verified.

Quote:
From ARIN’s policies : ISPs must have efficiently utilized all previous allocations and at least 80% of their most recent allocation in order to receive additional space. When an ISP submits a request for IP address space to be used for IP-based web hosting, it will supply its technical justification for this practice.

In order to match the requirements of ARIN policies and to avoid delay in allocation of IP. We normally ask you to provide us with IP justifications for each IP address that will be assigned to you.

You will require to provide us upto-to-date information on IP allocations. For e.g.

Duration IPs Required Justification
1 Month 8 …..
3 Months 8 …..
6 Months 8 …..
12 Months 8 …..

The first IPs assigned to your dedicated server should be justified by the domain name you will utilize on the server. If you do not have a domain name, you can provide us a sub-domain name as a alternative. This will help us identify the physical server.

The next or the following IP address can be utilized for name-based hosting to provide services to the websites hostes on a server.

Thereafter, you can request for the additional IP for other services running on the server such as SSL certifications or DNS server service required for Dedicated IP address.

Quote:
Web hosting “IP based” is not a good justification to obtain additional addresses. Web hosting should be done “named based” on only one IP address. 80% of all assigned IP addresses must be in use within 30 days following attribution.

Please make sure you utilized 80% IPs address prior to requesting additional IP addresses. All IPs must be justified with the domain names, sub-domains and services.

Perhaps, the following question will help you with the IP address Justification :

“Why don’t you use the current server Ip addresses?”

You may provide us with the answer / explanation for the same.

If your IP justifications do not meet ARIN policies, it is a possibility that the request can be denied. Following are some of the situations where the request can be denied :

Request for IP address mainly to dodge search engines for SEO ( Search Engines Optimization ) will be refused. IP request to avoid spam blacklists or sending emails with different IP address will be refused. IP-based web hosting is not adequate justification. Web hosting can only be name-based. All requests for IP addresses which do not meet the standards of the ARIN will be refused.

Domains provided in justification must be assigned to the IP address. When IP address assigned to a service, the service in question must be running on the server and corresponding port must be open.

If you are reseller, you will need to ask your clients the same question that is mentioned above and then provide us with a explaination. We only provide one IP address at the server setup. In order to avail the rest 7 default IPs, you will need to inform our dedicated server department.

Lastly, please make sure you have utilized atleast 80% of the IPs within 30 days. For any further information, please feel free to contact our dedicated server department.

RPM (Red Hat Package Manager) and Its Distribution

Tuesday, October 16th, 2007

RPM refers to Red Hat Package Manager. It was originally developed by Red Hat which was thereafter used by different Linux distributions.

When making use of RPM, we can install / uninstall or Upgrade easily. It also manages the package / Versions and installed files on the system. It can optimize according to the requirements. RPM has applications that are required to run the softwares.

Some of the acronyms that are used are :

FC : Fedora Core
EL : Red Hat Enterprise Linux
Yd : Yellow Dog
CL : Conectiva Linux (now merged with Mandrake)
ASP : ASP Linux

Some of the architectures that are used are :

i386 : Intel 386
i486 : Intel 486
i586 : Intel 586
i686 : Intel 686
x86_64 : AMD 64 bits processors (AMD 64, Opteron)
ppc : Power PC
noarch : Platform-independent package

Domain Template Creation in Plesk Control Panel

Thursday, October 11th, 2007

To implement a hosting plan create a domain template, and define hosting services and resource allotments in accordance with your hosting plan:

1) Click Domain Templates in the Tools group on your Home page.

2) Click Add New Domain Template.

3) Specify the template properties as follows:

a)Template name - First specify a name for this template . Because during setup of a new hosting account, you will be prompted to select the required template by its name. Therefore, it is recommended that you choose a suitable name that corresponds to one of your hosting plans or describes the amount of allotted resources. For example, Mail hosting, 2GB disk space, 800 mailboxes.

b) Mail to nonexistent users - Specify the domain-wide mail bounce options: When somebody sends an e-mail message to an e-mail address that does not exist under your domain, the mail server on your domain accepts mails, processes it, and when it finds out that there is no such a recipient under your domain, it returns the mail back to sender with the “this address no longer accepts mail” notice. You can choose to:

* If you do not like it change the default notice .

* forward undelivered mail to another e-mail address (select the Catch to address option and specify the e-mail address you need)
OR

* Reject mail without accepting it (select the Discard option). This setting can decrease mail server load caused by a large amount of spam which is often directed at randomly generated user names. However, for spammers this can somewhat speed up scanning your mail server for valid e-mail addresses.

1.1) WebMail - Specify whether the users of mailboxes in this domain should be able to read their mail through a browser based WebMail application.

1.2) Specify the number of domain aliases that can be used for this domain.

1.3) Specify the number of subdomains that can be hosted under this domain.

1.4) Specify the total amount of disk space allocated to a hosting account associated with the domain. This amount is measured in megabytes. It includes disk space occupied by all files related to this domain/web site: web site contents, databases, applications, mailboxes, log files and backup files. This is the so-called soft quota: when it is exceeded, domain names and web sites are not suspended automatically, only the appropriate notices are sent to your and your provider’s e-mail addresses and the resource overage is indicated by the icon shown in the control panel to the left of the domain name (see the list of domain names on your Home page). And then it is up to you to decide what to do with the domain:

* you can notify the domain owner and suspend the domain/web site after a grace period until you receive the payment

OR

* upgrade the hosting plan for your customer .

2a) Specify the maximum disk space amount that MySQL and Microsoft SQL Server databases respectively can occupy on a domain.

2b) Specify the amount of data in megabytes that can be transferred from the web site during a month. Once the limit is reached, the appropriate notices are sent to your provider’s e-mail addresses and the resource overage is indicated by a corresponding icon shown in the control panel to the left of the domain name (see the list of domain names on your Home page). When a web site starts attracting more visitors and requires more bandwidth, consider upgrading a hosting plan

2c) Specify the number of personal web pages that the domain owner can host for other users under his or her domain. This service is mostly used in educational institutions that host non-commercial personal pages of their students and staff. These pages usually have web addresses like http://your-domain.com/~username.

2d) Speficy the maximum number of additional Microsoft FrontPage accounts that can be created on a domain.

2e) Speficy the maximum number of additional FTP accounts that can be created on a domain.

2f) Specify the maximum number of MySQL and Microsoft SQL Server databases respectively that can be hosted on a domain.

2g) Specify the number of mailboxes that can be hosted in a domain.

2h) Specify the amount of disk space in Kb that is allocated to each mailbox in a domain.

2i) Specify the total amount of disk space available for all mailboxes on a domain.

2j) Specify the number of mail redirects that can be used in a domain.

2k) Specify the maximum number of mail groups that can be used in a domain.

2l) Specify the number of automatic responses that can be set up in a domain.

2m) Specify the number of mailing lists that the domain owner can run in a domain. To allow the use of mailing lists, you should also put a check mark into the Mailing lists check box under the Preferences group.

2n) Specify the maximum number of Tomcat Java applications and applets that the domain owner can install in a domain.

2o) Specify the maximum number of subdomains (including their parent domain) that can link to the Master SSL domain defined by the server administrator.

2p) Specify the maximum number of ODBC connections that can be set up on a domain.

2q) Specify the term for a hosting account. At the end of the term, the domain/web site will be suspended, its Web, FTP and mail services will no longer be accessible to the Internet users, and domain owner will not be able to log in to the control panel. Hosting accounts cannot be automatically renewed, therefore, in order to bring the hosted domain name/web site back to operation, you will need to manually renew the hosting account: on your Home page, click the domain name your need, click Limits, specify another term in the Validity period box, click OK, then click Switch On in the Domain group (Home > domain name).

2r) All connections to the Web server and requests for files that were not found on the server are registered in log files. These log files are analyzed by the statistical utilities running on the server, which then present graphical reports on demand. If you need to view the contents of these raw log files for debugging purposes, on your Home page, click the domain name you need, click Log Manager, and then click the log file name you need. To prevent these log files from growing too large, you should enable automatic cleanup and recycling of log files:
* select the Switch on log rotation checkbox
* specify when to recycle log files
* specify how many instances of each log file to store on the server
* specify whether they should be compressed
* specify whether they should be sent to an e-mail address after processing.
* Specify additional settings in the Preferences section.
* Mailing lists. Select this checkbox to enable the ability to create and manage mailing lists on the domain.
* Retain traffic statistics. Specify the number of months during which the bandwidth usage statistics should be kept on the server.

3.1) DNS. Specify whether the DNS server on your Web host should act as a master (primary) or slave (secondary) name server for the domain name zone. A primary name server stores locally the zone file it serves, while a secondary server only retrieves a copy of this file from the primary. You would normally leave the Master option selected.

3.2) Physical hosting account. If you are going to host not only domain names, but also web sites, select the Physical hosting checkbox and specify the hosting features:

3.3) Hard disk quota. In addition to the soft quota, you can specify the so-called hard quota that will not allow writing more files to the web space when the limit is reached. At attempt to write files, users will get “Out of disk space” error.

A) SSL support - Secure Sockets Layer encryption is generally used for protecting transfer of sensitive data during online transactions on e-commerce Web sites that run on dedicated IP addresses. SSL certificates that participate in the encryption process are usually applied to a single domain name on a single IP address, therefore, each site that needs SSL protection must be hosted on a dedicated IP address. An exception to this is subdomains, which you can protect with a wildcard certificate. Installing an SSL certificate on a Web server that hosts several web sites with different domain names on a single IP address (shared or name-based hosting) is technically possible, however, it is not recommended: the encryption will be provided, but users will get warning messages on attempt to connect to the secure site. To allow SSL encryption for Web sites, select the SSL support check box.

B) SiteBuilder support - SiteBuilder is an efficient and user-friendly WYSIWYG web site editor running through the web interface. Select the Publish site with SiteBuilder checkbox to give domain administrator the ability to access SiteBuilder and build web site through their Plesk control panel interface by clicking SiteBuilder on the domain management page or clicking the Desktop shortcut in the SiteBuilder Admin navigation pane group. The version of SiteBuilder coming in the standard Plesk distribution is fully functional and its use is not limited in any way by the manufacturer (but you can be restricted from accessing it by your service provider).

C) Blog and Photo Gallery support - Select the Create Blog and Photo Gallery subdomains checkbox if you want the subdomains blog.domainname.com and photo.subdomain.com to be automatically created.

D) Microsoft FrontPage support - Microsoft FrontPage is a popular web site authoring tool. To enable publishing and modifying the site through Microsoft FrontPage, select the Microsoft FrontPage support and Microsoft FrontPage over SSL support check boxes, and set the Remote Microsoft FrontPage authoring option to allowed.

Note:- Microsoft FrontPage over SSL support is available only when SSL support is enabled on a domain.

E) Support for programming and scripting languages widely used in development of dynamic Web sites and server-side Web applications. Specify which of the following programming and scripting languages should be interpreted, executed or otherwise processed by the web server: Active Server Pages (ASP), Active Server Pages on .NET framework (ASP.NET), Server Side Includes (SSI), PHP hypertext preprocessor (PHP), Common Gateway Interface (CGI), Perl, Python, ColdFusion and Miva scripting required for running Miva e-commerce solutions.

Note:- If ASP.NET support is enabled, ASP.NET version 2.0 is set as default. You can change the version in the corresponding drop-down menu.

If PHP support is enabled, PHP version 4 is set as default. You can change the version in the corresponding drop-down menu

1) Web statistics -This allow you to view the information on the number of people visited the site and the pages of the site they viewed, select a module in Web statistics drop-down menu and select the accessible via password protected directory /plesk-stat/ checkbox, if required. This will install the selected statistical software module, which will generate reports and place them into the password protected directory. The domain administrator will then be able to access Web statistics at the URL: https://your-domain.com/plesk-stat/ using their FTP account login and password.

2) Custom error documents - When visitors coming to site request pages that the web server cannot find, web server generates and displays a standard HTML page with an error message. To give domain owner the ability to create their own error pages and use them on a web server, select the Custom error documents checkbox.

Note:- You can enable the support for all programming and scripting languages, web statistics and custom error documents at once by selecting All services checkbox in the Services group.

3) Additional write/modify permissions - This option is required if web applications on a domain are using a file-based database (like Jet) located in the root of httpdocs or httpsdocs folders. Please note that selecting this option might seriously compromise the web site security.

4) Use dedicated IIS application pool - This option enables the use of dedicated IIS application pool for web applications on a domain. Using dedicated IIS application pool dramatically improves the stability of domain web applications due to worker process isolation mode. This mode gives each web site hosted on the server the possibility to allocate a separate process pool for execution of its web applications. This way, malfunction in one application will not cause stopping of all the others. This is especially useful when you are using shared hosting package.

5) Maximum CPU use. To limit the amount of CPU resources that domain’s IIS application pool can use, clear the Unlimited checkbox and provide a number (in percents) in the field.

F) Performance-To avoid excessive usage of bandwidth, which can lead to resources overage, you can set various performance limitations for a domain.
1) Maximum network use - To limit the maximum speed (measured in KB per second) that a domain can share between all its connections, clear the Unlimited checkbox and provide a number (in kilobytes) in the field.

2)Connections limiting - To limit the maximum number of simultaneous connections to a domain, clear the Unlimited checkbox and provide a number in the field

G) Click OK to complete creation of a template.

This how you can create a new domain/web site, you will select the required template and the hosting account will be created and allocated the resources and hosting services you defined.

Apache mod_rewrite Basics and Information

Wednesday, October 3rd, 2007

Apache mod_rewrite was invented and written in 1996 and it was then gifted to Apache. Apache mod_rewrite utilizes rewriting engine based on rules (regular-expression parser). It can rewrite requested URLs on fly. It supports many rules to deliver flexible and powerful URL manipulation mechanism.

The manipulations depends upon various tests and various formats and can be used reach granular URL matching. It basically operates on URL both in httpd.conf and .htaccess and can also show up query-strings on searches. It can also lead to internal sub-processing or redirection of external requests. Apache mainly aims to proceed with many HTTP requests. Apache API provides hook for them i.e. URL-to-filename translation hook and Fixup hook.

Once the request is made, it then determines server server and thereafter the rewrite engine begins with interpretation of URL-to-filename and permissing mod_rewrite directives from every server’s configuration. Once done, it then pushed on the Fixup hook. Following it sets the configuration structure rulesets which was initiated at the time of start or during the process.

The rewrite engine then follows every rule that are set. When each rule is matched, it checked the appropriate situations.