![]() Start & Enable Postgres systemctl start rh-postgresql10-postgresql Setup Postgres Create a new PostgreSQL database cluster postgresql-setup -initdb -unit rh-postgresql10-postgresql "rh-postgresql10.sh" content # create newĮxport X_SCLS="`scl enable rh-postgresql10 'echo $X_SCLS'`" Load environment variables scl enable rh-postgresql10 bashĮnable when login vi /etc/profile.d/rh-postgresql10.sh ![]() Install PostgreSQL 10 Install Postgres 10 yum -enablerepo=centos-sclo-rh -y install rh-postgresql10-postgresql-server Restart PHP-FPM systemctl restart rviceĨ. Link to /usr/share/nginx/html sudo ln -s /usr/share/phpMyAdmin /usr/share/nginx/htmlĬhange chown folder /var/lib/php/session from apache to nginx chown -R nginx:nginx /var/lib/php/session Install phpMyAdmin sudo yum -enablerepo=remi,remi-php73 install -y php-mysqlnd phpMyAdmin > UPDATE user SET password=PASSWORD('newPassword') WHERE User='root' AND Host = 'localhost' ħ. Systemctl set-environment MYSQLD_OPTS="-skip-grant-tables" Initial and setup root password mysql_secure_installationįorgot Password? systemctl stop rh-mariadb102-mariadb Start & Enable systemctl start rh-mariadb102-mariadb vi /etc/opt/rh/rh-mariadb102/my.cnf.d/mariadb-server.cnfĪdd follows into section: # mysql Ver 15.1 Distrib 10.2.8-MariaDB, for Linux (x86_64) using EditLine wrapperĮnable when login vi /etc/profile.d/rh-mariadb102.shĮxport X_SCLS="`scl enable rh-mariadb102 'echo $X_SCLS'`"Įnable MariaDB 10.2 and configure initial settings. Load environment variables to use scl enable rh-mariadb102 bash ![]() Install MariaDB 10.2 Install from SCLo sudo yum -enablerepo=centos-sclo-rh -y install rh-mariadb102-mariadb-server # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000įastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name Try_files $uri $uri/ /index.php?q=$uri&$args Stop HTTPD default, Start & Enable PHP-FPM systemctl stop rviceĬonfig default NGINX to run PHP vi /etc/nginx/conf.d/nfĬhange content to (change to your domain or ip, xx to size you want) client_max_body_size xxM Zend Engine v3.3.4, Copyright (c) 1998-2018 Zend TechnologiesĬonfig PHP-FPM vi /etc/php-fpm.d/vi /etc/php.iniĬhange upload_max_filesize and post_max_size (change xx to size you want): upload_max_filesize = xxM Load environment variables to use scl enable php73 bash Install PHP 7.3 Install PHP, PHP-FPM and some module yum -enablerepo=remi,remi-php73 install -y php php-fpm php-cli php-mysqlnd php-zip php-devel php-gd php-common php-pear php-mbstring php-mcrypt php-pdo php-curl php-xml php-pear php-bcmath php-json Create new User "cent" Create and add to wheel group Semanage port -d -t http_port_t -p tcp 8090Ģ. Semanage port -a -t http_port_t -p tcp 8090 Some command usefull firewall-cmd -permanent -add-port=4444/tcpįirewall-cmd -permanent -remove-port=4444/tcp Config Timezone timedatectl set-timezone Asia/Ho_Chi_MinhĬonfiguring a Basic Firewall yum install firewalldįirewall-cmd -permanent -add-service=sshįirewall-cmd -permanent -add-service=httpįirewall-cmd -permanent -add-service=httpsįirewall-cmd -permanent -add-service=smtp
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |