Export/Import Mysql Database

Export a database mysql Plesk Server To export a single table from your database you would use the following command: Import a database or table # mysql -p -u username database_name < file.sql [/bash] For Plesk server [bash] # mysql -u admin -p`cat /etc/psa/.psa.shadow` database < /tmp/database.sql [/bash] To import a single table into an ... Read more

Check disk IO

To check disk IO: dd bs=1M count=512 if=/dev/zero of=test conv=fdatasync 512+0 records in 512+0 records out 536870912 bytes (537 MB) copied, 5.57475 s, 96.3 MB/s

Helo incorrect?

There’s a test available at http://cbl.abuseat.org/helocheck.html that will show you how the server is actually HELOing. For Qmail: # cat /var/qmail/control/me mail.fromthepavilion.org

Cron Job not working in Plesk Domain

Check you cron job. Make sure the path are okay. This is likely due to Plesk using a chrooted environment. The user that is executing the script doesn’t have access to PHP. You have a few options: 1. Add PHP to the user’s chroot – http://kb.sp.parallels.com/en/115842 2. Disable the chrooted environment entirely – http://blog.blums.eu/2013/01/25/parallels-plesk-panel-11-non-chrooted-cronjobs 3. … Read more

Puppet CentOS 6 install

Source: http://www.how2centos.com/centos-6-puppet-install/ Install the Puppet Repository # rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm Install the EPEL x86_64 YUM Repository # rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Install the Puppet Master packages # yum install puppet-server Install the Puppet Client packages # yum install puppet See more – HERE See Puppet install http://docs.puppetlabs.com/guides/install_puppet/install_el.html

Find reason for linux server crash

Check the logs /var/log/messages, which stores logs from many native CentOS services, such as the kernel logger, the network manager, and many other services that don’t have their own log files. This log file tells you if there are kernel problems (kernel panic messages) or kernel limits violations, such as the number of currently open … Read more

Suspend / Unsuspend domain via command line Plesk

  Suspend a domain via command line Plesk /usr/local/psa/bin/domain -u yourdomain.com -status disabled Domains are not listing and showing following error on Plesk Panel: [stextbox id=”alert”]The webspace was suspended. All sites hosted with the webspace are not available.[/stextbox] Unsuspend domain via command line Plesk /usr/local/psa/bin/domain -u yourdomain.com -status enabled

Who is Logged-In on Your Linux System

w command is used to show logged-in user names and what they are doing. The information will be read from /var/run/utmp file. The output of the w command contains the following columns: Name of the user User’s machine number or tty number Remote machine address User’s Login time Idle time (not usable time) Time used … Read more