Tag: Automation

  • Old versions of PHPMyAdmin and Automated Scanning

    It has come to our attention that we have had a decent number of  alerts about machines scanning on our networks in the last day. All of them have been running hacks from /tmp named things like /tmp/dd_ssh etc. These files are owned and run by the apache user, and on further investigation all put…

  • WordPress Mass Upgrade Script 3.0.1

    This script will search /var/www (changeable in a variable) for any wordpress installs and make sure its upgraded to the latest version. It will run a backup to /root/wp_upgrade/ of all files and database before doing anything with the site in case of major catastrophe. It pays to check each site after the upgrade to…

  • Virtualmin on the command line

    We often encourage our users to use software which is better, and does things in a standard way. When it comes to control panels we prefer Virtualmin. It works with the distro you are using and the packages that come with it rather than setting up things in its own odd way and tieing you…

  • WordPress & WordPress MU mass upgrade script 3.0

    Sorry for the slower than usual update this time. I was rather busy/sidetracked and left it for a day or two before doing it. Since it wasn’t a exploit fix release i figured it wasn’t a major. Anyway, here goes the new wordpress mass upgrade script. I no longer have a wordpress MU available to…

  • inode problems and full disks

    Today we had a customer who had an interesting problem. They were getting the message ‘disk is full’ despite having plenty of free space. Luckily for him, my first thought was ‘inodes?’ I logged in and checked his inode usage

  • Formatting problems and Syntax Highlighting in wordpress

    As you may have realized, we use wordpress on our blog. Its simple and easy and nice to use, however it doesnt come without its oddities which can be a pain in the butt for a technical blog. — being translated into em-dash When doing firewall scripts or shell scripts you often use the double…

  • Did you know we have a DNS API?

    Seems some cool features get lost, and only staff know about them rather than the customers. I thought I’d point out to people we have an API for our DNS. This can be used by scripts for adding domains to your own VPS using PHP curl, or similar other things. Another excellent use is fail…

  • DNS import script project. Any takers?

    A bit of a cheeky request… I’m looking for something that will import a BIND zone file in our name servers. Anyone interested in having a crack at that? I’m imagining something like a bash/perl/ruby/python script that parses a BIND zone file then uses our DNS api per http://rimuhosting.com/dns/dyndns.jsp to pop the values into our…

  • wordpress & wordpress MU mass upgrade script 2.9.2

    Okay, I have rolled the usual ‘upgrade all instances of wordpress’ script. In this version i finally got around to checking the permissions prior to updating and changing the ownership of them back to that owner afterwards. This was breaking things and could be rather annoying before if you had more than 5  sites to…

  • Using incron to autocommit changes in a folder

    I found this excellent blog post giving a nice example of incron useage at http://andrew.mcmillan.net.nz/blog/using_incron_to_autoversion_a_directory Normally when I edit files in /etc, I am focused on achieving something now, and not on being able to undo it later. To this end I have written myself a script which will commit the contents of a directory…