Skip to content

Instantly share code, notes, and snippets.

@ZeroDeth
Created August 5, 2017 18:24
Show Gist options
  • Save ZeroDeth/b4c86489ce404e66cd0d39eda6a01b3e to your computer and use it in GitHub Desktop.
Save ZeroDeth/b4c86489ce404e66cd0d39eda6a01b3e to your computer and use it in GitHub Desktop.
Installs Apache on a RHEL/CentOS server
# Install Apache.
yum install --quiet -y httpd httpd-devel
# Copy configuration files.
cp httpd.conf /etc/httpd/conf/httpd.conf
cp httpd-vhosts.conf /etc/httpd/conf-vhosts.conf
# Start Apache and configure it to run at boot.
service httpd start
chkconfig httpd on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment