setup.sh 514 B

12345678910111213
  1. #!/bin/bash
  2. export PHP_HOME=${IROOT}/php-5.5.17
  3. export PHP_FPM=$PHP_HOME/sbin/php-fpm
  4. export NGINX_HOME=${IROOT}/nginx
  5. sed -i 's|localhost|'"${DBHOST}"'|g' Config/Config.php
  6. sed -i 's|root .*/FrameworkBenchmarks/php-micromvc|root '"${TROOT}"'|g' deploy/nginx.conf
  7. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  8. export PATH="$PHP_HOME/bin:$PHP_HOME/sbin:$PATH"
  9. $PHP_FPM --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  10. $NGINX_HOME/sbin/nginx -c $TROOT/deploy/nginx.conf