Created
August 5, 2017 18:24
-
-
Save ZeroDeth/b4c86489ce404e66cd0d39eda6a01b3e to your computer and use it in GitHub Desktop.
Installs Apache on a RHEL/CentOS server
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
# 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