yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --disable 'remi-php*'
yum-config-manager --enable remi-php74
yum -y install php74-php-{cli,fpm,mysqlnd,zip,devel,gd,mbstring,curl,xml,pear,bcmath,json,opcache,redis,memcache,grpc,sysvmsg,shmop,posix,opcache,intl,sodium}
nano /etc/opt/remi/php74/php-fpm.d/www.conf
user = nginx
group = nginx
listen = /var/run/php-fpm/php74-fpm.sock;
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
mkdir /var/run/php-fpm/
systemctl enable php74-php-fpm
systemctl start php74-php-fpm
setsebool -P httpd_can_network_connect 1
chcon -Rt httpd_sys_content_t /var/www/app/
setenforce Permissive
yum install -y php74-php-devel php74-php-pear
/opt/remi/php74/root/usr/bin/pecl install mongodb
echo extension=mongodb.so > /etc/opt/remi/php74/php.d/20-mongodb.ini
service php74-php-fpm restart
yum install nginx
mkdir -p /etc/nginx/sites-available
mkdir -p /etc/nginx/sites-enabled
nano /etc/nginx/nginx.conf
# vhost location
include /etc/nginx/sites-enabled/*.conf;
server_names_hash_bucket_size 64;
systemctl enable nginx
systemctl start nginx
yum install epel-release
yum install certbot-nginx
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -
yum install -y nodejs
npm i -g pm2
yum install supervisor
systemctl enable supervisor
systemctl enable supervisord
systemctl start supervisord
nano /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.6/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
yum update
yum install mariadb-server
systemctl enable mariadb
systemctl start mariadb
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'yourpassword';
flush privileges;
yum install wget net-tools
wget https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.0/x86_64/RPMS/mongodb-org-server-4.0.3-1.el7.x86_64.rpm
wget https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.0/x86_64/RPMS/mongodb-org-shell-4.0.3-1.el7.x86_64.rpm
wget https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.0/x86_64/RPMS/mongodb-org-tools-4.0.3-1.el7.x86_64.rpm
wget https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.0/x86_64/RPMS/mongodb-org-4.0.3-1.el7.x86_64.rpm
wget https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.0/x86_64/RPMS/mongodb-org-mongos-4.0.3-1.el7.x86_64.rpm
rpm -ivh mongodb-org-server-4.0.3-1.el7.x86_64.rpm
rpm -ivh mongodb-org-shell-4.0.3-1.el7.x86_64.rpm
rpm -ivh mongodb-org-mongos-4.0.3-1.el7.x86_64.rpm
rpm -ivh mongodb-org-tools-4.0.3-1.el7.x86_64.rpm
rpm -ivh mongodb-org-4.0.3-1.el7.x86_64.rpm
systemctl enable mongod
systemctl start mongod
systemctl status mongod