How to Remove Websties Log Files in Plesk

Website log files are getting bigger and bigger as the website runs day by day, it may cause errors. I will show you how to remove log files in Plesk.

There are several kinds of log files, .gz , .webstat , .processed log files can be removed safely by using the following command:

#rm -rf /var/www/vhosts/system/

Main website log files (access_log, error_log) should be cleared with the following command, removing main log files may possibly lead to incorrect functionality of Apache and nginx.

#cat /dev/null >/var/www/vhosts/

According to the Plesk official documents, different types of logs are recorded in different files, here is a list of log files types:

  • access_log. This log records all HTTP requests processed by the web server.
  • access_ssl_log. This log records all HTTPS requests processed by the web server.
  • error_log. This log contains diagnostic information. It also records any errors that the web server encounters in processing requests.
  • proxy_access_log. This log records all HTTP requests processed by the proxy web server.
  • proxy_access_ssl_log. This log records all HTTPS requests processed by the proxy web server.
  • proxy_error_log. This log contains diagnostic information. It also records any errors that the proxy web server encounters in processing requests.

DigitalOcean Updated New Droplet Plans

We’re excited to hear that DigitalOcean uodated new droplet plans recently, and now the price-to-performance is a little better than Vultr and Linode. In my memory, this is the first time that DigitalOcean update its plans. Here is the list of new price and resources of DigitalOcean droplets.


High CPU Plans, which were released six months ago, now have its new name Optimized Droplets. Optimized Droplets are powered by dedicated hyper-threads from best-in-class Broadwell and Skylake CPUs, but now come with additional memory and local SSD disk for the same price. Here is the updates.

Optimized DigitalOcean Plans

Over the past few years, we like to compare Digitalocean, Vultr and Linode between each other, because of DigitalOcean’s VPSs come with less memory, DigitalOcean is not as popular as the other two, but now, they all at the same level.

MediaTemple Coupon for Grid and DV, 45% off

MediaTemple coupon code

MediaTemple just shared a couple code of 45% off for the first year for Grid service or DV plans, the coupon code will be validated on November 20 and 21 only.

Use coupon code SECRET45 at checkout. If you interested in this offer, please read the following limits first and get a whole picture of this offer.

  1. Offer valid for new annual hosting services purchased through the Media Temple website or sales department between November 20, 2017 at 12:01am and November 21, 2017 at 11:59pm PST, using an applicable promo code.
  2. Offer applies to the initial purchase of Grid Personal, Grid Pro, Grid Elite, DV Developer Levels 1-6, and DV Managed Levels 1-6 and applies to annual plans only.
  3. The discount will be applied to the already reduced annual introductory price for a total of 45% off. Subsequent years will be billed at full price.

Dreamhost is Fighting for the Users

Dreamhost rejected to provide the information of, which was requested by the Department of Justices.

Here is a list of blog posts or news reports about this issue.

We Fight for the Users

This is a blog post from official Dreamhost Blog and been updated regularly when there is something new about this issue.

Trump Protest Site’s Host Fights DOJ Over Visitor Data Order

DreamHost is fighting DoJ request for 1.3M IP addresses of visitors to anti-Trump protest site

How to Mount and Unmount Filesystem in Linux

In daily server maintenance, we may need to add another disks to our server. This tutorial will walk you through how to mount and unmount filesystem in Linux.

The directories where filesystems are mounted on are called mount points, you can access files in mount points by entering to that directory.

Mount Filesystem

If you want to mount disk /dev/sdb on /backup directory, just run the following command:

# mount /dev/sdb /backup

Mount command automatically detects the file system on disk. But in some cases, you need specify the file system type manually.

# mount -t ext4 /dev/sdb /backup

If you want to mount filesystems on system boot, edit /etc/fstab and append the following line at the end of file, change /dev/sdb with your own disk.

/dev/sdb /backup ext4 defaults 0 0

Now, run mount -a to mount all disks defined in /etc/fstab file.

Unmount Filesystem

You can use umount command to unmount filesystems, just run umount command with disk name or mount point name to unmount currently mounted disk.

# umount /backup
# umount /dev/sdb

Free Control Panel

Cloud hosting is beating shared hosting in price and performance, more and more users choose VPS instead of shared hosting. Unlike shared hosting, unmanaged VPS is a little difficult to use, especially we are not system administrators, and we don’t know much about ssh commands. In this case we could choose managed VPS or buy a control panel, like CPanel, Plesk or DirectAdmin. However, the license is pretty expensive, the cost of a license may 10 times of the cost of a VPS monthly.

