Difference between revisions of "Redhat8 - Install Nginx, Apache, Redis, php7.4-fpm, MySQL, PostgreSQL"
Jump to navigation
Jump to search
(→PHP) |
|||
Line 4: | Line 4: | ||
curl -4 ec2-3-123-2-191.eu-central-1.compute.amazonaws.com | curl -4 ec2-3-123-2-191.eu-central-1.compute.amazonaws.com | ||
− | |||
== firewalld == | == firewalld == | ||
sudo yum install firewalld | sudo yum install firewalld | ||
Line 18: | Line 17: | ||
nano /etc/firewalld/firewalld.conf | nano /etc/firewalld/firewalld.conf | ||
<nowiki>#</nowiki> AllowZoneDrifting=no | <nowiki>#</nowiki> AllowZoneDrifting=no | ||
− | |||
== MariaDB == | == MariaDB == | ||
sudo dnf install mariadb-server | sudo dnf install mariadb-server | ||
Line 30: | Line 28: | ||
GRANT ALL ON rho_database.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION; | GRANT ALL ON rho_database.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION; | ||
FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
− | |||
== PHP == | == PHP == | ||
sudo dnf install php php-fpm php-opcache php-openssl php-curl \ | sudo dnf install php php-fpm php-opcache php-openssl php-curl \ | ||
− | php-cli php-common php-zip php-gd | + | php-cli php-common php-zip php-gd php-static php-dev \ |
php-xml php-pear php-bcmath php-json php-pdo php-mysqlnd php-pgsql \ | php-xml php-pear php-bcmath php-json php-pdo php-mysqlnd php-pgsql \ | ||
− | php-mbstring php-soap php-sockets | + | php-mbstring php-soap php-sockets php-pecl-redis php-pecl-mcrypt php-pecl-apcu \ |
− | + | php-json php-ctype php-dom php-exif php-mysqli php-iconv php-fileinfo \ | |
− | + | php-pecl-memcache php-pecl-memcached |
Revision as of 20:31, 29 January 2021
nginx
sudo dnf install nginx sudo systemctl start nginx
curl -4 ec2-3-123-2-191.eu-central-1.compute.amazonaws.com
firewalld
sudo yum install firewalld sudo systemctl start firewalld sudo systemctl enable firewalld sudo systemctl status firewalld
sudo firewall-cmd --permanent --add-service=http sudo firewall-cmd --permanent --add-service=https sudo firewall-cmd --permanent --list-all sudo firewall-cmd --reload
nano /etc/firewalld/firewalld.conf # AllowZoneDrifting=no
MariaDB
sudo dnf install mariadb-server sudo systemctl start mariadb sudo systemctl enable mariadb
sudo mysql_secure_installation #(Set Root Password and disable test and insecure features)
sudo mysql -p #(Use \q to quit) CREATE DATABASE rho_database; GRANT ALL ON rho_database.* TO 'root'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVILEGES;
PHP
sudo dnf install php php-fpm php-opcache php-openssl php-curl \ php-cli php-common php-zip php-gd php-static php-dev \ php-xml php-pear php-bcmath php-json php-pdo php-mysqlnd php-pgsql \ php-mbstring php-soap php-sockets php-pecl-redis php-pecl-mcrypt php-pecl-apcu \ php-json php-ctype php-dom php-exif php-mysqli php-iconv php-fileinfo \ php-pecl-memcache php-pecl-memcached