setup_raw.sh 786 B

123456789101112131415161718
  1. #!/bin/bash
  2. export PHP_HOME=${IROOT}/php-5.5.17
  3. export PHP_FPM=$PHP_HOME/sbin/php-fpm
  4. export COMPOSER_HOME=${IROOT}/php-composer
  5. export NGINX_HOME=${IROOT}/nginx
  6. sed -i 's|localhost|'"${DBHOST}"'|g' web/index_raw.php
  7. sed -i 's|".*\FrameworkBenchmarks/php-silex|"'"${TROOT}"'|g' deploy/php-silex
  8. sed -i 's|Directory .*/FrameworkBenchmarks/php-silex|Directory '"${TROOT}"'|g' deploy/php-silex
  9. sed -i 's|root .*/FrameworkBenchmarks/php-silex|root '"${TROOT}"'|g' deploy/nginx_raw.conf
  10. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx_raw.conf
  11. PHP_HOME=${IROOT}/php-5.5.17
  12. export PATH="$COMPOSER_HOME:$PHP_HOME/bin:$PHP_HOME/sbin:$PATH"
  13. $PHP_FPM --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  14. $NGINX_HOME/sbin/nginx -c $TROOT/deploy/nginx_raw.conf