1:-APACHE Installation APACHE Version – httpd-2.4.33 Follow the below steps to install apache in CentOS 7 Install EPEL Repository In order to install EPEL repository execute following command: sudo yum install epel-release -y Install required tools for compilation sudo yum install autoconf expat-devel libtool libnghttp2-devel pcre-devel -y Download and unpack […]
Making tomcat and Apache live on port 80
Recently we are getting request where the client want’s to access domain running on tomcat (which is running on port 8080) without the port number. Above requirement can be met using the mod_proxy on apache. You can use the below-pasted rule on the virtual host to meet the requirement: ProxyPass […]
Excluding a process or service from OOM Killer
The Linux kernel allocates memory upon the demand of the applications running on the system. Because many applications allocate their memory up front and often don’t utilize the memory allocated, the kernel was designed with the ability to over-commit memory to make memory usage more efficient. This over-commit model allows […]
Enabling APCU in EA4 (CPANEL) through script
APCu is the official replacement for the outdated APC extension. APC provided both opcode caching (opcache) and object caching. As PHP versions 5.5 and above include their own opcache, APC was no longer compatible, and its opcache functionality became useless. The developers of APC then created APCu, which offers only […]
Steps to Mount KVM image and access the files inside VM from the node.
Steps to mount KVM image and access the files inside VM from the node. Step 1: ShutDown VM using the below pasted command virsh shutdown kvm185 or virsh shutdown kvm185 –mode acpi or virsh destroy kvm185 Step 2: kpartx -av /dev/vg_kvm/kvm185_img Step 3:Mount all the wanted img and important mount […]
How to change default document root of Cpanel account in EA4
In EA4 CPanel has deprecated /usr/local/cpanel/bin/apache_conf_distiller –update, so in order to make manual changes, please follow the below steps: Step 1: Login to the server though SSH Step 2: Change the Document root in the below pasted files: /var/cpanel/userdata/Cpanel_username/domain.com /var/cpanel/userdata/Cpanel_username/domain.com_SSL example: /var/cpanel/userdata/tech/techflavourz.com /var/cpanel/userdata/tect/techflavourz.com_SSL You can use the following command to […]
PDO_MYSQL installation error on EA 4
In order to install PDO_MYSQL we need to use pecl. But in some cases it will through the below pasted ERROR: config.status: executing libtool commands running: make /bin/sh /opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/pear-build-rootViggf0/PDO_MYSQL-1.0.2/libtool –mode=compile cc -I -I/usr/include/mysql -g -m64 -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -I. -I/opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/PDO_MYSQL -DPHP_ATOM_INC -I/opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/pear-build-rootViggf0/PDO_MYSQL-1.0.2/include -I/opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/pear-build-rootViggf0/PDO_MYSQL-1.0.2/main -I/opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/PDO_MYSQL -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend […]
LVM Creation, VGEXTEND, LVEXTEND
Please Follow the below steps to create LVM and mount it on /home: Step 1: mv /home /home_temp/ Step 2: fdisk /dev/vdc (/dev/vdc you can verify the same using fdisk -l) ———Create an Linux LVM partiton fdisk /dev/vdc Device contains neither a valid DOS partition table, nor Sun, SGI or […]
How to Install & Configure Mod_Security on cPanel/WHM
How to Install & Configure Mod_Security on cPanel/WHM In this guide, we will show you an easy way to install mod_security on a cPanel VPS, including rules to protect from MySQL injection and web attacks. ModSecurity is an open source, cross-platform web application firewall (WAF) module. Known as the “Swiss […]
Configuring CSF
Need a hand, contact me @ [email protected].. prefer hangout ? CSF is the commonly used firewall in cpanel server’s. CSF is also called as config server firewall. CSF provide better security for your server and provides an easy management console to manage firewall.CSF also comes with the LFD (Login Failure […]