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: Benchmark Disk Speed

Contrary to previous iteration, this version returns an object with multiple properties describing statistical analysis…

Windows 10 Missing Icons Problem

This sometimes happen when a certain app takes over icons cache in Windows, such as…

Ping Command’s First Packet Toward LDAP Server(s) Takes 2 Seconds to Start

Case 1: Are DNS servers working? dig returns results right away => defined dns servers…