diff --git a/.github/workflows/php-mysql.yml b/.github/workflows/php-mysql.yml index d8a3761eeda..001136c87f3 100644 --- a/.github/workflows/php-mysql.yml +++ b/.github/workflows/php-mysql.yml @@ -134,7 +134,6 @@ jobs: - name: Setup Apache run: | - echo "Setting up Apache + FPM" pwd whoami # install apache web server @@ -147,6 +146,7 @@ jobs: #sudo sed -e "s?%GITHUB_WORKSPACE%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf #sudo cat /etc/apache2/sites-available/000-default.conf a2ensite 000-default + a2enmod php8.1 ls /etc/apache2/sites-enabled sudo adduser $(whoami) www-data @@ -162,11 +162,9 @@ jobs: ls -l /home/runner ls -l /home/runner/work ls -l /var/www + ls -l /var/www/html set +e curl -I localhost - curl -I 127.0.0.1 - wget -O - http://127.0.0.1 > $GITHUB_WORKSPACE/test.html 2>&1 - cat $GITHUB_WORKSPACE/test.html - name: Chech Apache availability run: | @@ -179,8 +177,9 @@ jobs: cat /var/log/apache2/other_vhosts_access.log wget -O - http://127.0.0.1/robots.txt # The wget should return a page with line ' - wget -O - http://127.0.0.1 > $GITHUB_WORKSPACE/test.html 2>&1 + wget -O - http://127.0.0.1/index.php > $GITHUB_WORKSPACE/test.html 2>&1 head $GITHUB_WORKSPACE/test.html + echo Logs are... sudo cat /var/log/apache2/access.log sudo cat /var/log/apache2/error.log