|
před 11 roky | |
---|---|---|
.. | ||
cakephp | před 11 roky | |
hhvm | před 11 roky | |
php | před 11 roky | |
php-codeigniter | před 11 roky | |
php-fatfree | před 11 roky | |
php-fuel | před 11 roky | |
php-kohana | před 11 roky | |
php-laravel | před 11 roky | |
php-lithium | před 11 roky | |
php-micromvc | před 11 roky | |
php-phalcon | před 11 roky | |
php-phalcon-micro | před 11 roky | |
php-phpixie | před 11 roky | |
php-pimf | před 11 roky | |
php-senthot | před 11 roky | |
php-silex | před 11 roky | |
php-silex-orm | před 11 roky | |
php-silica | před 11 roky | |
php-slim | před 11 roky | |
php-symfony2 | před 11 roky | |
php-symfony2-stripped | před 11 roky | |
php-yaf | před 11 roky | |
php-yii2 | před 11 roky | |
php-zend-framework | před 11 roky | |
php-zend-framework1 | před 11 roky | |
phreeze | před 11 roky | |
README.md | před 11 roky |
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"