sudo gedit /etc/php5/fpm/pool.d/www.conf
env[TEST] = 'true'
sudo service php5-fpm restart
В настройках nginx можно переопределять параметры:
sudo gedit /etc/nginx/sites-available/default
fastcgi_param TEST true
;
sudo gedit /etc/php5/fpm/pool.d/www.conf
env[TEST] = 'true'
sudo gedit /etc/nginx/sites-available/default
fastcgi_param TEST true
;
sudo apt-get install php5-xdebug
find / -name 'xdebug.so' 2> /dev/null
/usr/lib/php5/20121212/xdebug.so
sudo gedit /etc/php5/fpm/php.ini
;xdebug
zend_extension = "/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_host=localhost
xdebug.idekey=PHPSTORM
sudo service php5-fpm restart
sudo apt-get install postgresql postgresql-client postgresql-contrib
sudo apt-get install php5-pgsql
sudo su postgres -c psql
SELECT u.usename AS "User name",
u.usesysid AS "User ID",
CASE WHEN u.usesuper AND u.usecreatedb THEN CAST('superuser, create
database' AS pg_catalog.text)
WHEN u.usesuper THEN CAST('superuser' AS pg_catalog.text)
WHEN u.usecreatedb THEN CAST('create database' AS
pg_catalog.text)
ELSE CAST('' AS pg_catalog.text)
END AS "Attributes"
FROM pg_catalog.pg_user u
ORDER BY 1;
CREATE USER root WITH PASSWORD '' SUPERUSER CREATEDB;
DROP USER root;