css (1) jQuery (7) linux (38) mac (70) php (29) python (1) svn/git (9) trac (4) ubuntu (1) virtualbox (6) vista (2) windows (14)

Wednesday, 18 March 2009

Offline php manual

When away from home sometimes I want to access the php manual but don't have any net or at least not a decent connection, so here is how to download a mirror of the php site to your mac.

Assuming you're running an apache web server set up to handle php requests use the following shell script.

rsync -avzC --timeout=600 --delete --delete-after --include='manual/en/' --include='manual/en/**' --exclude='manual/**' --exclude='distributions/**' --exclude='extra/**' PATHTODOWNLOADTO

change PATHTODOWNLOADTO to where you want the manual to go. (Note don't run this more than say once a day or you may get ipbanned by

Friday, 13 March 2009

Oh god not again...

ok so I'm at Manchester airport and there's two rabbis on the plane....why is it everywhere I go rabbis follow. So....odd.
Sent from my BlackBerry® wireless device

Tuesday, 10 March 2009

core file debugging

Recently I recompiled apache/php with more features for future "just in case I need it" use.

One of these was suphp and eaccelerator. Now eaccelerator only works with dso or fcgi configurations of apache...bummer I'm using dso and suphp so suphp is crashing eaccelerator and creating core dumps all over the sodding place..carp...

Solutions, well firstly remove eaccelerator from suphp php.ini

Secondly core dumps shouldn't really be created all over the place so to disable them I found this post it works perfectly! Now no more core dumps!

Now to find any core dumps left use the following command

find / -regex -path /proc -prune '.*core\.[0-9]*'

the -path /proc -prune excludes the /proc folder

(this is assuming your core dumps append the pid of the file to them if not use find / -name core)

To see what made the core type file [pathtofile]

To debug it type gdb [path to executable found from above command] [path to core file]

Monday, 9 March 2009


I forgot when making all my svn posts about how to add the sasl authentication.

In the svnserve.conf file enable sasl and set a realm say...'realm' (how original)

Then run the command saslpasswd2 - c -u realm username

Replacing realm with the realm and username with the username

Vista Auto Login

On windows XP I used the power toys to enable auto login for my pc, now I am on vista I'd like to do the same, thanks to how to geek I now know how!

svn centos

Centos is based on red hat which doesn't update the version numbers of software it distributes via yum since svn requires apr 0.9.7+ and centos 4 comes with apr 0.9.4 upgrades are needed!

First download apr and apr util and subversion from the respective sites.

Extract the files.

Enter the apr directory type ./configure --prefix=[DIR TO INSTALL TO]
type make
type make install

now enter the apr-util dir and type ./configure --prefix=[DIR TO INSTALL TO] --with-apr=[PATH TO APR-CONFIG YOU JUST INSTALLED]
type make
type make install

now enter the subversion directory and type

./configure --prefix=[DIR TO INSTALL TO] --disable-mod-activation --with-sasl=/usr/lib/sasl2/ --with-zlib=/usr/local/include --with-apr=[PATH TO WHERE YOU INSTALLED APR] --with-apr-util=[PATH TO WHERE YOU INSTALLED APRUTIL]