travis
[plcapi.git] / tests / ci / travis / setup_apache.sh
1 #!/bin/sh
2
3 # make sure all files and folders are accisble by Apache
4
5 find . -type d -exec chmod 755 {} \;
6 #find . -type f -exec chmod 644 {} \;
7
8 # set up Apache for php-fpm
9 # @see https://github.com/travis-ci/travis-ci.github.com/blob/master/docs/user/languages/php.md#apache--php
10
11 sudo a2enmod rewrite actions fastcgi alias ssl
12
13 # configure apache virtual hosts
14 sudo cp -f tests/ci/travis/apache_vhost /etc/apache2/sites-available/000-default.conf
15 sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf
16 sudo service apache2 restart