Wordpress Installation On Rocky Linux
What is Wordpress?
Wordpress dünyada en çok tercih edilen içerik yönetim sistemidir. Bu açık kaynak kodlu ve ücretsiz olan sistem, önceleri sadece blWordpress is the most popular content manager available. After installation we will check common errors you might encounter, fix permalinks and edit php settings.
For more information please check: https://wikipedia.org/wiki/WordPress
Why Rocky Linux?
Rocky Linux replaced CentOS and it is bug for bug copy of Redhat Enterprise linux which is the most used linux on I.T. world. For more information please check the link below.
Rocky Linux Installation: https://kediclub.com/rocky-linux-installation/
Wordpress Installation – Things we’ll be doing.
- Apache web server installation.
- PHP 7.4 installation.
- MariaDB installation.
- Wordpress download and installation.
- Configuring SELinux to work with Wordpress.
- Checking common errors.
- Fixing permalinks by editing Apache settings.
- Editing PHP settings.
Apache Web Server Install
sudo dnf install httpd httpd-tools sudo systemctl enable httpd sudo systemctl start httpd sudo systemctl status httpd
Enabling HTTP & HTTPS On Firewall
sudo firewall-cmd --permanent --zone=public --add-service=http sudo firewall-cmd --permanent --zone=public --add-service=https sudo firewall-cmd --reload
Installing PHP 7.4
sudo dnf module list php sudo dnf module reset php sudo dnf module install php:7.4 sudo dnf install -y php-mysqlnd php-dom php-simplexml php-xml php-xmlreader php-curl php-exif php-ftp php-gd php-iconv php-json php-mbstring php-posix php-sockets php-tokenizer
Testing PHP
sudo chown test:test -R /var/www/html/ echo "<?php phpinfo() ?>" > /var/www/html/info.php
Installing MariaDB
sudo dnf install mariadb-server mariadb sudo systemctl enable mariadb sudo systemctl start mariadb sudo systemctl status mariadb
Logging To MariaDB Creating User & DB
I preferred world’s most secure password so you don’t have to change it 😉
mysql_secure_installation mysql -u root -p CREATE DATABASE wordpress; CREATE USER `admin`@`localhost` IDENTIFIED BY '1234'; GRANT ALL ON wordpress.* TO `admin`@`localhost`;
Downloading Wordpress And Installation
curl https://wordpress.org/latest.tar.gz --output wordpress.tar.gz tar xf wordpress.tar.gz cp -r wordpress/ /var/www/html/
Setting Up Permissions
sudo chown -R apache:apache /var/www/html/wordpress
SELinux Configuration
sudo setsebool -P httpd_can_network_connect 1 sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html(/.*)?" sudo restorecon -Rv /var/www/html/
Wordpress Installation On Rocky Linux
For detailed information about installation please check the video below.