Knowledgebase : Tech Tutorials
Firstly:

yum install curl compat-libstdc++-33 glibc nspluginwrapper

Then download the Adobe Flash Player RPM and install it:

rpm -ivh /file/location.i386.rpm

To set an rDNS (PTR) record please login to SolusVM (https://solusvm.dns4vps.com:5656), once you've logged in select the VPS you which to manage then click on the Network tab at the bottom of the page and click on Edit, once the new window opens you can enter your desired rDNS into the field and click update.

Please note that rDNS Records can take up to 24 hours to propagate however most should be live within a few seconds of setting.

What isa DoS/DDoS Attack?
---------------------------------

A Denial of Service attack is one of the most simple forms of attack you will encounter when managing a system with an internet connection. The most common type of denial of service attack, is a web based denial of service attack against your webserver. The aim is simply to flood your server with requests until either it crashes, or the network port is saturated to the point where nothing else gets through.

One very important point which people often don't grasp, is that if your server is being flooded (Whether its useless traffic or a high number of packets), you cant mitigate this on a software firewall unless the attack is less than your connection speed. Even if you were to drop the malicious traffic on your server, there is still no room in the "pipe" to get the legitimate data through. This is where a hardware firewall or proxy system is required.

How do I know when I am under attack?
----------------------------------------------

There are a couple of things you may notice when under a Denial of Service attack.

1. Packet loss or increased latency
2. High server load

Check how many connections are being made to your server by IP address. To do this you can use the following:

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

Chances are if there are IP's listed with 100+ connections to your server, it might be someone upto no good.

How can I ban IPs on my server?
--------------------------------------

Banning IP's is very simple, use the following.

If you have the APF firewall installed:
apf -d xx.xx.xx.xx

If you have the CSF firewall installed:
csf -d xx.xx.xx.xx

If you are just using iptables and don't have APF or CSF installed, use:
iptables -I INPUT 1 -s -j DROP xx.xx.xx.xx

Additional Protection
-----------------------

If you are reguarly suffering from denial of service attacks, a few things you can do are

1. Install a firewall and bruteforce detection agent e.g. APF/BFD or CSF/LFD
2. Install Dos_Deflate to help detect and migitate such attacks
3. Limit the number of connections your server can handle + make sure it can handle that amount of load with stability

File Manipulation
-------------------

ls -l ---- This Will List All Files/Directories In Your Current Directory
ls -al ---- Lists All Files & Information
ls –alR ---- Lists All Files & Information In All SubDirectories
cd ---- Changes Directory
clear ---- Clears The Screen
cp [oldfilepath] [newfilepath] ---- Copies File From A Directory->Another
rm [filepath] ---- Removes A File
rm * ---- Removes All Files In A Directory
mkdir [dirname] ---- Creates A New Directory
mv [oldfilepath] [newfilepath] ---- Moves A File/Directory

Compression
---------------

unzip [filepath.zip]----Unzips A .ZIP File
tar -xvf [filepath.tar]----Untars A .TAR File
gzip -d [filepath.gz]----Ungzips A .GZIP File
gzip -d filepath.tar.gz----Ungziptar's A .TAR.GZ File
tar -xvf filepath.tar

Permissions
--------------

0 = --- No Permission
1 = --X Execute-Only
2 = -W- Write-Only
3 = -WX Write & Execute
4 = R-- Read-Only
5 = R-X Read & Execute
6 = RW- Read & Write
7 = RWX Read, Write & Execute

You Need To Set This On Files For
Owner - The File Owner
Group - People On The Server
User - Everyone

Its normally best if you want to keep a file really secure, to keep Group as "0" to stop people on the server from looking/changing it!

System Information Commands
-------------------------------------

du----Shows Disk Usage
netstat----This Tells You Who Is Connected To The Server + Hostname
netstat -n----This Tells You Who Is Connected To The + IP
kill----Kill A System Process
top----Gives You System Information (e.g. Processes, RAM usage etc)
ps----Shows Currently Running Processes
ps U [username]----Shows Currently Running Processes By A User
last----Tells You The Last User To Login
Disk Space
-------------

Disk Space is the amount of storage you have for all of your files on your hosting account. Your disk space is calculated based on the files you uploaded to your account, the content of MySQL Databases, and the content stored in your Email accounts on the server.

Monthly Data Transfer
--------------------------

Although it pretty much speaks for itself, your monthly Data Transfer is the amount of data you can transfer to and from the server in 1 calendar month. This includes both in and outwards traffic (upload and download). Monthly Data Transfer is commonly referred to as "Bandwidth" which is technically an incorrect use of the term. Bandwidth referres to the throughput or "speed" of a connection.

Parked / Add-On / SubDomains
----------------------------------------

A parked domain is where you sit another domain ontop of an existing website. Lets say you own two domain names, domain1.com and domain1.co.uk. You setup your account with a website using the domain1.com domain name, but you also want domain1.co.uk to point to the same website. To do this you would "Park" the domain, using the feature in cPanel.

Add-On domains do something slightly different. They allow you to host multiple sites on a single cPanel account. Let's use the same basic example. You own two domains, domain1.com and domain1.co.uk. You setup domain1.com but want a slightly different site on your .co.uk domain. Add-On domains allow you to point your domain to a sub directory. A basic example is shown below. From looking at the root or top level directory of your account, this is how it would be organised:

Directory | Name | Domain
/ domain1.com
/ukwebsite/ domain1.co.uk

Subdomains are basically the same as Add-On domains, except you use an addres such as ukwebsite.domain1.com instead of a full domain name.

MySQL Databases
---------------------

MySQL Databases are used to provide the backend for scrips such as Blogs, Bulletin Boards and content management systems.

cPanel
--------

cPanel is the industry leading web hosting control panel and automation platform. All of our Web Hosting services, both Shared and Reseller, are based around the cPanel hosting platform. You will recieve access to cPanel, allowing you to login and manage all of your account features.

The main reason that we use and reccomend cPanel to all of our clients is primarily down to functionality and ease of use. cPanel provides one of the most diverse and feature-rich hosting platforms in the industry, and we can say that with confidence after using it for more than 4 years. cPanel provides a clear and intuitive interface, providing easy access to the all the features whether you are beginner or a developer.

WHM
------

WHM or Web Host Manager is the Administrator extension of the cPanel hosting control panel. WHM is included with all of our Reseller hosting plans, and allows you to create and manage your own fully featured cPanel accounts. One of the great benefits of reselling our hosting is that you don't worry about having to do any of the technical/behind the scenes work!

Fantastico
------------

Fantastico De-luxe is a 3rd party cPanel Addon, which allows users to install common and popular scripts such as Blogs, Bulletin Boards and Content Management systems with a single click. This saves the hassle of having to upload the files manually, create the MySQL database and so on.

In addition, Fantastico will also allow you to update your scripts with a single click, to the latest supported version.