Friday, June 12, 2015

ffmpeg-php error

If you get an error as shown below during the compilation of ffmpeg-php ---------------------------------------------- configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option ---------------------------------------------- Install the below packages: --------------------------- yum install ffmpeg-devel -------------------------...

Saturday, February 28, 2015

ImageMagick Installation Error : ImageMagick MagickWand API configuration program... configure: error: not found.

If you get the below error while installing PHP extension imagick. I used the command "pecl install imagick" and got the below error: To fix this error install the ImageMagick-devel package. yum install ImageMagick-devel In Ubuntu, you can resolve this by installing a few extra packages. sudo apt-get install libmagickwand-dev libmagickcore-d...

Friday, January 2, 2015

Secure your cPanel account from spamming

General Guidelines: ------------------- (). Use strong passwords (compromised accounts tend to send a lot of spam!) (). Check the server for malware. cPanel provides ClamAV in WHM >> Configure ClamAV Scanner. More information about this program can be found in our documentation: - - - - - - - - - - - - - - - - - - - - - - - - - https://documentation.cpanel.net/display/CKB/Security+and+Virus+Scans+in+WHM - - - - - - - - - - - - - - - - - - - - - - - - - (). Update web applications to their most recent versions (such as Wordpress, Joomla, etc.) You can also use the following settings in WHM >> Tweak Settings: - - - - - - - - - - - - - - - - - - - - - - - - - (). Track email origin via X-Source email headers (). Restrict...

Linux : RAM usage vs Swap

How Linux uses RAM (very simplified) Each application can use some of your memory. Linux uses all otherwise unoccupied memory (except for the last few Mb) as "cache". This includes the page cache, inode caches, etc. This is a good thing - it helps speed things up heaps. Both writing to disk and reading from disk can be sped up immensely by cache. Ideally, you have enough memory for all your applications, and you still have several hundred Mb left for cache. In this situation, as long as your applications don't increase their memory use and the system isn't struggling to get enough space for cache, there is no need for any swap. Once applications claim more RAM, it simply goes into some of the space that was used by cache, shrinking...

Sunday, October 26, 2014

Disabling Core Dumps in cPanel

I recently found a (cPanel) server was generating over 100Gb of core dumps every time a bad PHP script died or Apache died. Writing these generally useless (who actually debugs these on a live web server) to disk is a pointless waste of disk I/O, especially in a VPS environment. Here is two methods of disabling core dumps;cPanel/WHM Login to WHM Select ‘Tweak Settings’ Search for ‘core’ Turn ‘Generate core dumps’ off. Linux I usually do this on cPanel servers also, just to be double sure! 1. Disable core dumps for all users. Edit /etc/security/limits.conf and check that * hard core 0 exists 2. Disable core dumps for setuid programs echo 'fs.suid_dumpable = 0' >> /etc/sysctl.conf sysctl -p 3. Finally, set...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews