WHM/cPanel

List IPs: iptables -L -n –line | grep local IP address


 iptables -D INPUT 3

 

# iptables -L -n –line

# iptables -D DENYIN number
# iptables -D DENYOUT number

Run the following command:

/usr/local/cpanel/cpkeyclt

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py; chmod +x speedtest-cli; ./speedtest-cli –share;

  1. telnet localhost 443
  2. cd /etc>httpd/conf.d/ssl.conf
  3. vim ssl.conf
  4. Insert following:

    LoadModule ssl_module modules/mod_ssl.so
    Listen 443
  5.  service httpd restart

/etc>httpd>conf>httpd_conf  (CentOS)
/etc>apache2/apache2.conf  (Ubuntu)

Increase MaxClients value from following Module and restart Apache service:

<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 5
MaxClients 10
MaxRequestsPerChild 0
</IfModule>

<IfModule mpm_worker_module>
StartServers 1
MinSpareThreads 1
MaxSpareThreads 4
ThreadLimit 64
ThreadsPerChild 25
MaxClients 10
MaxRequestsPerChild 0
</IfModule>

<IfModule mpm_event_module>
StartServers 1
MinSpareThreads 1
MaxSpareThreads 4
ThreadLimit 64
ThreadsPerChild 25
MaxClients 10
MaxRequestsPerChild 0
</IfModule>

 

  • Flush/Restart Rules:

iptables -F

  • If doesn’t work, try:

/etc>init.d/iptables stop/start/restart

service iptables stop

  • Remove the iptable rules:

iptables -L -n –line

iptables -D INPUT <line number>

Scroll to top