start.sh 333 B

1234567891011121314
  1. #!/bin/bash
  2. if [ "x$BASH_SOURCE" == "x" ]; then echo '$BASH_SOURCE not set'; exit 1; fi
  3. DEV=$(cd -P "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
  4. . "$DEV/includes/require-php.sh"
  5. PORT=4881
  6. echo "Starting up MediaWiki at http://localhost:$PORT/"
  7. echo ""
  8. cd "$DEV/../../"; # $IP
  9. "$PHP" -S "localhost:$PORT" "$DEV/includes/router.php"