setup_php5.sh 591 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. fw_depends php nginx
  3. sed -i 's|localhost|'"${DBHOST}"'|g' index.php
  4. sed -i 's|root .*/FrameworkBenchmarks/fat-free|root '"${TROOT}"'|g' deploy/nginx.conf
  5. sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
  6. F3DIR="$TROOT/src"
  7. [[ ! -e "$F3DIR" ]] || rm -rf "$F3DIR"
  8. git clone "https://github.com/bcosca/fatfree-core.git" "$F3DIR"
  9. pushd "$F3DIR" > /dev/null
  10. git checkout -q "069ccd84afd2461c7ebb67f660c142f97577e661" # v3.5.2-dev
  11. popd > /dev/null
  12. php-fpm --fpm-config $FWROOT/config/php-fpm.conf -g $TROOT/deploy/php-fpm.pid
  13. nginx -c $TROOT/deploy/nginx.conf