All articles in Tips and Tricks

Using the cPanel Android App

If you’re always on the go and often don’t have a computer or laptop to hand, why not check up on your cPanel server using the cPanel Android App. Although not as advanced as the interface you’ll see if you login from a computer, basic functions are available such as: . . . Read more

SSH known_hosts problem

When a domain has been moved from one server to another an issue with SSH logins may occur. The warning dialog that most SSH programs give will look like this: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone . . . Read more

Why allow_url_include is evil

The PHP option allow_url_include allows to include a remote file as PHP code (so it’ll be actually executed on a local server) via a URL. For security reasons you should never use this feature. If a web software claims to require this feature you should look into alternative and never . . . Read more

IFrame Injection Hack – Recovery

If you’ve noticed traces of iframe injection attack on your website, you can use the following steps to try reverse the damage. [alert]Backup your data prior to beginning this procedure.[/alert] Use the following command to search for affected files in your web directory. find . -type f | xargs grep . . . Read more

Common paths in cPanel and WHM

For those users who use cPanel/WHM on their virtual or dedicated servers the following article describes common system paths and utilities. Paths of Base Modules PHP /usr/bin/php MySQL /var/lib/mysql Sendmail /usr/bin/sendmail ImageMagick /usr/local/bin/convert or /usr/bin/convert Tomcat /usr/local/jakarta/tomcat Perl /usr/bin/perl Ruby /usr/lib/ruby/ Ruby Gems /usr/lib/ruby/gems FFMPEG /usr/bin/ffmpeg Mplayer /usr/bin/mplayer LAME /usr/local/bin/lame . . . Read more

Uploaded file is 0 bytes

So you’ve just uploaded a file and it appears as 0 bytes on your server. Most likely there was a problem with the upload: The file was corrupted during transfer. This could have been caused by connectivity glitch between your PC and server Full disk space on the server. If . . . Read more