Created
July 28, 2020 12:39
-
-
Save twfahey1/b8e45740e455181383d7a230a0db544a to your computer and use it in GitHub Desktop.
GitHub actions snippet to install apache
This file contains hidden or 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
- name: Install Apache | |
run: | | |
pwd | |
sudo apt update | |
sudo apt install apache2 | |
echo "GETTING ADMIN PERMS SETUP" | |
sudo adduser $(whoami) www-data | |
sudo adduser $(whoami) root | |
sudo adduser root www-data | |
sudo chown -R www-data:www-data /etc/apache2/sites-available/ | |
sudo chmod -R 777 /etc/apache2/sites-available/ | |
sudo chown -R www-data:www-data /var/www/html/ | |
sudo chmod -R 777 /var/www/html/ | |
ls -l /etc/apache2/sites-available/000-default.conf | |
ls -l /etc/apache2/sites-available | |
ls -l /etc/apache2/ | |
cat /etc/apache2/sites-available/000-default.conf | |
curl -I localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you ever get any further with this? I can't get enable a new site nor point the default at the correct github workspace directory.