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

How to Mount NFS Share On Linux Client

# Install prerequisite sudo apt-get install nfs-common # Set variables nfsShare=test # assuming that the…

User Account Group Membership Copy

This is the quick snippet to be executed in the context of a Domain Administrator:…

Error: Kernel panic – not syncing : VFS: Unable to mount root fs on unknown-block(0,0)

If this has been caused by an interrupted system update: - Boot the system via…