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

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

No comments: