Posted On March 31, 2019

Apache HTTPd

kimconnect 0 comments
blog.KimConnect.com >> Codes , Linux >> Apache HTTPd
# Install Apache
yum install httpd

# Configure Apache
vim /etc/httpd/conf/httpd.conf
##### Change port
NameVirtualHost 127.0.0.1:8080
Listen 127.0.0.1:8080
#####
#### Set DocumentRoot
DocumentRoot "/var/www/kimconnect"
#####

# Install PHP5
yum install php
# Create phpinfo() page
echo "<?php phpinfo(); ?>" | sudo tee /var/www/kimconnect/info.php

# Configure firewall
firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload

# Set security context for Apache
setsebool -P httpd_can_network_connect on

systemctl enable httpd
systemctl start httpd
systemctl status httpd

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How to Install OpenVPN on Centos 5

Configure VPN   I. Setting up DMZ to forward all ports from Gateway to Router…

Sendmail Batch File

1. Download: 2. Place it in C:\Windows\System32   sendmail.bat --------------------------- senditquiet.exe -s smtp.gmail.com -port 587…

PowerShell: Improve Network Speed of Windows on 20 Mbps or Faster Connections

This has been tested on Windows 10 - will not work on a Server OS:…