Search results

  1. K

    Steps to check swap space on server

    You can check below steps to check the available swap space on your server, for that you can check below articles: You have to use below command to check the swap space : -bash-4.2# free -m Total Used Free Shared Buff/Cache Available Mem: 1998 480 409 104 1108 1229 Swap: 1023 37 986 For...
  2. K

    Steps to install mod_evasive Apache module

    This module help to mitigate DDOS and DOS attack on server,let’s see how to install mod_evasive Module. You can install yum command or also use WHM to install it. ea-apache24-mod_evasive mod_evasive check requests of all the IP address on websites. Mod_evasive will log the IP address in this...
  3. K

    Configuration of Apache Timeout directive in WHM

    You can follow below steps to configure Apache Timeout directive. But one thing, it is must to have root access of your server. Login to WHM. Go to Service Configuration » Apache Configuration » Global Configuration Search for “Timeout” directive by scrolling Here you have to enter desired...
  4. K

    Steps to configure Apache’s RLimits Directive in WHM

    You can configure Apache RLimits in Apache Configuration option: Login to WHM. Here click on “Apache Configuration” under “Service Configuration”. Now click on “Memory Usage Restrictions”
  5. K

    Steps to configure Apache’s RLimits Directive in WHM

    You can configure Apache RLimits in Apache Configuration option: Login to WHM. Here click on “Apache Configuration” under “Service Configuration”. Now click on “Memory Usage Restrictions”
  6. K

    Steps to reset PHP configuration for system-level

    If you want to reset php.ini file to default settings, then you can follow below steps: You can reset it for every PHP version like ea-php74, ea-php73 etc. ea-phpxx Here xx is version like 74 version. First you have to rename ini file and then reinstall the package. mv -vi...
  7. K

    Steps to add new values for PHP settings in Selector

    You have to add your values in /etc/cl.selector/php.conf file to select from drop-down in cpanel. You can change the range of your PHP settings according to your requirement in /etc/cl.selector/php.conf. Here you can check example of this: Directive = memory_limit Default = 128M Type = list...
  8. K

    Steps to unban IP address from WHMCS

    If you are not able to login into WHMCS due to IP ban issue from login failure. If you are using incorrect login details three times then you get banned from WHMCS. You have to whitelist your IP address in WHMCS with below steps: Login to WHMCS. Here under “General Settings” click on...
  9. K

    Steps to check PHP error_log file according to size

    If you want to clear error_log to a particular size of file then you can either done this with user’s cron job or you can done this for entire server with /home. Here is the command which can be use to add in root’s crontab which can be use to clear error_log files whose size over 2M. find...
  10. K

    Steps to check PHP Modules in website

    Most of the time we use phpinfo() to check all the PHP modules but if you want to check any particular module then you can follow below steps: You can put a php file like test.php and check desired modules. <?php echo "DOM: ", extension_loaded('dom') ? 'OK' : 'MISSING', '<br>'; echo "GD: "...
  11. K

    Steps to remove PHP version from command line

    Sometimes we need to remove particular PHP version. For that you can follow below steps: If you want to remove all PHP packages for any particular version then you can use this command: For EA4 packages: yum remove ea-phpxx* For alt-php (CloudLinux) packages: yum remove alt-phpxx* Here xx...
  12. K

    Steps to install PHP expect module with PECL in WHM

    You can follow below steps to install PHP expect module with PECL: First of all you have to install below yum packages with below command: yum install expect expect-devel expectk tcl tcl-devel tk tk-devel After installing all above packages you can go to WHM for further steps: WHM > Software...
  13. K

    Steps to disable ClamAV plugin on server

    You can follow below steps to disable ClamAV plugin in WHM: Login to WHM. Here click on “Service Manager” under “Service Configuration”. Now scroll and search for ClamAV Daemon, here you will find 2 options “Enabled” and”Monitor”. At last click on “Save”.
  14. K

    Steps to remove /public from Laravel URL

    If you want to use laravel directly with its domain name then you have to check below steps: For security reason you have to take backup of your .htaccess file with below command: cp -vi .htaccess{,.bak} Now you have to add below code in your .htaccess file. RewriteEngine On RewriteCond...
  15. K

    Steps to install ionCube Loader in WHM

    Installing ionCube Loader by WHM: i. First login to WHM by using your server IP for ex. http://1.2.3.4:2087/ ii. Then click on Tweak Setting. iii. After that click on PHP Tag. iv. And then find the configuration option name “cPanel PHP Loader” and click on the ionCube Loader. v. Then select...
  16. K

    Steps to install PEAR modules with command line

    You can install cpanel interface to install PEAR packages, but if interface does not provide all the options then you have to use command-line. You can install PEAR modules with command line, you have to login as user. After you logged in as user, you have to use the full path of cpanel PEAR...
  17. K

    Steps to edit configuration file

    You can add below code to disable particular extension globally: <Files ~ "\.<ext>$"> Order allow,deny Deny from all </Files> You can add below code for multiple extension, you can replace <ext#> to your file extensions. <FilesMatch "\.(<ext1>|<ext2>)$"> Order Allow,Deny Deny from all...
  18. K

    Steps to disable particular file extension globally

    If you want to disable access of particular file extension then you can do this with Includes Editor. You can follow below steps for that: Login to WHM. Here click on Apache Configuration under Service Configuration. Here click on “IncludeEditor” and then Pre VirtualHost Include After that...
  19. K

    Steps to clear Nginx cache via ea-nginx

    If you are continuously getting the previous page and changes are not visible in browser then there must Nginx cache issue on server, you have to clear Nginx cache on server for particular user. You can follow below steps : You have to run below command to clear NGINX cache...
  20. K

    Steps to force restart Apache service

    If you are unable to restart Apache and continuously getting below error: Address already in use: make_sock: could not bind to port 80 Then you can run below command first and then try to restart Apache service: killall -9 httpd Now restart your Apache service: Service httpd restart
Top