|
10 years ago | |
---|---|---|
.. | ||
cakephp | 11 years ago | |
hhvm | 11 years ago | |
php | 11 years ago | |
php-codeigniter | 11 years ago | |
php-fatfree | 11 years ago | |
php-fuel | 11 years ago | |
php-kohana | 11 years ago | |
php-laravel | 11 years ago | |
php-lithium | 11 years ago | |
php-micromvc | 11 years ago | |
php-phalcon | 11 years ago | |
php-phalcon-micro | 11 years ago | |
php-phpixie | 11 years ago | |
php-pimf | 11 years ago | |
php-senthot | 11 years ago | |
php-silex | 11 years ago | |
php-silex-orm | 11 years ago | |
php-silica | 11 years ago | |
php-slim | 11 years ago | |
php-symfony2 | 11 years ago | |
php-symfony2-stripped | 11 years ago | |
php-yaf | 11 years ago | |
php-yii2 | 11 years ago | |
php-zend-framework | 10 years ago | |
php-zend-framework1 | 10 years ago | |
phreeze | 11 years ago | |
README.md | 11 years ago |
Many servers use the php
, php-fpm
, or other binaries. If your
server launches with sudo
(e.g. sudo php-fpm
) then you should be
aware that using sudo resets the $PATH
environment variable, and your
specific binary may not be the one being used. The solution is to
always use sudo <full-path-to-my-binary>
. For example, cakephp
's
bash_profile.sh
sets the variable $PHP_FPM
to be the full path
to the php-fpm
binary that cakephp
wants, and then uses sudo $PHP_FPM
to ensure that the php-fpm
binary used by sudo is the exact binary
desired.
Many PHP apps use https://getcomposer.org/ for dependency management.
To support this, use fw_depends php composer
(note that order is
important, composer requires php and therefore should be listed after
PHP), and then add $IROOT/php-composer
to the PATH
in your bash_profile.sh
.
For example:
export COMPOSER_HOME=${IROOT}/php-composer
export PATH="$COMPOSER_HOME:$PATH"