Advertisement
Guest User

Untitled

a guest
May 1st, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. adduser --system --uid=$(stat -c "%u" /var/www) "host"
  4. echo "APACHE_RUN_USER=host" >> /etc/apache2/envvars
  5.  
  6. SERVER_NAME=${SERVER_NAME:=localhost}
  7. echo "ServerName $SERVER_NAME" > /etc/apache2/conf.d/server-name
  8.  
  9. /etc/init.d/apache2 start
  10.  
  11. bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement