Search found 166 matches

by a24uall
Thu Apr 25, 2013 3:56 pm
Forum: Webservers Installation
Topic: How to install tomcat7 + centos6
Replies: 0
Views: 2390

How to install tomcat7 + centos6

You may first need to install JDK cd /usr/local/src Download the latest jdk from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Download the rpm file for eg : jdk-7u21-linux-x64.rpm wget http://download.oracle.com/otn-pub/java/jdk/7u21-b11/jdk-7u21-linux-x64.rpm?...
by a24uall
Wed Apr 24, 2013 12:37 pm
Forum: Symlink Attack
Topic: How to find and prevent symlink attack
Replies: 0
Views: 4801

How to find and prevent symlink attack

How to find if there is a symlink attack : ls /var/cpanel/users | grep -v "\`\|\.\|cpanel\|root\|mysql\|nobody" | while read CPUSER; do find /home/$CPUSER -type l -not \( -lname "/home/$CPUSER/*" -o -lname "*rvsitebuilder*" -o -lname "[^/]*" -o -lname "/u...
by a24uall
Tue Apr 23, 2013 11:22 am
Forum: FTP/scp/wget etc
Topic: ncftp
Replies: 0
Views: 5541

ncftp

cd /usr/local/src wget ftp://ftp.ncftp.com/ncftp/binaries/ncftp-3.2.5-linux-x86_64-glibc2.3-export.tar.gz Untar and go to "bin" folder tar -xvzf ncftp-3.2.5-linux-x86_64-glibc2.3-export.tar.gz cd /usr/local/src/ncftp-3.2.5/bin Download using the command below : ./ncftpget –R –v –u “ftpuse...
by a24uall
Tue Apr 23, 2013 11:20 am
Forum: FTP/scp/wget etc
Topic: wget using password
Replies: 0
Views: 2101

wget using password

by a24uall
Sat Apr 20, 2013 3:20 pm
Forum: Disk Statistics
Topic: Harddisk uptime
Replies: 0
Views: 5158

Harddisk uptime

root@server:~# smartctl -a /dev/sda | grep Power_On_Hours
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 335
root@server:~#
Harddisk is running for 335 hours now.
by a24uall
Sat Apr 20, 2013 12:02 pm
Forum: Basic Commands
Topic: How to remove a file using inode number + linux
Replies: 0
Views: 2481

How to remove a file using inode number + linux

Below command list the files and its inode number ls -il Example root@central [~/456]# ls -il total 12 187957285 drwxrwxr-x 3 root root 4096 Apr 19 22:44 ./ 184784128 drwx------ 15 root root 4096 Apr 19 22:44 ../ 187957289 -rw-rw-r-- 1 root root 0 Apr 19 22:44 1 187957284 drwxrwxr-x 2 root root 4096...
by a24uall
Fri Apr 19, 2013 6:49 pm
Forum: MYSQL ERRORS
Topic: ERROR 1010 (HY000) at line 1: Error dropping database (can't
Replies: 0
Views: 2342

ERROR 1010 (HY000) at line 1: Error dropping database (can't

Getting the below error when I try to drop the database : ERROR 1010 (HY000) at line 1: Error dropping database (can't rmdir './roundcube', errno: 39). root@server[/var/lib/mysql]# mysql -e "drop database roundcube"; ERROR 1010 (HY000) at line 1: Error dropping database (can't rmdir './rou...
by a24uall
Fri Apr 19, 2013 6:46 pm
Forum: Roundcube
Topic: DATABASE ERROR: CONNECTION FAILED! + cpanel
Replies: 0
Views: 5558

DATABASE ERROR: CONNECTION FAILED! + cpanel

Getting the below error when I try to login to roundcube DATABASE ERROR: CONNECTION FAILED! Unable to connect to the database! Please contact your server-administrator. Solution : mysql -e "drop database roundcube"; /usr/local/cpanel/bin/update-roundcube --force If you cant remove the data...
by a24uall
Thu Apr 11, 2013 6:30 pm
Forum: Basic Commands
Topic: How to make history command to display time
Replies: 0
Views: 2023

How to make history command to display time

export HISTTIMEFORMAT="%Y%m%d %H:%M:%S "
After the above command history will how the date and time of commands untill the current shell is closed.
by a24uall
Sun Mar 31, 2013 8:39 am
Forum: ERRORS
Topic: Fatal perl must be installed before proceeding cpanel instal
Replies: 0
Views: 2463

Fatal perl must be installed before proceeding cpanel instal

Solution
Install perl using
yum install perl

Go to advanced search