Working Ninja
2017-08-27T08:44:20

Python 2.7 is not provided on CentOS 6 because Yum depends on Python 2.6. Simply installing 2.7 over 2.6 will break Yum. Thankfully, Red Hat provides us with an alternate installation method through their SCL project.

First, get Python 2.7 installed:
https://www.softwarecollections.org/en/scls/rhscl/python27/

Next, add the project path …

READ MORE

2017-07-12T19:50:17

Using IUS (Inline with Upstream Stable)--a nifty repository provided by EPEL--we can upgrade beyond PHP 5.4 by first removing our current version of PHP, installing our preferred version (5.6 in our case), and then restarting Apache:

$ sudo yum remove php-cli mod_php php-common $ …

READ MORE

2016-03-31T22:34:52

I must have it saved somewhere but it was nowhere to be found. The password was lost. My root account was forever secure--or was it?

# service mariadb stop # mysqld_safe --skip-grant-tables & # mysql -u root > USE mysql > UPDATE user SET password=PASSWORD("mynewpassword") WHERE User='root'; > …

READ MORE

2016-03-26T10:26:48

GitLab was throwing me a 500 server error this morning after an upgrade via yum. To troubleshoot, I ran the self diagnose command from terminal:

# gitlab-rake gitlab:check

Which gave me the following error to fix:

All migrations up? ... no Try fixing it: sudo …

READ MORE

2015-01-02T18:01:19

Here’s the process I followed to get ImageMagick installed on a CentOS 5 DV Server over at Media Temple. I needed ImageMagick to convert PDFs to JPG files.

  1. yum install ImageMagick*
  2. pecl install imagick

    Here’s where I encountered the first hiccup:

    shtool at ‘/var/tmp/imagick/build/shtool’ …

READ MORE

2014-09-20T17:48:07

Reading log files that are from another time zone can add an additional (and unnecessary) layer to your troubleshooting headache. Most of the servers that I touch are on the Eastern seaboard and thus, depending on the earth’s tilt, the offset can vary (thanks UTC!). To resolve this on …

READ MORE