If we could done the same thing with free control panel, why not? Here is a list of free VPS control panels and brief introduction. Each control panel has its own pros and cons, but all of them offer basic features for websites management and server environment configuration. Check all the demos and choose the one meets your demands most.


webmin control panel

Webmin, which is familiar to system administrators, is designed to manage Linux systems with web browsers instead of commands, with the integration of Vitrualmin, which is a webmin module designed to manage virtual hosts, webmin becomes a perfect free control panel. It’s a features rich control panel and you can do almost everything you need. Built-in features including file manager, let’s encrypt integration, firewall, backup and restore and so on.

Webmin is compatible with Unix-like systems, such as Cent OS, Red Hat, Debian, Ubuntu, Solaris and so on.


vesta control panel

Vesta is an elegant control panel which was written in Bash, web interface is open source php and javascript interface based on Vesta open API. Built-in features including let’s encrypt, firewall, Cron jobs, Graphic, multiple language.

Vesta is compatible with Cent OS 5,6,7, Debian 6,7,8, and Ubuntu 12.04-15.10.

Attention: Vesta do not offer file manager, you may purchase a commercial plugin or manage files through FTP or SSH.


ispconfig control panel

ISPConfig 3 is an open source hosting control panel for Linux which is capable of managing multiple servers from one control panel. Built-in features including file manager, firewall, cron jobs, multiple language support and so on.

ISPConfig is compatible with Debian 5 – 8, Ubuntu 8.10 – 16.04, CentOS 5.2 – 7, Fedora 10 and 12 – 15, OpenSuSE 11.1 – 12.3.

Manual Installation of Plesk for Linux

We usually use one-click-installer to install Plesk automatically, it’s straightforward and what you need to do is waiting. However, you also can install Plesk manually and get more options during the installation.

Like one-click-installer, you need to download the installer first and then add execution permission to it.

chmod +x plesk-installer

Option 1: Install pervious version of Plesk

./plesk-installer --all-versions

By default, one-click-installer installs the latest stable version for you, you can add –all-versions to install previous versions or testing versions manually. Based on the Operating System, Plesk will show you a list of available versions for you.

plesk all versions

Options 2: Install Plesk from web interface

Before the installation, make sure that port 8447 is not blocked by firewall and you could access it.

./plesk-installer --web-interface

Run the command above and you will be prompted to open https://ip-address:8447/ in your browser. The web interface installation is now ready and sign in with “root” user and its password, all the operations can be done in browser.

If you want to install previous version of Plesk in web interface, just combine the two arguments.

./plesk-installer --all-versions --web-interface

Godaddy Acquired Sucuri

Godaddy, which is a leading company in domain registration and web hosting, announced the acquisition of Sucuri. Both Godaddy and Sucuri have published the announcements on their own blogs.

It’s really a good news for their customers. There are plenty of programs and web hosting companies, it’s only takes several minutes to set up a website. However, protecting our websites from cyber attacks is not easy even if we know basic knowledges and have done some security optimizations to our websites.

I can’t wait to see how will Godaddy integrate Sucuri’s services into existing products, and what benefits will this acquisition will bring to us.

How to Enable GeoIP Plugin for Awstats in Plesk

By default, Awstats doesn’t show countries visitors are visiting from, but there is a plugin called GeoIP could do it. In this tutorial, I will show you how to enable GeoIP plugin for Awstats in Plesk control panel. If you are not using Plesk, it’s OK, the steps are more or less the same, the only difference is you have to setup a cron job instead of adding a scheduled task. Scheduled tasks, which was a component of Plesk control panel, is a GUI tool for web masters to manage cron job easily and flexibly.


First, install required perl modules (Geo::IP), take CentOS for example.

yum install GeoIP GeoIP-data GeoIP-devel

Second, download GeoIP database, and store it in local directory (you can store in any directory as you want).

cd /var/www/vhosts/
gzip -d GeoLiteCity.dat.gz

Edit Awstats Configuration Files

The main configuration files are /etc/awstats/awstats.comf and /etc/awstats/awstats.model.conf, all the changes you made will only be effected to the new websites. If you have websites which had awstats enabled, you can find configuration files for existing websites in /usr/local/psa/etc/awstats/.

Enable GeoIP by uncommenting a line looks like LoadPlugin=”geoip GEOIP_STANDARD /pathto/GeoIP.dat” in the configuration file, place “/pathto/GeoIP.dat” with the your own path where you stored the GeoIP you downloaded in previous. The following line is what I configured in my awstats configuration file.

LoadPlugin="geoip GEOIP_STANDARD /var/www/vhosts/"

Update awstats and you can see the countries information your visitors are visiting from. By default, Awstats will be updated everyday, if you want to update Awstats in real-time, just add a scheduled task.