Skip to content

Instantly share code, notes, and snippets.

@twfahey1
Created July 28, 2020 12:39
Show Gist options
  • Save twfahey1/b8e45740e455181383d7a230a0db544a to your computer and use it in GitHub Desktop.
Save twfahey1/b8e45740e455181383d7a230a0db544a to your computer and use it in GitHub Desktop.
GitHub actions snippet to install apache
- 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
@patrickomeara
Copy link

patrickomeara commented Nov 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment