X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fci%2Fsetup%2Fsetup_apache.sh;h=b7ac4e8097e19fcf711f4fe37d69e40f7f315578;hb=76321b4eac8def8ccae28a467752ec30d637cf97;hp=193d399465521eb61943a2f81688eb84b61cde97;hpb=529f74d1b69fd82d075e5240c6d8daca0b1a718d;p=plcapi.git diff --git a/tests/ci/setup/setup_apache.sh b/tests/ci/setup/setup_apache.sh index 193d3994..b7ac4e80 100755 --- a/tests/ci/setup/setup_apache.sh +++ b/tests/ci/setup/setup_apache.sh @@ -15,11 +15,14 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y apache2 a2enmod rewrite proxy_fcgi setenvif ssl +# in case mod-php was enabled (this is the case on at least github's ubuntu with php 5.x and shivammathur/setup-php) +rm /etc/apache2/mods-enabled/php* || true + # configure apache virtual hosts cp -f "$SCRIPT_DIR/../config/apache_vhost" /etc/apache2/sites-available/000-default.conf -if [ -n "${TRAVIS}" ]; then +if [ -n "${TRAVIS}" -o -n "${GITHUB_ACTIONS}" ]; then echo "export TESTS_ROOT_DIR=$(pwd)" >> /etc/apache2/envvars else echo "export TESTS_ROOT_DIR=/var/www/html" >> /etc/apache2/envvars