Oracle Cloud: Instalar WordPress 5.6 en RHEL 8 / CentOS 8 Linux
Fuentes:
https://linuxconfig.org/install-wordpress-on-redhat-8
Paso 1: Verificar recursos
# sudo -i
# cat /etc/centos-release
# top
# free
# df
# sudo yum update
# sudo yum install ncurses-compat-libs
# sudo yum install perl perl-Data-Dumper
Paso 2: Instalar Apache
# yum install httpd -y
# service httpd start
# service httpd status
# firewall-cmd --permanent --zone=public --add-port=80/tcp
# firewall-cmd --permanent --zone=public --add-port=443/tcp
# firewall-cmd --reload
# systemctl enable httpd.service
* Check access to page: http://<ip/domain>/
* Si no accede deshabilitamos el firewall (Caso particular de Oracle Cloud)
# service firewalld stop
# systemctl disable firewalld
Paso 3: Instalar Base de Datos MariaDB
# yum install mariadb-server mariadb -y
# service mariadb status
# service mariadb start
# mysql_secure_installation
# systemctl enable mariadb.service
# mysql -u root -p
mysql> show databases;
mysql> CREATE DATABASE wordpress;
mysql> CREATE USER `admin`@`localhost` IDENTIFIED BY 'pass';
mysql> GRANT ALL ON wordpress.* TO `admin`@`localhost`;
mysql> FLUSH PRIVILEGES;
mysql> exit
Paso 4: Instalar PHP
# dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm
# dnf module list php
# dnf module reset php
# dnf module enable php:remi-7.4
# dnf install php php-opcache php-gd php-curl php-mysqlnd
# dnf yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mbstring php-curl php-xml php-pear php-bcmath php-json
# systemctl enable --now php-fpm
# systemctl restart httpd
# php -v
# cd /var/wwww/html/
# echo "<?php phpinfo(); ?>" > info.php
* Check access to page http://<ip/domain>/info.php
Paso 5: Instalar Wordpress
# cd /var/wwww/html/
# wget https://pe.wordpress.org/latest.zip
# ls -l
# upzip lastest.zip
# ls -l
# chown apache.apache /var/www/html/wordpress -R
# chcon -t httpd_sys_rw_content_t wordpress /var/www/html/wordpress -R
* Configure SELinux and Start Services
# sestatus
# setsebool -P httpd_can_network_connect 1
# ls -l
# cd wordpress
# ls -l
* Acceder por web: http://<ip/domain>/wordpress/
Paso 6: Disfruta el proceso :)
Comentarios
Publicar un comentario
Incluye información que aporte al tema