Archive

Archive for October, 2010

linux find the last modified file in directory

October 22nd, 2010 No comments

ls -tr | tail -n 1

Categories: Uncategorized Tags:

Symfony 1.4 quick commands

October 8th, 2010 No comments

I always forget these commands… so I’m posting it here, so I can find them again easily.

Getting a value out of a loaded yaml config file.

[project root]/app/frontend/config/app.yml

all:
.general:
api_key: ASDFASDFASDFASDF

sfConfig::get(‘app_api_key’);
will return “ASDFASDFASDFASDF”;

Categories: Uncategorized Tags:

Build PHP 5.3.3, on centos 5.5

October 1st, 2010 1 comment

I’m assuming you have a fresh install of centos 5.5.


$> yum groupinstall "Development Tools"

$> wget http://us.php.net/get/php-5.3.3.tar.bz2/from/www.php.net/mirror

$> tar xvf php-5.3.3.tar.bz2
$> yum install mysql-server httpd-devel-* libxml2-devel-* openssl-devel* xmlsec1-openssl-devel-* libpng* libjpeg* curl-devel libmcrypt* mysql-devel* mysql.*

$> cd php-5.3.3
$> ./configure --with-mysql=shared --with-openssl --enable-pdo --with-pdo-mysql=shared --with-mhash=shared --enable-soap=shared --with-config-file-path=/etc/ --with-apxs2 --with-mysqli --enable-zip --enable-shared --with-curl --enable-mbstring=all --enable-maintainer-zts --with-jpeg-dir=/usr/lib/ --with-libdir=lib64 --enable-soap --with-pdo-mysql --with-gd --with-mcrypt

$> make; make install;

$> service httpd restart

and there you go… php 5.3.3 on the box…

Categories: Uncategorized Tags: