This commit is contained in:
jysperm
2014-07-26 11:24:52 +08:00
parent 70b9730e02
commit eb8d1c1220
5 changed files with 23 additions and 16 deletions

View File

@@ -1,3 +1,9 @@
## PHP-FPM
apt-get install php5-cli php5-fpm php-pear php5-mysql php5-curl php5-gd php-pear php5-imap php5-mcrypt php5-memcache php5-tidy php5-xmlrpc php5-sqlite php5-mongo
rm /etc/php5/fpm/pool.d/www.conf
vi /etc/nginx/fastcgi_params
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

View File

@@ -13,7 +13,7 @@ exports.post '/update_password', (req, res) ->
child_process.exec "echo '#{req.account.username}:#{req.body.password}' | sudo chpasswd", (err, stdout, stderr) ->
throw err if err
res.json 200, {}
res.json {}
exports.post '/kill', (req, res) ->
pid = parseInt req.body.pid