Search found 67 matches

by hr-ethadmin
Wed Dec 25, 2013 12:37 pm
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: How to Fix permissions for all cPanel-registered Users
Replies: 0
Views: 3604

How to Fix permissions for all cPanel-registered Users

Hello, Using following shell scripts we can fix it very easily. #!/bin/bash - echo "Fixing permissions for all cPanel-registered Users..." for i in `cut -f1 -d: /etc/trueuserowners | sort | uniq | grep -v '^#' | grep manualpe -A 500` do USER_HOME=`grep -E "^$i:" /etc/passwd | cut...
by hr-ethadmin
Wed Dec 25, 2013 12:35 pm
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: Script to fix permissions of valiases
Replies: 0
Views: 1755

Script to fix permissions of valiases

Hello, To fix valiases permissions use following shell script. #!/bin/bash # Script to fix permissions of valiases for domain in `cat /etc/userdomains |awk '{print $1}' | grep -v "*" | cut -d: -f1` do if ! [ -f /etc/valiases/$domain ]; then touch /etc/valiases/$domain fi user=$(egrep "...
by hr-ethadmin
Thu Nov 28, 2013 11:16 am
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: Account creation and deletion data on Cpanel server
Replies: 0
Views: 1635

Account creation and deletion data on Cpanel server

Where to check Account creation and deletion data on Cpanel server

Using following commands we can find it.

grep user /var/cpanel/accounting.log
grep domain.tld /var/cpanel/accounting.log

Thanks.
by hr-ethadmin
Thu Nov 28, 2013 11:07 am
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: How to count connections per domain?
Replies: 0
Views: 1728

How to count connections per domain?

1. Using following command we can count connections per domain. lynx --dump --width=260 localhost/whm-server-status | grep "^ [0-9]" | awk '{print $12}' | grep -i ^[a-z] | sort | uniq -c | sort -nk1 2. How to find how many connections each IP Address? lynx --dump --width=260 localhost/whm-...
by hr-ethadmin
Thu Nov 28, 2013 10:58 am
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: Upgrade Python on Cpanel Server
Replies: 0
Views: 1782

Upgrade Python on Cpanel Server

Using following steps we can upgrade Python on cpanel server without any problem. download the least version here : http://www.python.org/download/ the build it and edit cpanel config to match the new version cd /usr/local/src/ wget http://www.python.org/ftp/python/2.6.4/Python-2.6.4.tgz tar -xvzf P...
by hr-ethadmin
Thu Nov 28, 2013 10:55 am
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: Downgrade MySQL 5 to MySQL 4.1 on cPanel dedicated server
Replies: 0
Views: 1604

Downgrade MySQL 5 to MySQL 4.1 on cPanel dedicated server

For some reason you need to downgrade MySQL 5 to MySQL 4.1 to achieve this you will have to do the following: To check the which all mysql rpm’s are available use the command: rpm -qa | grep -i mysql- First of all take a backup of /var/lib/mysql, and also ask the other users to keep a backup it with...
by hr-ethadmin
Thu Nov 28, 2013 10:53 am
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: Roundcube - DATABASE ERROR: CONNECTION FAILED!
Replies: 0
Views: 1801

Roundcube - DATABASE ERROR: CONNECTION FAILED!

The following is if you're using customapache. If you're using custombuild, see below. If you cannot login to roundcube because you get this error: DATABASE ERROR: CONNECTION FAILED! Then do the following: Type: cat /usr/local/directamin/conf/mysql.conf to get the login/password for mysql. Type: mys...
by hr-ethadmin
Thu Nov 28, 2013 10:50 am
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: Cpanel:Unable to locate clamd
Replies: 0
Views: 1620

Cpanel:Unable to locate clamd

If you are not able to restart clamd on cpanel server and getting following error: root@hazel [~]# /scripts/restartsrv_clamd Unable to locate clamd Please follow the steps as given below: # Red Hat Enterprise Linux 5 / i386: rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release...
by hr-ethadmin
Thu Nov 28, 2013 10:50 am
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: Check command history by date/time
Replies: 0
Views: 1682

Check command history by date/time

If you want to check history of the command by date and time, you need to set following export path on the server root@root[~]# export HISTTIMEFORMAT='%F %T ' then you will get the output of history command like given below: root@root[~]#history | more 1 2013-11-28 05:55:18 su - 2 2013-11-28 05:55:1...
by hr-ethadmin
Thu Nov 28, 2013 10:47 am
Forum: Hostripples dedicated Servers (Linux/Windows)
Topic: No space left on device: Couldn't create accept lock
Replies: 0
Views: 1736

No space left on device: Couldn't create accept lock

Apache error logs: /usr/local/apache/logs/error_log Getting following errors: No space left on device: Couldn't create accept lock Fix: # df –h # ipcs -s # ipcrm –s kill all the semaphores ID , you can achieve this by doing it in a for loop, the command is: # for semid in `ipcs -s | grep nobody | cu...

Go to advanced search