This is an old revision of the document!


AMP Stack: PHP Configuration

PEAR Installation

Download PEAR and install:

Ubuntu:

aptitude -y install php-pear
pear update-channels
pear upgrade-all

Gentoo:

wget http://pear.php.net/go-pear.phar
php go-pear.phar

Install base packages:

pear install Mail Mail_Mime Net_SMTP

Yii Installation

Download and unpack source code:

cd /var/www/client-www
wget http://beandog.digitaltrike.com/yii-1.1.10.r3566.tar.gz
tar zxf yii-1.1.10.r3566.tar.gz

Have developers run this if they want to install it:

su - client-www -c "yes yes | /var/www/client-www/yii-1.1.10.r3566/framework/yiic webapp /var/www/client-www/htdocs"

Setup writable directories:

newacl -g www-data /var/www/client-www/htdocs/assets
newacl -g www-data /var/www/client-www/htdocs/client_files

Install PEAR packages

Install packages needed by development environments:

pear upgrade-all
pear install Archive_Tar
pear install Console_Getopt
pear install Log
pear install Mail
pear install Mail_Mime
pear install Net_SMTP
pear install Net_Socket
pear install PEAR
pear install PHP_CodeSniffer
pear install Structures_Graph
pear install XML_Util
pear config-set auto_discover
pear install pear.phpunit.de/PHPUnit
pear install phpunit/DbUnit
pear install phpunit/PHPUnit_Story
pear install phpunit/PHP_Invoker
pear install phpunit/PHPUnit_Selenium

phpcheck and CGP

Ubuntu

wget -q http://beandog.digitaltrike.com/apache/cgp -O /etc/apache2/conf.d/cgp
service apache2 restart