setup-apache.sh 367 B

12345678910111213
  1. #!/bin/bash
  2. echo "* Preparing Apache ...";
  3. sudo a2enmod rewrite actions fastcgi alias
  4. # Use default config
  5. sudo cp -f tests/travis/travis-apache /etc/apache2/sites-available/000-default.conf
  6. sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
  7. sudo chmod 777 -R $HOME
  8. # Starting Apache
  9. sudo service apache2 restart