iptables: No chain/target/match by that name


Issue : while adding an iptable rule on the server i got the following error

[root@cape /]#iptables -A input -p tcp –dport 26 -j ACCEPT

iptables: No chain/target/match by that name

Solution :

1. Open the file /etc/sysconfig/iptables-config in the server

i.e: vi /etc/sysconfig/iptables-config

check for the entry IPTABLES_MODULES

It should bee seen like  IPTABLES_MODULES=””

It means iptabel modules are not compiled to the server.

2. Now go to vpsnode and check the modules are available or not using lsmod command

lsmod | grep ipt

If it shows the modules do the following steps.

3.Open the file /etc/sysconfig/iptables-config in the node and check the entry  IPTABLES_MODULES

it will shows like

IPTABLES_MODULES=”ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp ipt_owner ipt_REDIRECT”

4. Now copy it from the node and paste in to the file /etc/sysconfig/iptables-config of the server.

5. Restart iptables of the server after saving it.

That’s all………!!!!!!!

Cannot login to phpmyadmin


Error: Internal Server Error

500

No response from subprocess (whostmgr (cpanel)): subprocess exited with status 12
cpsrvd/11.38.2.2 Server at 31.170.107.219

I got the above error while login to phpmyadmin using WHM

Solution :

1.Login to the server using SSH

2. Find all the cpanel process running on the server

ps aux | grep cpanel

3. Now kill all the cpanel process

4.After that restart the cpanel

service cpanel restart

Try to login to the cpanel now.

That’s all…….!!!!!

How to install imagemagick in a cpanel server


1.You can install imagemagick using the following command

/scripts/installimagemagick

2.After the installation, check the version using the command

/usr/bin/convert –version

That’s all…..!!!!

Command to find version of cpanel,Apache,php and MySQL on a server


1.cPanel version

You can find cPanel version using the following command

/usr/local/cpanel/cpanel  -V

2. Apache version

You can find the Apache version using the following command

httpd  -V

3.PHP version

You can find the PHP version using the following command

php  -v

4.MySQL version

You can find the MySQL version using the following command

mysql  -V

WARNING: RESTRICT_SYSLOG is disabled. See SECURITY WARNING in Firewall Configuration


I got the above error while entering to “ConfigServer Security & Firewall” in WHM.

Solution:

1. Login to WHM

2.Home » Plugins » ConfigServer Security & Firewall

3.set  RESTRICT_SYSLOG to 3 , which is the default value

4.You can also set it from the csf configuration file.

i.e; # vi /etc/csf/csf.conf

search for “RESTRICT_SYSLOG”. It will be like RESTRICT_SYSLOG = “0”

Change it to RESTRICT_SYSLOG = “3”

 

That’s all…….!!!!!

Cannot get CPHandle data. Connection timeout


I got the above error while accessing the Rvsite builder in cpanel.

Solution:

Please check the cpanel theme and It should be X3.

In my case the cpanel theme was X2 and I have changed it to X3 and that resolved my issue.

Internal Server Error 500 No response from subprocess (whostmgr (cpanel)): subprocess exited with status 12 cpsrvd/11.38.2.2 Server at 31.170.107.219


I got the above error while login to a cpanel account.

Solution :

1.Login to the server using SSH

2. Find all the cpanel process running on the server

ps aux | grep cpanel

3. Now kill all the cpanel process

4.After that restart the cpanel

service cpanel restart

Try to login to the cpanel now.

That’s all…….!!!!!

Enable box trapper for cpanel accounts


Solution:

If you need to enable Box Trapper for all of the account in  a cpanel server, Please do the following steps.

1. Login to WHM

2. Go to Server Configuration –> Tweak Settings –> Mail

3. Enable BoxTrapper Spam Trap

Now please login to a cpanel account and check it in the mail section.

That’s all……!!!!!!

FAILED: queueprocd


Error:

A restart was a/var/cpanel/taskqueue/ttempted automagically.
Service Check Method: [check command]
Number of Restart Attempts: 130
Service Check Raw Output: queueprocd is not running

Solution:

If you got the above error mails regularly please do the following steps.

# cd /var/cpanel/taskqueue/

Then remove or move the lock file “servers_sched.yaml.lock” at /var/cpanel/taskqueue/ location, then restart queueprocd

#/usr/local/cpanel/libexec/queueprocd

That’s all…..!!!!!!!

What is queueprocd

—————————–

For certain tasks few services need to be restarted on cPanel server. For example if user add any domain it require apache and bind to be restarted. But on shared server where there are hunderds of accounts this can not be done more often. To handle these requestes cPanel has introduced task queueing and processing system.

Main benefit of this task queuing system is that multiple requests for an outstanding request are handled as a single action.
queueing system is divided into two subsystem.

1)The queueing mechanism and 2)The queue processor

Queueing of tasks is handled via /usr/local/cpanel/bin/servers_queue and queued tasks are stored in YAML files in /var/cpanel/taskqueue.  The task queue is processed at certain time interval by deamon queueprocd.

This daemon resides in /usr/local/cpanel/libexec and it can be restarted by /scripts/restartsrv_queueprocd. The daemon is monitored by chkservd.

 

 

 

Installation of frontpage extension on the cpanel servers


When I try to install the frontpage extension for domain through WHM I got the following error.

Frontpage extensions are not installed on this system.

Solution:

The issue is due to the unavailability of the module  “mod_frontpage” in the server.

Please run easyapache and check for the frontpage extension module

If you can’t find the module “mod_frontpage”  while customizing easyapache, you can add it using the following steps.

To install a custom module, perform the following steps at the command line as root user

Run the following commands:

1. wget http://docs.cpanel.net/twiki/pub/EasyApache/EasyApacheCustomModules/custom_opt_mod-frontpage.tar.gz

2. tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf custom_opt_mod-frontpage.tar.gz

Then run /scripts/easyapache where you can find the frontpage extension module.

Select the module along with other required modules and run easyapache

After completing the easyapche please run the following script to install Frontpage extension

# /scripts/setupfp5 domainname

That’s all……..!!!!!

Previous Older Entries

Blog Stats

  • 37,403 hits