Monthly Archives: October 2017

How To Install WordPress On Centos 7

This video shows you how to Install WordPress on Centos 7.

The commands that you need to follow along with the tutorial are:

 

Installing PHP.

  • sudo yum install php
  • sudo yum install php-mysqli

 

Setting up the Database.

  • Mysql -u root -p
  • CREATE DATABASE wordpress;
  • GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY ‘password123’;
  • FLUSH PRIVILEGES;

 

Downloading WordPress and getting it ready for install.

  • wget http://wordpress.org/latest.tar.gz
  • tar -zxvf latest.tar.gz
  • sudo mv wordpress/ /var/www/html/
  • sudo chown -R apache:apache /var/www/html/wordpress/
  • sudo chcon -Rv –type=httpd_sys_rw_content_t /var/www/html/wordpress
  • sudo vi /etc/httpd/conf/httpd.conf

 

How To Install Python 3 on CentOS 7

Subscribe to Darrenoneill.eu to get a free Linux Cheat Sheet! 

This tutorial shows you how to install Python 3, set up a local programming environment and create your first python program. The commands that you need to follow along with this tutorial are:

 

Getting your Server ready for the install:
sudo yum update
sudo yum install yum-utils
sudo yum groupinstall development
sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm

 

Installing Python and PIP
sudo yum -y install python36u
python3.6 -V
sudo yum -y install python36u-pip
sudo yum -y install python36u-devel

 

Setting up your local environment.
mkdir environments
cd environments
python3.6 -m venv my_env
source my_env/bin/activate

 

Creating your python program:Vi HelloWorld.py
print(“Hello, World!”)
HelloWorld.py

 

How To Create a Sudo User on CentOS 7

This video shows you how to create a new user on CentOS 7 and then add them to the wheel group to enable that user to run commands as sudo. The commands that you need to use to follow along with this tutorial are:

 

adduser rootuser
passwd rootuser
usermod -aG wheel rootuser
su – rootuser
sudo ls /