Archive for the ‘ Cpanel ’ Category

Problem is I can’t upload directory including sub-directories and files using command-line ftp. I searched for similar problem and looks like you can’t do this using command line ftp, unless you create a script. One solution I found is the use of “lftp“.

# lftp ftp_host
user ftp_user ftp_pass
mirror source target
(download entire directory tree)
mirror -R source target
(reverse mirror; upload entire directory tree)

Usefull when transferring files between servers where you only have ftp access.

I got a package dependency issue when updating our 64-bit CentOS server, which was caused by two perl packages installed (i386 and x86_64).
Read the rest of this entry

Got a problem when install libvorbis
configure: error: must have Ogg installed!
Read the rest of this entry

If rpm / yum command hangs during operations or you see error messages – it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database:
Command to rebuild rpm database

rm -f /var/lib/rpm/__db*
rpm --rebuilddb -v -v

Read rpm / yum man pages for more information

How can I repair corrupt MySQL tables?

Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables.

Login to your server via SSH and change directories to the database that is having problems.
cd /usr/local/mysql/var/[DBNAME]/
You will need to replace [DBNAME] with the actual name of your database.
Read the rest of this entry