Tag: CentOS

Fight the Malware with Custom ClamAV to on cPanel Servers

10 March 2018

Installing ClamAV via Command Line (SSH) This command tells the system that we want ClamAV to be listed as installed by the local RPM system: /scripts/update_local_rpm_versions –edit target_settings.clamav installed This command is the one responsible for installing the ClamAV RPM on your server: /scripts/check_cpanel_rpms –fix –targets=clamav Creating Symbolic Links If you need manually scan or […]

Force CentOS to pick fast mirror from selected country.

7 March 2018

Today, I came across the issue with my new IP block peering with an ISP in Thailand and CentOS Fast Mirror always redirect all my new IPs towards the US mirror which is very far. So I reached out to CentOS community and finds out that the CentOS Mirrorlist nodes use free GeoIP database from Maxmind. […]

Apache Error: “semget: No space left on device”

5 July 2015

Apache Error: “semget: No space left on device” If Apache fails, and will not successfully start again, check the error log. If you see an error similar to the following, it could indicate that your server has run out of semaphores. semget: No space left on device To see how many semaphores are being used, SSH to […]

HOWTO: /dev file system in chroot-ed environment

5 July 2015

HOWTO: /dev file system in chroot-ed environment Chroot is an operation that changes the apparent root directory for the current running process and their children. A program that is run in such a modified environment cannot access files and commands outside that environmental directory tree. This modified environment is called a chroot jail. As a a traditional UNIX […]

MariaDB on DirectAdmin (Replace MySQL with MariaDB)

6 December 2014

Replace MySQL with MariaDB on DirectAdmin   MySQL…It seems these days everybody doing something in the IT branch has used it, or still does. However, there are some problems: you only get the fun stuff (like clustering etc) if you pay big time, its development is stalling (more and more core developers are leaving), a […]

Bypassing Bad fstab Failure When Booting Linux

28 July 2014

Bypassing Bad fstab Failure When Booting Linux Usually you can enter root password and try to edit fstab, but it wouldn’t let you edit. because its read-only mode. so here is the method to work-around that. If /etc/fstab file is created with errors or the hardware configuration changes such as adding hard disks, Linux will boot into failure […]

How To Install Vesta Control Panel on Centos 6 / Ubuntu 12.04 LTS

20 June 2014

How To Install Vesta Control Panel on Centos 6 / Ubuntu 12.04 LTS   Introduction Vesta is an easy to use open source web hosting control pane that currently supports Ubuntu Linux (12.04 LTS, 13.04 and 13.10), Debian 7, CentOS (5 and 6), and RHEL (5 and 6). It packs a bunch of features by default […]

Install Linux Malware Detect (LMD) in RHEL CentOS

1 December 2013

Install Linux Malware Detect (LMD) in RHEL CentOS What is Malware? Malware is called malicious software, script or code which is created and used by hackers to retrieve information of private data or gain access to any private computer systems. Malware can be trojans, viruses, spyware, adware, rootkits or any other malicious programs which can be […]

Flashcache on CloudLinux and CentOS and OpenVZ or SolusVM

24 November 2013

Flashcache on CloudLinux and CentOS and OpenVZ or SolusVM Major issue on a hosting server which serve hundreds of website is remain the same: I/O bottleneck. My curiosity began when I received a newsletter from a VPS provider in US, they said they have added SSD as filesystem cache to their server fleet. Flashcache is a […]

Limit bandwidth UDP

10 September 2013

Limit bandwidth UDP This script limit the bandwidth for udp traffic – It can help to prevent hosting environment to ddos other by udp. Denial of service attacks are major nuisance for web hosts, and as a web host you’ll have to take every measure to protect your resources from DoS attacks. Our APF, BFD, DDoS […]