Last active
July 29, 2022 15:04
-
-
Save kerasai/4b95182e22211fd45c9bf83953390312 to your computer and use it in GitHub Desktop.
Steps for debugging Apache and PHP configuration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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