Plesk log files

ARUN Post in LOG FILES, PLESK BACKEND
0

HTTPD LOGS

/etc/httpd/logs/error_log

EMAIL LOG

/usr/local/psa/var/log/maillog

PLESK ERROR LOG

/var/log/sw-cp-server/error_log

Plesk showing offline management error

ARUN Post in PLESK BACKEND, PLESK FRONTEND
0

Solution :

[   vzctl set VEID –save –offline_management yes –offline_service vzpp   ]

How to check harddisk using hdparm

ARUN Post in DISK RELATED
0

A bad harddisk details :

root@server[~]# hdparm -tT /dev/sda1

/dev/sda1:
Timing cached reads: 25788 MB in 1.99 seconds = 12944.89 MB/sec
Timing buffered disk reads: 18 MB in 3.28 seconds = 5.49 MB/sec

Field above in red is important… For SATA acceptable range is 80+ for Timing buffered disk reads

 

Install ntupdate and synchronize the date

ARUN Post in Date Time
0

yum install ntp

chkconfig ntpd on

ntpdate pool.ntp.org

/etc/init.d/ntpd start

http://admin.webhostingdevelopment.com/viewtopic.php?f=92&t=81&p=94#p94

How to cut few lines from a big file using sed

ARUN Post in LINUX COMMANDS
0

Below command will cut lines 90 to 154 from  file.txt  and copy that to cut_file.txt

sed -n ‘90,154p’ file.txt > cut_file.txt

 

Cpanel shows incorrect disk space usage in emails

ARUN Post in WHM BACKEND, WHM SCRIPTS
0

[      /scripts/generate_maildirsize –confirm –verbose USERNAME       ]

How to reset mysql user password in linux through command prompt

ARUN Post in MYSQL
0

Login to mysql.

mysql -u root -p

In mysql prompt use

mysql> use mysql;

Now change the password for user “arun”   to  “secret123″ as below :

[    mysql> update user set password=PASSWORD(“secret123″) where User=’arun';     ]

 

Path of toplog

ARUN Post in FILE PATH ( conf, logs etc), LOG FILES, WHM BACKEND
0

/var/log/dcpumon/toplog…..

Repair all mysql database on a server

ARUN Post in MYSQL
0

mysqlcheck -Ar

ERROR: PleskFatalException Unable to connect to database: saved admin password is incorrect.

ARUN Post in PLESK FRONTEND
0

While trying to access the plesk admin page we get the below error :

ERROR: PleskFatalException Unable to connect to database: saved admin password is incorrect.

Solution :

Try resetting the admin password from within mysql.

You can get the details about resetting root mysql password using the link below. Change the commands accordingly an reset the password for  user  “admin”

http://forum.webhostingdevelopment.com/index.php/2011/07/how-to-reset-mysql-root-password-in-linux-centos/

-bash: httpd: command not found

ARUN Post in Uncategorized
0

root@vps [~]# httpd -l
-bash: httpd: command not found
root@vps [~]#

Solution :

root@vps1 [/usr/bin]# ln -s /usr/local/apache/bin/httpd
root@vps1 [/usr/bin]# cd

/etc/cron.weekly/chkrootkit.sh: line 3: mail: command not found

ARUN Post in ERROR
0

/etc/cron.weekly/chkrootkit.sh:

/etc/cron.weekly/chkrootkit.sh: line 3: mail: command not found
/etc/cron.weekly/rkhunter.sh:

/etc/cron.weekly/rkhunter.sh: line 2: rkhunter: command not found

Solution :

yum install mailx.x86_64

/usr/bin/perl: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory

ARUN Post in ERROR, WHM BACKEND
0

Getting the below error in apache error logs and the website giving a Internal server error 500

Solution :

Check  RLimitMEM is enabled. If so disable and restart apache.

vi /usr/local/apache/conf/httpd.conf

 

test

ARUN Post in LOG ANALYSIS
0

test

Backend path where the plesk emails are stored

ARUN Post in MAIL, PLESK BACKEND, QMAIL
0

Plesk mail directory path :

/var/qmail/mailnames/DOMAIN.com/USERNAME

When we create a folder from within the webmail its created at the backend on

/var/qmail/mailnames/DOMAIN.com/USERNAME/Maildir/.FOLDER_NAME

ITS A HIDDEN FILE