Search results

  1. K

    Command to check listening ports on server

    You can use netstat command for command line network utility which helps to display network connections. To check listening ports you can use below commands: netstat --listen lsof –i
  2. K

    EasyApache 4 profiles which is compatible with HTTP2

    By default EA4 profile does not include mod_http2, so you have to customize your profile. You can customize that profile which has MPM Worker like All PHP Options + OpCache profile. Here are the steps to customize your profile: Login to WHM. Click on EasyApache. Here you will find “Customize”...
  3. K

    Can you suggest default EasyApache 4 profiles?

    We always recommend you to use All PHP Options + OpCache profile as from this you can use most of the PHP software. Its not necessary to use this profile you can create your own and can customize profile according to your need.
  4. K

    Steps to verify Apache module is enabled or not

    Cpanel provides various modules for Apache when Server node profile is enabled. You can check if module is installed or not on server then you can check this example: You can check if mod_rewrite is enabled or not on server and for that you can run below command: # httpd -M |grep rewrite...
  5. K

    Reason behind timestamps on my .htaccess files change after an update.

    Whenever PHP or EasyApache packages updated, removed or installed script with name 009-phpconf.pl checks .htaccess files of all domains. You have to use MultiPHP Manager to change PHP version or you can set “Inherit” so that from other methods you can change version. # php -- BEGIN...
  6. K

    Access_logs are not available in log folder.

    You will find all the server logs at /var/log/apache2/access_log location. After that these logs are splitted into users and domain logs folder which are available at var/log/apache2/access_log/domlogs location. Files available in /home/user/logs/folder are compressed files. Now run below...
  7. K

    Reason behind missing sqlite3 and pdo_sqlite in ea-php74

    Why is sqlite3 and pdo_sqlite missing from ea-php74? You can check from below command: # ea-php74 -m | grep sqlite You will not get Sqlite3 and pdo_sqlite on Centos 6 and CloudLinux 6 servers. Its because PHP version 7.4 needs sqlite-devel version 3.7.5 or later but Centos 6 does not provide...
  8. K

    Apache not listening to particular IP address! Why?

    Normally Apache listening to all the IP address but if you are getting issue for any particular IP address then you can check the issue with below steps: Login to WHM. Go to Configuration » Apache Configuration » Reserved IPs Editor Here if you will find check with IP address then you have to...
  9. K

    Error "Using both mod_userdir and mod_ruid2 is not a supported configuration."

    If you are getting “Using both mod_userdir and mod_ruid2 is not a supported configuration.” error then must be you have enabled mod_userdir protection in WHM. Steps to enable mod_userdir protection: Login to WHM. Click on “Apache mod_userdir Tweak” under “Security Center”. Solution : You are...
  10. K

    Steps to modify Apache LogFormat

    You have to follow few simple steps to modify Apache LogFormat. For that it is must to have access of WHM panel. Login to WHM. Navigate to “Service Configuration » Apache Configuration » Global Configuration” You can make changes here, but make sure your changes should meet the Apache format...
  11. K

    Location of Mod security audit log

    If you are getting any issue and want to check audit logs then you can you can go with below path. /usr/local/apache/logs/modsec_audit.log You can check these logs with command to: cat /usr/local/apache/logs/modsec_audit.log
  12. K

    What is difference between DHTML and HTML?

    These both languages are markup language and DHTML stands for Dynamic Hypertext Markup Language and HTML stands for Hypertext Markup Language. DHMTL used to create dynamic web pages and html used to create static webpages. DHML is used for server side scripting while html have static code and...
  13. K

    What is Wordpress loop?

    Its a PHP code to display Wordpress posts, this code is used to display all the posts in a page. Here is the example of code: Below is an example of a simple WordPress Loop. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); // // Post Content here // endwhile; // end while...
  14. K

    How to resolve error 521 web server down?

    If you are getting 521 web server down error then it means clouflare trying to reach server with port 80 or 443. To resolve this issue you can whitelist cloudflare server IP address on your server so that they can make TCP connection.
  15. K

    Steps to applied .htaccess directives

    Normally whenever Apache read .htaccess file the rules written in .htaccess file will be applied to all its sub-directories. You can check below example: /$usr/public_html/hosting/.htaccess Here .htaccess file located in above path and will affect all the sub-directories available in hosting...
  16. K

    How to locate NGINX manager in WHM?

    Normally, NGINX manager located in WHM: Login to WHM. Here go to “NGINX Manager” under “Software”. You can perform all below tasks in NGINX manager: Install or uninstall NGINX on server. You can also clear NGINX cache on server for particular user or for all users. You can also enable or...
  17. K

    Steps to enable Apache module “ModSecurity”

    You can follow below steps to enable ModSecurity on server. First login to WHM. Click on “ModSecurity Configuration” under “Security Center”. Here you have to check Modsecurity configuration.
  18. K

    Steps to configure ea-nginx for all websites

    You have to run below command for configuration: /usr/local/cpanel/scripts/ea-nginx config –all
  19. K

    Steps to retain previous domlogs more than a month

    You can follow below steps to remain the previous domlogs on server: Login to WHM. Go to “Tweak Settings” under “Server Configuration”. Here you have to uncheck “Remove the previous month’s archived logs from the user’s home directory at the end of each month unless configured by the user”...
  20. K

    Location of nginx logs on server

    You can find the logs in /var/log/nginx/ location: [root@ ~]# ls -lah /var/log/nginx/ total 608K drwxr-xr-x 4 root root 4.0K Nov 11 04:36 . drwxr-xr-x. 17 root root 4.0K Nov 11 02:10 .. -rw-r----- 1 nobody adm 187K Nov 8 03:35 access.log drwx--x--x 2 root root 267 Nov 7 04:45 domains -rw-r-----...
Top