" Development "

How to install Git under CentOS running cPanel

Recently when working on creating a new bash script to calculate inode usage I attempted to install Git on a CentOS 5 cPanel server and got a lot of Perl errors. After running the install command from Yum as you can see in the output below it was complaining about dependencies.

Here’s a few of the errors that I received when trying to install

(more…)

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
/home/myuser/public_html/
but now on the new server it has changed to
/home/myuser2/public_html/
or MySQL usernames changed.
(more…)

How to create a well structured website using PHP and include function (1 header and footer file)

In this example i’m going to show you how to create a very simple and easy website using PHP and the PHP Include function. This is a great way to create your website because you only need to have one header and one footer file! This is how i structure almost all my websites because think about it, if you need to change an image, a link, or even a typo, if you are using regular HTML files you have to edit each one individually! This will show you how to save yourself a LOT of time!

First thing you will need is a host, if you do not have one you can get a free account from Host Tornado at http://www.hostt.net.

(more…)

How to change WHMCS breadcrumbs portal index page from index.php

In this tutorial we are going to go over how to change or shall we say “fix” the fact that WHMCS DOES NOT allow you to change the “index.php” page for WHMCS portal in the breadcrumbs.  This can be a problem for people who DO NOT want to create a subdirectory or sub folder to put their WHMCS install in.  If you notice on any WHMCS install in the breadcrumbs the “portal” link is set to index.php and it’s not changeable.  This became an issue for me for my new hosting company Host Tornado (http://www.hostt.net) because i have my WHMCS install on my home directory, so if a user is in the customer portal and wants to go back to the index page it takes them to the main page.  Not acceptable. So basically WHMCS is REQUIRING that you create a subdirectory or subfolder, but if you follow the tutorial below i will show you a way to get around that with a little bit of PHP 🙂
(more…)