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

Arrays and Objects

Array.prototype- Allows additional properties of all array objectsArray.from- Creates a new array from an array-like…

PowerShell: Windows System Discovery – Deprecated

<# windows-localhost-discovery-v0.11.ps1 Purpose: scan the local or remote Windows machine for general system resources, security…

WordPress PHP Fatal error: Maximum execution time of 30 seconds exceeded

Error: [Tue Oct 12 05:57:03.088314 2021] [php7:error] [pid 167] [client 172.16.90.64:39776] PHP Fatal error: Maximum…