Linux serverNETWORK ADMINISTRATIONS

Instalación de wordpress y joomla en cluster apache y galera mariaDB en centos 7 con virtualbox

este trabajo se realiza para la materia sistemas distribuidos, universidad de la Guajira

los códigos utilizados para entre video

***********************
**desactivar firewall**
***********************

sudo systemctl disable firewalld

sudo systemctl stop firewalld

sudo systemctl mask –now firewalld

**************PHP**************

sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

sudo yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm

sudo yum -y install yum-utils

sudo yum-config-manager –enable remi-php74

sudo yum update

sudo yum install php php-cli

sudo yum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

yum -y install php-ldap php-odbc php-xmlrpc php-mbstring php-soap curl-devel php-mysql

yum -y install php-intl

php -v

php –modules

***************** BASE DE DATOS *******************

create database alexander charset utf8mb4 collate utf8mb4_unicode_ci;
create database joomladb charset utf8mb4 collate utf8mb4_unicode_ci;

create user ‘aanacona’@’%’ identified by ‘123456’;

grant all privileges on *.* to ‘aanacona’@’%’;

flush privileges;

quit;

****************WORDPRESS***********************

wget https://es.wordpress.org/latest-es_ES.tar.gz

sudo tar xf latest-es_ES.tar.gz -C /var/www/html/

mv /var/www/html/wordpress/wp-config-sample.php /var/www/html/wordpress/wp-config.php

nano /var/www/html/wordpress/wp-config.php

nano /var/www/html/wordpress/wp-config-sample.php

sudo nano /etc/httpd/conf.d/wordpress.conf

Directory /var/www/html/wordpress/
AllowOverride All
/Directory

sudo systemctl reload httpd

sudo chown -R apache:apache /var/www/html/wordpress/

sudo chmod -R g+w /var/www/html/wordpress/

sudo semanage fcontext -a -t httpd_sys_rw_content_t “/var/www/html/wordpress(/.*)?”

sudo restorecon -R /var/www/html/wordpress/

nano /var/www/html/wordpress/

nano wp-config.php

***************************************
***************************************
*************JOOMLA********************
***************************************
***************************************

wget -q https://downloads.joomla.org/cms/joomla3/3-9-20/Joomla_3-9-20-Stable-Full_Package.tar.bz2

sudo mkdir /var/www/html/joomla

sudo tar xf Joomla_3-9-20-Stable-Full_Package.tar.bz2 -C /var/www/html/joomla/

sudo mv /var/www/html/joomla/htaccess.txt /var/www/html/joomla/.htaccess

sudo chown -R apache: /var/www/html/joomla/

sudo semanage fcontext -a -t httpd_sys_rw_content_t “/var/www/html/joomla(/.*)?”

sudo restorecon -R /var/www/html/joomla/

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *