Monthly Archives: October 2020

FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client

File not found.
Make sure SCRIPT_FILENAME same location like root:

server {
server_name 192.168.1.100;
location / {
root /var/www/html;

location ~* \.php$ {
fastcgi_pass unix:/var/run/php/php.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
}

postfix message size limit


Reporting-MTA: dns;
Action: failed
Final-Recipient: rfc822
Status: 5.0.0
Remote-MTA: dns;
Diagnostic-Code: smtp; 552 5.3.4 Message size exceeds fixed limit

postconf | grep message_size_limit
message_size_limit = 10240000 #This is default message size

echo "message_size_limit = 30480000" >> /etc/postfix/main.cf
service postfix reload

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7