setup_raw.sh 836 B

1234567891011121314151617
  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|127.0.0.1|'"${DBHOST}"'|g' app/config.app.php
  7. sed -i 's|".*/FrameworkBenchmarks/php-pimf|"'"${TROOT}"'|g' deploy/php-pimf
  8. sed -i 's|Directory .*/FrameworkBenchmarks/php-pimf|Directory '"${TROOT}"'|g' deploy/php-pimf
  9. sed -i 's|root .*/FrameworkBenchmarks/php-pimf|root '"${TROOT}"'|g' deploy/php-pimf
  10. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx_raw.conf
  11. sed -i 's|root .*/FrameworkBenchmarks/php-pimf|root '"${TROOT}"'|g' deploy/nginx_raw.conf
  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