Posted On April 1, 2019

Installing Apache on Centos 7

kimconnect 0 comments
blog.KimConnect.com >> Codes , Linux >> Installing Apache on Centos 7
The easy method

sudo yum clean all
sudo yum -y update
sudo yum -y install httpd php-pear
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload
sudo systemctl start httpd //Start Apache
sudo systemctl enable httpd //set Apache to start upon boot time
sudo systemctl status httpd //Check Apache status
sudo systemctl stop httpd //Stop Apache
vim /etc/httpd/conf.d/welcome.conf //comment out the defautl welcome page
vim /etc/httpd/conf/httpd.conf //Configure Apache if necessary
Add website content to /var/www/html/


Install WordPress

yum install mariadb-server php php-mysql
systemctl start mariadb
systemctl enable mariadb
sudo /usr/bin/mysql_secure_installation
mysql -u root -p //default password is blank
CREATE DATABASE kimconnect;
CREATE USER 'wp'@'localhost' IDENTIFIED BY 'RNAEOIN$#AFJQIO$JITJ$J$Jjri3joja4iuiguirjiw4gaew0ruwprjaieoai';
GRANT ALL PRIVILEGES ON kimconnect.* TO 'wp'@'localhost';
exit
cd /var/www/html
wget https://wordpress.org/latest.tar.gz
tar xf latest.tar.gz
mv wordpress/* /var/www/html/
chown apache: /var/www/html/* -R


Run the install
Save the admin account: yomama / Ksyv#A&@%Nb#EOj*zpnYrjQr

Leave a Reply

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

Related Post

PowerShell: Remove IP Address Assignment Using Bluecat API

$bluecatUri='http://bluecat.kimconnect.com/Services/API' $bluecatUsername='svc-bluecat-api' $bluecatPassword='PASSWORD' $configId=17 $ipv4Address='10.10.162.54' $marker='toBeDeleted-' function confirmation($content,$testValue="I confirm",$maxAttempts=3){ $confirmed=$false; $attempts=0; $content|write-host write-host "Please review…

Hyper-V: Creating a New Virtual Machine

# Compulsory variables $hyperVHost='HYPERV007' $vmName='WindowsGoldenImage' $parentDirectory='C:\ClusterStorage\Volume5' $disk1Size='100GB' $memoryAllocation='8GB' $networkSwitch='PublicZone' $vlan='1005' $clusterName='DEV-CLUSTER05' # Optional variables $disk2Size=$false…

How To Upgrade NextCloud 28 to 31 in Docker Compose

1. Upgrade in the incremental progression of one major version at a timeLogin to your…