3 # make sure all files and folders are accisble by Apache
5 find . -type d -exec chmod 755 {} \;
6 #find . -type f -exec chmod 644 {} \;
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
11 sudo a2enmod rewrite actions fastcgi alias ssl
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