
Underground Forum

- #1
What is wordpress?
WordPress is the most popular CMS (Content Management System) in the world.WordPress installation
Server preparation
# Install LAMP (Apache, MySQL, PHP)
sudo yum install httpd mariadb-server php php-mysql
sudo yum install php-gd
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo mysql_secure_installation
mysql -u root -p
CREATE DATABASE wp;
CREATE USER wp_user@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wp.* TO wp_user@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit
sudo service httpd restart
Install the WordPress
# Download the archive with the wordpress and extract it's contents to the directory/var/www/html/
wget http://wordpress.org/latest.tar.gz
yum install tar
tar xzvf latest.tar.gz
yum install rsync rsync-daemon
sudo rsync -avP ~/wordpress/ /var/www/html/
mkdir /var/www/html/wp-content/uploads
# Transfer permissions to /var/www/html/ to the root user
sudo chown -R root:root /var/www/html/*
# Copy the wp-config-sample.php file under /var/www/html and save it as wp-config.php
cd /var/www/html
cp wp-config-sample.php wp-config.php
# Open and uncomment the wp-config.php configuration file, write in it the data for connecting to your database and save.
define('DB_NAME', 'wp');
define('DB_USER', 'wp_user');
define('DB_PASSWORD', 'password');
# Allow Apache to serve requests over http: and https:
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
# Restart firewall
sudo firewall-cmd --reload
WordPress will be available at:
http://[ip address]