Host Tornado fixpath.sh shell script to fix broken or incorrect paths

Have you ever transferred over your own site or a customers site from another server just to find out that it does not work because the full path has changed? This can commonly happen whenever you transfer over a Joomla, WordPress, Drupal, or any other site but the account now has a username.
So for instance, the path to your public_html folder used to be
but now on the new server it has changed to
or MySQL usernames changed.

Enable fopen only for a specific cPanel or linux user with suPHP

For security reasons most hosts will have fopen disabled. This is for security reasons but there are also times when it is legitimately needed. Below I will show you how to enable fopen for a single cPanel user instead of server wide.

This may be the error you get:


Here’s how to fix it:


How to keep cPanel httpd.conf settings from being reset or removed

Have you made a change to the
file and it’s not sticking? This is because you are not supposed to edit that file directly on a cPanel server! Many linux guru’s have made this mistake just because they are not used to cPanel!

When you need to edit the httpd.conf file or settings for a specific cPanel user you should do so from the (more…)

Clear Log or any file without removing or deleting it and retaining permissions

There are many other ways to do this, but an easy way to remember is this command: