Category Archives: Cpanel/Whm

Horde, squirrel mail and roundcube showing blank page

Today, I noticed that when I login to webmail for Horde, squirrel mail and roundcube all showing blank page.
I have tried resetting email account password, update cPanel but nothing helped.

 

Finally I  noticed that domain entry was missing from /etc/userdomains file.

I added the entry in the format

domain.tld: username and that fixed the issue 🙂


contact@webhostingsupport.info

Post to Twitter

How to Install mod_cloudflare

How to install  mod_cloudflare on cPanel server ?

The primary purpose of mod_cloudflare is so you get original visitor IP in your server logs. If you don’t have it installed on your servers, then you will see cloudflare server ip address

 

To install mod_cloudflare one should have root access to the server.

Refer to following commands:

 

1. Get the source code for mod_cloudflare:

cd /usr/local/src

wget –no-check-certificate http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c

 

2. Use the Apache Extension Tool to build and install mod_cloudflare:

apxs -a -i -c mod_cloudflare.c

 

3. Restart apache service.

service httpd restart

 

4.  Finally, update the Apache configuration data files:

/usr/local/cpanel/bin/apache_conf_distiller –update

 


contact@webhostingsupport.info

Post to Twitter

Error in system filter: failed to open filter log file /var/log/filter.log

[error]Error in system filter: failed to open filter log file “/var/log/filter.log”[/error]

Emails on my server were discarded and exim log was showing following error:

 

Error in system filter: failed to open filter log file “/var/log/filter.log”: Permission denied (euid=506 egid=559)

This error indicates that either file /var/log/filter.log does not exist or ownership of the file is incorrect.

and so server is unable to open the file.

 

if file is not created then create it and assign following ownership.

 

touch /var/log/filter.log

chown cpaneleximfilter.cpaneleximfilter /var/log/filter.log

this should fix the issue now.

 


contact@webhostingsupport.info

Post to Twitter

Problem with Configure PHP and SuExec

WHM Configure PHP and SuExec showing following message:

 

[notice]EasyApache is currently upgrading your Apache and PHP installation.
Please wait for this process to finish before changing your PHP and Suexec settings.[/notice]

 

This message is  normally shown when apache/php compilation is running on the server.

If this process is completed and you still see this message in the WHM then this is a problem.

 

You can simply fix this by removing following file from server.

SSH the server as root.

rm -f /usr/local/apache/AN_EASYAPACHE_BUILD_IS_CURRENTLY_RUNNING

That’s All 🙂


contact@webhostingsupport.info

Post to Twitter

Access tomcat Admin area

Accessing Tomcat Admin area:

http://server-ip-address:8080/admin/

You may receive a message:

[notice]Tomcat’s administration web application is no longer installed by default.
Download and install the “admin” package to use it.[/notice]

 

This is because, by default admin section of tomcat is not enable.

To enable Admin section, you can refer to following steps.

%TOMCAT_FOLDER%/conf/tomcat-users.xml” manually.

If you have a cPanel server then you will find the file

/usr/local/jakarta/tomcat/conf/tomcat-users.xml

Before editing the file:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>

 

After editing file:

 

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="admin" password="admin" roles="admin,manager"/>
</tomcat-users>
To enable admin access, just update the content like above. 
Saved it and restart Tomcat, now you can access Tomcat admin or manger pages 
with user = “admin” and password = “admin“.

contact@webhostingsupport.info

Post to Twitter