Blog

How to find the IPs connecting to my server?

The following command displays a list of the IPs that are connected to our server ignoring the STATE of the connection (CLOSE_WAIT, ESTABLISHED, etc)

netstat -tn 2>/dev/null

-t flag tells netstat to display only TCP connections
and -n flag tells netstat command not to resolve IPs to hostnames

While stderr (2) redirection (>) throws at "garbage" (/dev/null) means that we just don't want possible errors to break our cute output we are trying to make.

How to delete a directory via SSH

Many new Linux / Unix users may wonder how to delete an entire directory / folder and all its contents via SSH. Here is the answer:

rm -rf ./direcory_to_delete

You may use "wildcards" too, for example:

rm -rf ./direcory_that_starts_with*

What every command does:

zpanel web hosting panel

zpanel dashboard screenshot

ZPanel is a free and complete web hosting system for Linux (Ubuntu and Centos officially supported), Unix, MacOSX and Windows based servers. ZPanel is written in PHP and uses several open-source (or freely available) software packages to provide a secure, web hosting system.

Simple SEO Slideshow - Wordpress

Simple SEO Slideshow for wordpress

Το Simple SEO Categories Posts is a Wordpress widget developed by Hostdog, that will create a slideshow from a post/page media gallery.

Simple SEO Categories Posts widget - Wordpress

Simple SEO Categories Posts widget Screenshot

Simple SEO Categories Posts is a Wordpress widget developed by Hostdog, where you can choose the posts you want to display on your site from specified categories.

Virtuemart 1.1.x - payment method by country

Something that it is missing from Joomla - Virtuemart 1.1.x is the restriction of payment method (for example Cahs On Delivery) to specific countries or to make it simple, how to set a payment method to be available only for a specified country or countries.

Above, by editing only three (3) files (via the file manager of your panel that you web hosting company provides or via ftp) of virtemart we will explain how to add this functionality.

Logaholic - cPanel - HTTP 401 error

In case you run into the error:

"HTTP error 401 You do not have permission to access this page"

when visiting the Logaholic statistics, after your cPanel is upgraded from 11.30.x, 11.31.x to 11.32.x, follow the next steps to solve it:

Optimize Apache on cPanel - apache benchmark

Requirements: If you don't have Prefork installed, then please install it via Easy Apache on your WHM. You will have to recompile Apache.

Run apache benchmark on terminal:

ab -n 500 -c 50 http://www.yourdomain.gr/el

It's best to select your heavier webpage.

You'll get something like the following screen:

How to set date/timezone on a Linux server

Using the console (terminal) execute the commands below:

ln -sf /usr/share/zoneinfo/Europe/Athens /etc/localtime
export TZ=Europe/Athens

Change the above to your timezone. Supported timezones:
http://php.net/manual/en/timezones.php  

Check the time with the following command:

date

Change the hardware clock:

hwclock --systohc

Check the hardware clock

hwclock --show

Need a fast and reliable dedicated server in Europe? Check our dedicated servers offers.

Pages

Subscribe to Blog