" Shell Scripts "

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…)