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: Install Windows Exporter

Simple Version $windowsExporterUrl='https://github.com/prometheus-community/windows_exporter/releases/download/v0.20.0/windows_exporter-0.20.0-amd64.msi' $stageFolder='C:\Temp\' # Download the file Import-Module BitsTransfer $fileName=[regex]::match($windowsExporterUrl,'[^/\\&\?]+\.\w{3,4}(?=([\?&].*$|$))') $msiFile=join-path $stageFolder $fileName if(!(test-path…

Use psexec to install application remotely

psexec @ComputerList.txt -u domain\administrator cmd /s /c "xcopy "\\NetworkPath\Forefront Software\Install.exe" "C:\Windows" && Install.exe /u /s…

How to Import Files Into a Docker Container

1. Use SCP to copy files to the remote server while logged onto the local…