small logo

melfneerg.com

 - 'cos life is like that


[Blog]  [Pictures]  [Links]  [About
About the Author
Tudor Davies

author Tudor is a techie turned manager who fights like mad to keep his tech skills honed and relevant. Everything from web hosting, networking, *nix and the like. Constantly developing and co-ordinating with others to make the web a better (and easier to use) place.

Resurrecting a RAQ3

Monday, 14th Jan 2013  Posted @ 15:06

I have had a couple sat unused for some time and I thought it would be worthwhile turning them into something fairly useable. So here is what I did:

i/ Installed Strongbolt 1.06-03 (booted it inside VirtualBox with a bridged ethernet adapter - worked a treat)
ii/ Followed the instructions here upto and including Step 4 to get the box to CentOS 5.8 (Final)
iii/ Followed the instructions here to get Lighttpd, PHP and mySQL installed.
iv/ Followed the instructions here to upgrade PHP to 5.3.3 (believe me, this is worthwhile)
v/ Tweaked the hell out of startup. The output of

chkconfig --list

produces this:

auditd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
dc_client 0:off 1:off 2:off 3:off 4:off 5:off 6:off
dc_server 0:off 1:off 2:off 3:off 4:off 5:off 6:off
gpm 0:off 1:off 2:off 3:off 4:off 5:off 6:off
haldaemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
iscsi 0:off 1:off 2:off 3:off 4:off 5:off 6:off
iscsid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
kdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off
kudzu 0:off 1:off 2:off 3:off 4:off 5:off 6:off
lcdsleep.init 0:off 1:off 2:off 3:on 4:off 5:off 6:off
lighttpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off
lvm2-monitor 0:off 1:on 2:off 3:off 4:off 5:off 6:off
mcstrans 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mdmonitor 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mdmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
messagebus 0:off 1:off 2:off 3:off 4:off 5:off 6:off
multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mysqld 0:off 1:off 2:on 3:on 4:off 5:on 6:off
named 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off
psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off
saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xinetd 0:off 1:off 2:off 3:off 4:off 5:off 6:off


and the output of

free -m && ps aux


after a reboot produces this:

total used free shared buffers cached
Mem: 503 63 440 0 3 37
-/+ buffers/cache: 22 481
Swap: 976 0 976
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 1.0 0.1 2172 664 ? S 14:45 0:00 init [3]
root 2 0.0 0.0 0 0 ? SN 14:45 0:00 [ksoftirqd/0]
root 3 0.0 0.0 0 0 ? S< 14:45 0:00 [events/0]
root 4 0.0 0.0 0 0 ? S< 14:45 0:00 [khelper]
root 5 0.0 0.0 0 0 ? S< 14:45 0:00 [kthread]
root 7 0.0 0.0 0 0 ? S< 14:45 0:00 [kblockd/0]
root 10 0.0 0.0 0 0 ? S< 14:45 0:00 [khubd]
root 66 0.0 0.0 0 0 ? S 14:45 0:00 [pdflush]
root 67 0.0 0.0 0 0 ? S 14:45 0:00 [pdflush]
root 69 0.0 0.0 0 0 ? S< 14:45 0:00 [aio/0]
root 68 0.0 0.0 0 0 ? S 14:45 0:00 [kswapd0]
root 142 0.0 0.0 0 0 ? S< 14:45 0:00 [kseriod]
root 196 0.0 0.0 0 0 ? S 14:45 0:00 [kjournald]
root 250 0.6 0.1 2396 620 ? S s 14:45 0:00 /sbin/udevd -d
root 570 0.1 0.0 0 0 ? S 14:45 0:00 [kjournald]
root 572 0.0 0.0 0 0 ? S 14:45 0:00 [kjournald]
root 574 0.0 0.0 0 0 ? S 14:45 0:00 [kjournald]
root 800 0.0 0.0 2424 484 ? Ss 14:45 0:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient-eth0.leases -pf /var/run/dhclient-eth0.p
root 833 0.1 0.1 1828 588 ? Ss 14:45 0:00 syslogd -m 0
root 836 0.0 0.0 1776 400 ? Ss 14:45 0:00 klogd -x
rpc 845 0.0 0.1 1928 544 ? Ss 14:45 0:00 portmap
root 865 0.0 0.2 7276 1056 ? Ss 14:45 0:00 /usr/sbin/sshd
root 881 0.6 0.6 10104 3136 ? Ss 14:45 0:00 sshd: root@pts/0
root 910 0.3 0.2 2564 1172 ? S 14:45 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --l
mysql 960 0.3 0.7 22164 3784 ? Sl 14:45 0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run
root 988 0.0 0.3 9476 1680 ? Ss 14:45 0:00 sendmail: accepting connections
smmsp 998 0.0 0.2 8316 1496 ? Ss 14:45 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root 1015 0.4 0.2 2568 1360 pts/0 Ss 14:45 0:00 -bash
lighttpd 1041 0.0 0.1 5368 852 ? S 14:45 0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
lighttpd 1047 0.7 1.2 56536 6704 ? Ss 14:45 0:00 /usr/bin/php-cgi
lighttpd 1048 0.8 1.2 56532 6696 ? Ss 14:45 0:00 /usr/bin/php-cgi
lighttpd 1051 0.7 1.2 56532 6700 ? Ss 14:45 0:00 /usr/bin/php-cgi
lighttpd 1052 0.8 1.2 56532 6700 ? Ss 14:45 0:00 /usr/bin/php-cgi
root 1053 0.0 0.2 3352 1108 ? Ss 14:45 0:00 crond
root 1060 0.0 0.0 1752 384 ? S 14:45 0:00 /sbin/lcdsleep
root 1067 0.0 0.1 1772 516 ttyS0 Ss+ 14:45 0:00 /sbin/agetty ttyS0 115200 vt100-nav
lighttpd 1073 0.0 0.4 56532 2460 ? S 14:45 0:00 /usr/bin/php-cgi
lighttpd 1074 0.0 0.4 56536 2464 ? S 14:45 0:00 /usr/bin/php-cgi
lighttpd 1075 0.0 0.4 56532 2460 ? S 14:45 0:00 /usr/bin/php-cgi
lighttpd 1076 0.0 0.4 56532 2456 ? S 14:45 0:00 /usr/bin/php-cgi
root 1102 0.0 0.1 2288 844 pts/0 R+ 14:46 0:00 ps aux


vi/ Followed the instructions here to get PEAR installed and then issued

yum install pcre-devel
pecl install apc
service lighttpd restart


to get apc (Advanced PHP Cache) installed and running.
So far everything is running well. I wouldn't say it was fast but perfectly acceptable for a dev environment. Next up, compile and install Varnish and push the throughput up :)

[ no comments : Add ]

Tweet




layout and initial css based on the Qtractor page