OCI Instance stuck in “starting”, “stopping”, “rebooting”, what to do?

What to do when your Oracle Cloud Infrastructure instance gets instance Recently right after doing a regular apt-get dist-upgrade my OCI instance got stuck for a few hours in the “reboot” state. Using the web GUI to restart didn’t work, and the result was the same through the command line…. Continue reading

MediaTemple: Enable Imagick on your GS

Here's how to enable Imagick on your GS:   1. Download the latest stable from http://pecl.php.net/package/imagick   2. Create folder to store the compiled module: mkdir /home/$SITEID/data/lib mkdir /home/$SITEID/data/lib/php/     3. Uncompress it tar -xvzf imagick-3.1.2.tgz cd imagick-3.1.2   4. Configure it with phpize (I'm using php 5.5.5 on… Continue reading

Hosting: Enabling Redis class on MediaTemple’s gridserver (gs)

Here's how I enabled access to a Redis server from my (GS) gridserver: 1. Store your SITEID in a variable: export SITEID=`pwd | awk -F\/ '{ print $3 }'`   2. Create a folder to store the redis.so module mkdir /home/$SITEID/data/lib mkdir /home/$SITEID/data/lib/php/   3. Get the Redis PECL package… Continue reading

Linode: Install mysql from package

  # pacman -S mysql resolving dependencies… looking for inter-conflicts… Targets (3): libmysqlclient-5.5.30-7  mysql-clients-5.5.30-7  mysql-5.5.30-7 Total Download Size:    12.81 MiB Total Installed Size:   123.89 MiB Proceed with installation? [Y/n] y :: Retrieving packages from extra…  libmysqlclient-5.5.30-7-x86_64        3.4 MiB   129K/s 00:27 [##################################] 100%  mysql-clients-5.5.30-7-x86_64       834.8 KiB   115K/s 00:07 [##################################] 100%  mysql-5.5.30-7-x86_64                … Continue reading

Linode: Update your ArchLinux VPS

connect 2 sessions on your Linode   On the second, run this: dd if=/dev/urandom of=/dev/null   on the first one, do the following: pacman-key –init   You can stop the dd process on the second connnection pacman-key –populate archlinux pacman-key –refresh-keys   Update pacman pacman -Sy pacman   Update your… Continue reading

Raspberry Pi: installing a LAMP server

Let's put the Raspberry Pi to good use:   1. Install Mysql sudo pacman -S mysql 2. Start your server # systemctl start mysqld 3. Secure your mysql installation # /usr/bin/mysql_secure_installation ——————- NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL       SERVERS IN PRODUCTION USE!  PLEASE… Continue reading

Hosting: Backing up your MediaTemple using rsync and a linux box

Follow these steps to setup a decent backup solution for your MT hosting (you can adapt this to any other hosting that offers SSH and RSYNC access). First you'll want your linux box to be able to SSH into your hosting without a password using a SSH key instead. Then,… Continue reading

LAMP: Installing on Slackware 13.37 64-bit

Ongoing post:   1. Download Apache ( http://httpd.apache.org ) tar -xvjf httpd-2.2.21.tar.bz2 cd httpd-2.2.21 I like Slackware, but I also like the Apache layout installed in Debian distributions, so: ./configure –enable-layout=Debian–enable-module=most –enable-mods-shared=most –enable-ssl=shared make make install 2. PostgreSQL ./configure –with-perl –with-openssl gmake all gmake install     PHP ./configure –with-pgsql… Continue reading

(vps): Noexec and /tmp troubleshooting

Chrooted /tmp directory There is also a new method that ensures that no processes currently accessing /tmp are interrupted in any way. This also ensures that your /tmp that allows execution is never accessible to currently running processes. This limits your exposure to possible exploits. First, create a chrooted environment… Continue reading

Linux:: SSH configuration file

To save some typing you can create aliases to the servers you frequently access via ssh. This can be accomplished by either editing the global file ( /etc/ssh/ssh_config ), if you’re root and and to make changes for all the users, or your own config file ( $HOME/.ssh/config ). Follow… Continue reading