Virtual Machine Setup Development
From GLMWiki
Common applications for php development
apt-get install
sudo apt-get install apache2 postgresql postgresql-contrib \ php5 php5-pgsql php5-sqlite php5-cli php-pear phpunit \ vim-gnome subversion cvs zsh php5-curl php5-dev netbeans
pear
sudo pear upgrade PEAR sudo pear upgrade-all
xdebug
sudo pecl install xdebug
phpunit
sudo pear channel-discover pear.phpunit.de sudo pear channel-discover pear.symfony-project.com sudo pear install --force --alldeps phpunit/PHPUnit
phing
sudo pear channel-discover pear.phing.info sudo pear install phing/phing
VersionControl SVN
sudo pear config-set preferred_state alpha sudo pear install VersionControl_SVN
vfsStream
sudo pear channel-discover pear.php-tools.net sudo pear install pat/vfsStream-beta
Appache setup
sudo chown -R www-data.www-data /var/www sudo chmod -R 2770 /var/www mkdir /var/www/server mkdir/var/www/log edit /etc/apache2/sites-availabe/default change all instances of /var/www to /var/www/server change the allowOverride on the directory /var/www/server from None to All sudo a2enmod rewrite sudo service apache2 restart
postgres setup
edit /etc/postgresql/8.4/main/pg_hba.conf Change all methods to trust sudo service postgresql-8.4 restart
php setup
set your ini files to max memory of at least 60 or maybe 200 /etc/php5/cli/php.ini safe_mode_allowed_env_vars = PHP_,GLM_ memory_limit = 200 /etc/php5/apache/php.ini extension=xdebug.so memory_limit = 200 go change the permission of the /usr/bin/phpunit file so your user can execute the file and change the /usr/share/php directory to yourself as the user /etc/apache/envars export GLM_HOST_ID={NAME} /etc/profile umask 007 export GLM_HOST_ID={NAME} sudo service apache2 restart
--kc8wxm 14:08, 7 January 2011 (UTC)