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

Linux Swapfile

There's a more updated post here. Setup Swap on CentOS Localhost:# Check memory & swap…

Recover Windows CD Key

Set WshShell = CreateObject("WScript.Shell")MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))Function ConvertToKey(Key)Const KeyOffset = 52i = 28Chars = "BCDFGHJKMPQRTVWXY2346789"DoCur =…

PowerShell: Downloading File Error ‘Internet Explorer engine is not available’

Error Message: PS C:\temp> wget http://download.windowsupdate.com/d/msdownload/update/software/secu/2022/01/windows10.0-kb5009546-x64_d3ab97e9f811d7bf19c268e5e6b5e00e92e110ed.msu wget : The response content cannot be parsed because…