Postfix только на отправку (relayhost = smtp.gmail.com)

В продолжение темы. Нужно настроить почту для сайта только на отправку. Устанавливаем # yum install certbot # yum install cyrus-sasl-plain # service postfix restart Порт 25 заблокирован хостером, поэтому настроим на 587. # mkdir /etc/postfix/sasl # cat sasl_passwd [smtp.gmail.com]:587 user_gmail@gmail.com:__PASSWORD__ # postmap /etc/postfix/sasl/sasl_passwd # chmod 600 sasl_passwd Редактируем main.cf myhostname = aws.tst-amo.net.ua inet_protocols = ipv4 …

Continue reading ‘Postfix только на отправку (relayhost = smtp.gmail.com)’ »

Downgrade php74 to php72

После установки на AWS LAMP (Centos 7, apache24, php7.4, mariadb10) выяснилось, что некоторые скрипты некоректно отрабатывают. Поэтому нужно понизить версию php. Смотрим все установленные пакеты: # rpm -qa | grep php php74-php-pecl-mysql-1.0.0-0.23.20190415.d7643af.el7.remi.x86_64 php-cli-7.4.33-6.el7.remi.x86_64 php-mysqlnd-7.4.33-6.el7.remi.x86_64 php-mbstring-7.4.33-6.el7.remi.x86_64 php74-php-common-7.4.33-6.el7.remi.x86_64 gd3php-2.3.3-7.el7.remi.x86_64 php74-php-pecl-mcrypt-1.0.6-1.el7.remi.x86_64 php-json-7.4.33-6.el7.remi.x86_64 php-7.4.33-6.el7.remi.x86_64 php74-php-json-7.4.33-6.el7.remi.x86_64 php74-php-cli-7.4.33-6.el7.remi.x86_64 php74-php-pdo-7.4.33-6.el7.remi.x86_64 php-pdo-7.4.33-6.el7.remi.x86_64 oniguruma5php-6.9.8-1.el7.remi.x86_64 php74-php-gd-7.4.33-6.el7.remi.x86_64 php-common-7.4.33-6.el7.remi.x86_64 php-sodium-7.4.33-6.el7.remi.x86_64 php74-runtime-7.4-3.el7.remi.x86_64 php74-7.4-3.el7.remi.x86_64 php74-php-mysqlnd-7.4.33-6.el7.remi.x86_64 Удаляем PHP 7.4 packages …

Continue reading ‘Downgrade php74 to php72’ »

LAMP Centos 7 на AWS Lightsail

# yum install update Timezone Centos 7 # yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm # yum -y install yum-utils # yum-config-manager –enable remi-php72 # yum update # yum install wget zip unzip # yum install httpd MariaDB # yum install mariadb-server mariadb # mysql_secure_installation And answer to questions in wizard: Switch to …

Continue reading ‘LAMP Centos 7 на AWS Lightsail’ »