How To Install WordPress on Rocky Linux 8

Click here for Govt Schemes

How To Install WordPress on Rocky Linux 8

in This Tutorial you will Learn " How To Install WordPress on Rocky Linux 8"
WordPress is a free, open-source, and the world's most popular CMS built entirely in PHP. It is used by thousands of people around the globe for running blogs, business websites, and e-commerce stores.
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -        |     Hostname -
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf module reset php ; dnf -y module install php:7.4
dnf install -y httpd mariadb mariadb-server php php-{bz2,mysqli,curl,gd,intl,common,mbstring,xml,json,bcmath,pear,xmlrpc,snmp,cli,ldap,opcache,pdo}

systemctl enable httpd mariadb ; systemctl start httpd mariadb

mysql -u root -p
CREATE DATABASE wordpressdb;
CREATE USER `wordpressuser`@`localhost` IDENTIFIED BY 'strong@password';
GRANT ALL ON wordpressdb.* TO `wordpressuser`@`localhost`;

mkdir -p /var/www/
wget -O wordpress.tar.gz
tar xf wordpress.tar.gz
cp -R wordpress /var/www/
chown -R $USER:$USER /var/www/ ; chmod -R 755 /var/www

nano /etc/httpd/conf.d/
<VirtualHost *:80>
    DocumentRoot /var/www/
    <Directory /var/www/>
        Options -Indexes +FollowSymLinks
        AllowOverride All
    ErrorLog /var/log/httpd/
    CustomLog /var/log/httpd/ combined

apachectl configtest
echo "" >> /etc/hosts
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup
systemctl restart httpd ; systemctl status httpd

Share on Pinterest
Share on LinkedIn
Share on WhatsApp
Share on Telegram