Record of some of the computer tech I deal with so that it's documented at least somewhere.

Saturday, 19 November 2011

Linux From Scratch Part 2

Ok, after making a mistake I wrote a script to build the build tools for me. (sorry about the .txt my web server likes octects) I guess this is what Stage1 is in Gentoo. Edit your options I've got a Quad core with 8Gb RAM :> export MAKEFLAGS="-j 5" export EXTRACT=/dev/shm The tools built for me in about 20 mins. My SBU : real 1m2.852s user 1m48.902s sys 0m44.976s

Wednesday, 16 November 2011

Linux From Scratch Part 1

blogger happily deleted this massive post it was a script to download all the sources

Friday, 11 November 2011

Compilin' SSL Apachey with PHP, MySQL client

I ended up writing a bunch o'scripts http://www.maht0x0r.net/build_lamp.zip

A few scripts for building a small self-contained Apache2 / PHP Installation.

PHP has Mysql + SSL and includes JSON but not XML

Scripts here for fetching the source files by version
Untarring them
and then building them all

Make a directory for putting it all under and then run 'em
e.g.
mkdir -p /opts/LAMP cd /opts/LAMP unzip /tmp/build.zip [vi build/build.vars] # this hard codes the version numbers, that's the point ./build/fetch ./build/build /opts/LAMP/apache2/bin/apachectl start

  • By default it checks for a running mysql to find the sock file when creating php.ini
  • docroot ends up being /opts/LAMP/www/public_html
  • php path is .:/opts/LAMP/www/php
  • default port is 801
  • default user:group is gopher:gopher
also has
rm.src for deleying the source trees
rm.tar for deleting the tarfiles
untar for re-extracting the tarfiles