diff options
author | Silvino Silva <silvino@bk.ru> | 2016-09-29 05:23:33 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2016-09-29 06:26:17 +0100 |
commit | 6343ecacd941a133d01bf9354adf6b79a0a0cb3d (patch) | |
tree | 0c40fa2b06b3fd80993325e8115b4187115fabe5 /tools | |
parent | dc2392c0420d3e25771a4bc1967ae97cba16194d (diff) | |
download | doc-6343ecacd941a133d01bf9354adf6b79a0a0cb3d.tar.gz |
nginx and php revision
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nginx.html | 2 | ||||
-rw-r--r-- | tools/scripts/install-nginx.sh | 4 | ||||
-rw-r--r-- | tools/scripts/install-php.sh | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/tools/nginx.html b/tools/nginx.html index 9fd38b9..765a13f 100644 --- a/tools/nginx.html +++ b/tools/nginx.html @@ -224,7 +224,7 @@ <p> Install php and setup php.ini as development mode;</p> <pre> - $ prt-get depinst php php-fpm php-gd + $ sudo prt-get depinst php php-fpm php-gd php-pdo-pgsql php-postgresql </pre> <p>Setup php ini in development mode;<p/> diff --git a/tools/scripts/install-nginx.sh b/tools/scripts/install-nginx.sh index 7fee79b..decacc1 100644 --- a/tools/scripts/install-nginx.sh +++ b/tools/scripts/install-nginx.sh @@ -6,6 +6,9 @@ prt-get depinst nginx cp -R $CONF_DIR/etc/nginx/* /etc/nginx/ +mkdir /srv/www +chown nginx:www /srv/www + usermod -a -G www nginx usermod -m -d /srv/www nginx @@ -18,3 +21,4 @@ openssl x509 -req -days 365 \ cp /etc/ssl/keys/nginx.key /etc/ssl/keys/nginx.key.pass openssl rsa -in /etc/ssl/keys/nginx.key.pass -out /etc/ssl/keys/nginx.key + diff --git a/tools/scripts/install-php.sh b/tools/scripts/install-php.sh index 9d47ada..4c28173 100644 --- a/tools/scripts/install-php.sh +++ b/tools/scripts/install-php.sh @@ -2,6 +2,6 @@ . `dirname $0`/config-install.sh -prt-get depinst php php-fpm php-gd php-pdo-pgsql +prt-get depinst php php-fpm php-gd php-pdo-pgsql php-postgresql cp /etc/php/php.ini-development /etc/php/php.ini |