Categories
Linux

internal server error with CSF (Config Server Firewall) in cPanel after upgrade in cPanel

So I was receiving this error after cPanel upgraded:

Internal Server Error

500

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi): subprocess exited with status 2

 

This did not fix it:

 

/usr/sbin/csf -x
/scripts/perlinstaller --force URI
/usr/sbin/csf -e
/usr/sbin/csf -u


If that doesn’t work this will:

 

curl -s configserver.com/free/csupdate | perl

 

 

Categories
Linux

How to move files that are older then x days in linux

I found this useful:
sudo find ./* -mtime +2 -exec mv {} /hosting/dropbox/ops/user/client/ \;
breakdown…
./* is the current directory, including all files, but you could use full path.
mtime +2 is 2 days old
mv is the command being executed
and after the brackets is the directory the files are moving to
Categories
Linux

Installing ImageMagick/Imagick on a cPanel Server

I was having issues with my Zen install not being able to handle large images, so I read around and decided to move image cache’ing over to ImageMagick, instead of the GD library. This is what you need to do to install/enble ImageMagick on your cPanel server :

You’ll need to be logged in as root on your VPS/Server :

1. Log into your server as root
2. Create a new directory as below :
mkdir /home/cpimins
3. cd /home/cpimins
4. wget http://layer1.cpanel.net/magick.tar.gz
5. tar zxvf magick.tar.gz
6. cd magick
7. /scripts/installrpm ImageMagick
8. /scripts/installrpm ImageMagick-devel
9. sh ./install

Now we need to get the module for PHP installed :

Log into WHM >> Software >> Module Installers >> PHP Pecl and install imagick to get it binding to PHP properly.

After you do that, restart HTTPD/Apache service and you’re golden!

known issue with transferred domains :

If you do not see this in your php.ini file, or it not functioning properly, then you should go to the directory of the issue’d domain example : /home/domainuser/ and rename php.ini to php.ini.bak

Enjoy!