Ubuntu

fuser process using cpu useage 100%+ in ubuntu 11.1x

php5 cronjob fuser designed to clean out php sessions is eating the cpu on ubuntu boxes. This is the content of /etc/cron.d/php5 on 11.10: 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s…

Read More...

Ubuntu – Kill all zombie processes

kill -9 `ps xawo state=,pid=|sed -n ‘s/Z //p’`

Read More...

Favorite New Ubuntu Shell apps

mutt – email client http://www.mutt.org/ “All mail clients suck. This one just sucks less.” -me, circa 1995 htop – interactive process viewer http://htop.sourceforge.net/

Read More...

MySQL SSH Export and Import Database in Shell Terminal

In your favorite shell you can export a MySQL database and Import using the following. on Ubuntu, my MySQL databases are located at /var/lib/mysql/database_name To Export a MySQL Database run: mysqldump -v -u username -p database_name > dumpfile.sql To Import a MySQL Database run: mysql -v -u username -p database_name < dumpfile.sql  

Read More...

ubuntu – determine installed memory size, speed, banks, etc..

lshw -C MEMORY or, dmidecode –type 5,6,16,17

Read More...

UBUNTU check free memory and free mem empty cache

check memory usage: cat /proc/meminfo or free free command displays amount of total, free and used physical memory (RAM) in the system, as well as shoing information on shared memory, buffers, cached memory and swap space used by the Linux kernel. Syntax of free free -[options] Example usage of free free -m The command will…

Read More...

UBUNTU dpkg–configure-a E: dpkg was interrupted error

somehow my apt-get got torqued and wouldn’t work anymore. i tried running: sudo dpkg –configure -a i couldn’t do this command because the last install download was still in place. dpkg: parse error, in file ‘/var/lib/dpkg/updates/some_file’ near line 0: you can take care of this error by removing (rm) the file and rruning dpkg again…

Read More...

MySQL 5 move data directory (datadir) to new mount RAID location on UBUNTU 10

i setup a RAID 5 system for our mysql database and wanted to move it over on ubuntu 10. MOVE MYSQL first stop mysql service mysql stop i’m paranoid, so i check the status service mysql status copy your MySQL database files to the new location. in this instance my RAID drive is located at:…

Read More...

Ubuntu 10.x completely remove and clean MySQL installation

In my attempt to move the MySQL datadir I have a messed up MySQL installation. Here’s how I’ve completely removed MySQL 5.1 from Ubuntu 10.x. i have a messed up installation and need to completely remove MySQL and re-install it. Warning, this will delete *everything* associated with MySQL on ubuntu! It does give you a…

Read More...

Plesk Small Business Panel 10.2.0 Upgrade Broke Plesk Control Panel :8443

After trying to upgrade Plesk Small Business Panel 10.2.0, I got some errors and was unable to load my plesk admin control panel on port 8443. Just a White Screen… I found this on parallels forum: location: /opt/psa/admin/bin autoinstaller –select-release-latest –upgrade-installed-components –ignore-key-errors when running, looked very similar to the bootstrapper.sh fix… and guess what? running…

Read More...

plesk 10.x upgrade apache2 won’t restart after making domain changes…

This is a post I made on parallels forum. If I can get this resolved, I’ll share the solution: http://forum.parallels.com/showthread.php?p=432805&posted=1#post432805 parallels, upgrading to 10 is a mess!!!!!!!!!!!!!!!!!!!!!!! I’ve been running plesk since version 6 and have had a few problem when upgrading. Nothing to the extent of this mess I’m experiencing with my painful upgrade…

Read More...

SMTP enable port 587 on ubuntu plesk when ISP’s block port 25

On plesk 8 and greater in Mail Server Settings turn on “Enable Message Submission” If your clients still can’t send through port 587 do the following. Enable Port 587 on Plesk when ISP’s block outgoing mail You should create the file or add the record manually “submission_psa” /etc/xinetd.d/submission_psa contents: service submission { socket_type = stream…

Read More...

MCrypt PHP5 Ubuntu Install

Ubuntu: PHP mCrypt Installation mCrypt is an encryption program used on Linux systems. To install mCrypt for PHP5 on your Ubuntu Linux system: sudo apt-get install php5-mcrypt Then restart Apache with: sudo /etc/init.d/apache2 restart I needed to do this so that  phpMyAdmin would have mcrypt available. For more info about mcrypt, visit: Official site http://mcrypt.hellug.gr…

Read More...

Plesk 10 Upgrade Apache2 Restart Problem – “Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down”

Plesk 10 upgrade Apache2 won’t restart – Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Read More...

linux log files

Linux Log files and usage source: http://www.cyberciti.biz/faq/ubuntu-linux-gnome-system-log-viewer/ => /var/log/messages : General log messages => /var/log/boot : System boot log => /var/log/debug : Debugging log messages => /var/log/auth.log : User login and authentication logs => /var/log/daemon.log : Running services such as squid, ntpd and others log message to this file => /var/log/dmesg : Linux kernel ring…

Read More...

Plesk Ubutnu Qmail runs in shell but not in Plesk Services Management

the weirdest thing happened… /etc/init.d/qmail restart wouldn’t give any errors. however, trying to restart with plesk services management and the service would never start. this is because plesk checks Qmail with: telnet localhost 25 AND /usr/local/psa/admin/bin/mailmng –status-smtpd hmmm, qmail is running with the status check but not listening / bound to port 25. what controls…

Read More...

Plesk Ubuntu Remove DrWeb!

the MAGIC apt command to remove all of DrWeb: apt-get remove drweb-base drweb-bases drweb-common drweb-daemon drweb-updater psa-drweb-configurator root@blue:/home/primax# apt-get remove drweb-base drweb-bases drweb-common drweb-daemon drweb-updater psa-drweb-configurator Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: xulrunner-1.9-gnome-support Use ‘apt-get autoremove’ to remove them….

Read More...

PLESK upgrade 10.x from 9.5 stalls, quits, sucks!

——————————————————PLESK upgrade from 9.5.x to 10.x went like crap on my ubuntu server. Finally found this fix. # cd /usr/local/psa/bootstrapper/pp10.9.0-bootstrapper/# ./bootstrapper.sh repair this bootstrapper.sh repair ran for about 2 hours on our server. let it go. i’d like to point out that i upgraded everything in dpkg ——————————————————- /usr/local/psa/admin/bin/ ./httpdmng –reconfigure-all root@blue:/usr/local/psa/admin/bin# ./httpdmng –reconfigure-allroot@blue:/usr/local/psa/admin/bin# /etc/init.d/apache2…

Read More...

Ubuntu Backup MySQL Shell Script

found this great tutorial to backup plesk: http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/ #!/bin/bash

Read More...

plesk ubuntu disk usage size incorrect

plesk ubuntu says the client is 36.8gb when checking the file size in terminal with “du -hs” says the domain is only using 8gb. root@blue:/var/www/vhosts/files.millimetercreative.com# du -hs 8.4G . this domain has no mail accounts and @11mb in logs… i tried restarting plesk ubuntu with root@blue:/var/www/vhosts/files.millimetercreative.com# /etc/init.d/psa restart ii just tried psa stopall and start……

Read More...