Skip to content

Instantly share code, notes, and snippets.

@kerasai
Last active July 29, 2022 15:04
Show Gist options
  • Save kerasai/4b95182e22211fd45c9bf83953390312 to your computer and use it in GitHub Desktop.
Save kerasai/4b95182e22211fd45c9bf83953390312 to your computer and use it in GitHub Desktop.
Steps for debugging Apache and PHP configuration.
# View Apache setup.
- name: Apache setup
run: |
echo '--- /etc/apache2 ---'
sudo ls /etc/apache2
echo '--- /etc/apache2/conf-available ---'
sudo ls /etc/apache2/conf-available
echo '--- /etc/apache2/conf-enabled ---'
sudo ls /etc/apache2/conf-enabled
echo '--- /etc/apache2/mods-available ---'
sudo ls /etc/apache2/mods-available
echo '--- /etc/apache2/mods-enabled ---'
sudo ls /etc/apache2/mods-enabled
echo '--- /etc/apache2/sites-available ---'
sudo ls /etc/apache2/sites-available
echo '--- /etc/apache2/sites-enabled ---'
sudo ls /etc/apache2/sites-enabled
# Upload Apache configuration files for review.
- name: Upload Apache setup
uses: actions/upload-artifact@v2
with:
name: apache
path: /etc/apache2
# Verify PHP info.
- name: PHP Info
run: |
echo '<?php phpinfo();' > web/phpinfo.php
curl http://{{ HOST }}/phpinfo.php
php -c /etc/php/{{ PHP_VERSION }}/fpm/php.ini -i
php -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment