setup-apache.sh 547 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. echo "* Start setup-apache.sh ...";
  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. cat /etc/apache2/sites-available/000-default.conf
  9. # Starting Apache
  10. sudo service apache2 restart
  11. echo "* Apache restarted";
  12. sudo cat /var/log/apache2/error.log
  13. sudo journalctl | tail
  14. echo "* End setup-apache.sh ...";