Archive for Cpanel Server

Invalid command BytesLog

On Cpanel server after OS reload, can’t start apache, it shows following error

Invalid command ‘BytesLog’, perhaps mis-spelled or defined by a module not included in the server configuration

The problem is fixed by installing mod_log_bytes

cd /usr/local/cpanel/apache
/usr/local/apache/bin/apxs -iac mod_log_bytes.c

Comments off

Delete Large Number of files in a folder

On linux, i was asked to delete a folder with lot of files.

When i try to delete the file with rm if *, i got error, too big arguments.

The files are deleted with command

find /home/mwp2007/mail/new -type f | xargs rm -f

/home/mwp2007/mail/new is the folder which contain the files.

Comments off

imapd not working

On a new cpanel server imap service found not working.

Checked if all library for imapd is available with

root@server38 [~]# ldd /usr/lib/courier-imap/bin/imapd

libfam.so.0 => not found

libgdbm.so.2 => /usr/lib64/libgdbm.so.2 (0×0000003166600000)
libcourierauth.so.0 => /usr/lib64/courier-authlib/
libcourierauth.so.0 (0×0000003c7da00000)
libc.so.6 => /lib64/tls/libc.so.6 (0×0000003165700000)
/lib64/ld-linux-x86-64.so.2 (0×0000003165500000)
root@server38 [~]#

Found libfam.so.0 not available on the server.

Problem is fixed by installing fam from yum.

yum install fam

After installing fam restart imap with

/scripts/restartsrv imapd

Comments off

Starting and Stoping Tomcat on Cpanel Server

On new server, i installed Tomcat through WHM. But i can’t restart tomcat from WHM. The cpanel script to restart tomcat /scripts/restartsrv_tomcat is also not working.

I found directly running tomcat startup file as user root will get the tomcat working.

To start Tomcat run

/usr/local/jakarta/tomcat/bin/startup.sh

To stop tomcat run

/usr/local/jakarta/tomcat/bin/shutdown.sh

Once you install servlet to a web site, it will show 404 error, you need to restart tomcat to get it working properly.

Comments off

« Previous entries · Next entries »