Installing PHP 5.2 (or 5.3) on RHEL5 the easy way

Just replace the stock PHP with one from the IUS Community project.

rpm -Uvh ius-release-1.0-6.ius.el5.noarch.rpm
yum install yum-plugin-replace
rpm -qa | grep php
yum replace php --replace-with php52
/sbin/service httpd restart



Moving /tmp to RAM and pleasing SELinux on RHEL5

On a box that had lots of unused memory, I decided to move /tmp to memory. But getting SELinux to stop complaining was a challenge. I would get log entries in /var/log/messages like

kernel: SELinux: security_context_to_sid(system_u:object_r:tmp_t) failed for (dev tmpfs, type tmpfs) errno=-22

Here is the line that I added to /etc/fstab that caused it to mount correctly:


Subtle Indicator You've Been at the CLI Too Long Today

What you see:

What you think:


Installing an Intel X25-E SSD on FreeBSD 8.1

This is on an existing FreeBSD install. I'm not booting from the SSD; I'm just adding it so it will show up at /var/cache.

# mkdir /var/cache

I installed the solid-state drive on a Dell OptiPlex 755. I unplugged the SATA cable from the DVD-ROM drive (who uses optical media anymore?) and connected the cable from SATA1 on the motherboard to the SSD.

When booting, FreeBSD found the drive:



Subscribe to SysArchitects RSS