error when copying or overwriting the same directory name linux

my directory structure in linux – centos: /home/html/prod/wordpress/update/ /home/html/prod/wordpress/ /wordpress/ is my wordpress install, and /update/ is my unziped download files and directories. The errors I kept getting when trying to move or copy the entire directory while sitting in /home/html/prod/wordpress/update/ was: mv: cannot move `wp-admin’ to a subdirectory of itself, `../wp-admin’ mv: cannot move ...

How to delete all mail in queue for cPanel exim

I ran into an issue where a user was spamming and queue up thousands of email in our cPanel server. To clear it out, I did this: /etc/init.d/exim stop exim -bpru | awk {'print $3'} | xargs exim -Mrm or exim -bpru|grep frozen|awk {'print $3'}|xargs exim -Mrm /etc/init.d/exim start I had about 120k emails in ...

Fatal error: Allowed memory size of 134217728 bytes exhausted – MySQL error – PHPMyAdmin 1

I had a client trying to import a 200M zip file to phpmyadmin to import into his MySQL database, he kept receiving this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 201380904 bytes) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/zip_extension.lib.php on line 65 It ends up that phpmyadmin is using its own php.ini config, and ...

Copying cPanel resller account to cPanel server with root access

So I was in the process of moving a users cPanel account from an old server where he only had Reseller access to, on to my server, where I have root access. Typically you can use the method of the built in transfer within cPanel, but it is required you have root access on both ...