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)
+# @todo silence errors in a smarter way
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
+# default apache siteaccess found in GHA Ubuntu. We remove it just in case
+if [ -f /etc/apache2/sites-available/default-ssl.conf ]; then
+ rm /etc/apache2/sites-available/default-ssl.conf
+fi
+
if [ -n "${TRAVIS}" -o -n "${GITHUB_ACTIONS}" ]; then
echo "export TESTS_ROOT_DIR=$(pwd)" >> /etc/apache2/envvars
else
fi
echo "export HTTPSERVER=localhost" >> /etc/apache2/envvars
-ls -la /etc/apache2/mods-enabled
-
service apache2 restart