CentOS 8 / Redhat 8 install wordpress with let's encrypt ssl https.

Set Current Hostname :

hostnamectl set-hostname example.com
hostnamectl restart systemd-hostnamed

Install EPEL release

yum -y install epel-release

Install httpd mod_ssl php and mariadb server database

yum -y install php php-mysqlnd php-json mod_ssl httpd mariadb-server

Enable httpd and mariadb server database

systemctl enable mysqld
systemctl enable httpd
systemctl start mariadb httpd

Configure Mariadb Secure Installation


Configure User WordPress and database

# mysql -u root -p
Enter password:
## Create database ##
## Creating new user ##
CREATE USER wordpress@localhost IDENTIFIED BY "change_this";
## Grant privileges to database ##
GRANT ALL ON wordpress.* TO wordpress@localhost;
## FLUSH privileges ##
## Exit ##

Configuring Firewalld to open traffic for http and https

yum -y install firewalld
firewall-cmd –zone=public –permanent –add-service=http
firewall-cmd –zone=public –permanent –add-service=https

Install https ssl letencrypt

wget https://dl.eff.org/certbot-auto
mv certbot-auto /usr/local/bin/certbot-auto
chown root /usr/local/bin/certbot-auto
chmod 0755 /usr/local/bin/certbot-auto

Edit SSL.conf /etc/httpd/conf.d/ssl


DocumentRoot /var/www/html/wordpress


cd /var/www/html
wget https://wordpress.org/latest.tar.gz
tar -zxvf latest.tar.gz
chown -R apache:apache wordpress
rm -rf latest.tar.gz

Point your browser to https://domain.com and follow the instruction. 🙂

Computer Science BootCamp Course.

Welcome to Computer Science Program . This course is designed by harvard university and hopefully it will be useful for all of you the reader too. This Course is to prepare me or you as the reader to pick up any programming language such as ( c , c++ , c# , java , python , perl and many more )

Python 3 For System Admin

Learn to Code

If you’ve ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you?

In Automate the Boring Stuff with Python, you’ll learn how to use Python to write programs that do in minutes what would take you hours to do by hand-no prior programming experience required. Once you’ve mastered the basics of programming, you’ll create Python programs that effortlessly perform useful and impressive feats of automation to:

  • Search for text in a file or across multiple files
  • Create, update, move, and rename files and folders
  • Search the Web and download online content
  • Update and format data in Excel spreadsheets of any size
  • Split, merge, watermark, and encrypt PDFs
  • Send reminder emails and text notifications
  • Fill out online forms

Step-by-step instructions walk you through each program, and practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks.

Don’t spend your time doing work a well-trained monkey could do. Even if you’ve never written a line of code, you can make your computer do the grunt work. Learn how in Automate the Boring Stuff with Python.

Table of Content

Additional Content

About the Author

Al Sweigart is a software developer and teaches programming to kids and adults. He has written several books for beginners, including Scratch Programming PlaygroundCracking Codes with PythonInvent Your Own Computer Games with Python, and Making Games with Python & Pygame