Difference between revisions of "Virtual Machine Setup Development"
From GLMWiki
(→Common applications for php development) |
|||
Line 17: | Line 17: | ||
sudo pear channel-discover pear.php-tools.net | sudo pear channel-discover pear.php-tools.net | ||
sudo pear install pat/vfsStream-beta | sudo pear install pat/vfsStream-beta | ||
− | + | xdebug | |
+ | sudo pecl install xdebug | ||
php setup | php setup | ||
Revision as of 10:27, 10 January 2011
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
pear
sudo pear upgrade PEAR sudo pear upgrade-all
phpunit
sudo pear channel-discover pear.phpunit.de sudo pear channel-discover pear.spmfony-project.com sudo pear install phpunit/PHPUnit
phing
sudo pear channel-discover pear.phing.info sudo pear install phing/phing
vfsStream
sudo pear channel-discover pear.php-tools.net sudo pear install pat/vfsStream-beta
xdebug
sudo pecl install xdebug
php setup
set your ini files to max memory of at least 60 or maybe 200
/etc/apache/cli/php.ini
safe_mode_allowed_env_vars = PHP_,GLM_ 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}
--kc8wxm 14:08, 7 January 2011 (UTC)