wp_wfConfig too large
While debugging some bottlenecks in one of my servers… i’v realised that one of my db queries to Wordfence tables were causing it. Solution was to… uninstall wordfence – to clean all their tables –...
View ArticleSELinux – Failed to open stream: Permission denied
sudo chcon -t httpd_sys_rw_content_t {path_of_your_project_directory} -R
View Articleexplainshell.com
write down a command-line to see the help text that matches each argument Hello, This site contains 29761 parsed manpages from sections 1 and 8 found in Ubuntu’s manpage repository. A lot of...
View ArticleVirtualBox – Share internet to (linux) VM – MACOSX!
On your CentOS edit /etc/sysconfig/network-scripts/ifcfg-enp0s3 and set ONBOOT to yes and add the DNSs… in this case I’m using Google DNS ips. ONBOOT=yes DNS1=8.8.8.8 DNS2=8.8.4.4 Should work!
View Articlegoogle pagespeed – centos installation
Let’s edit/create google-mod-pagespeed.repo vi /etc/yum.repos.d/google-mod-pagespeed.repo and add [google–mod–pagespeed] name=google–mod–pagespeed...
View ArticlePEAR – DB Error: extension not found
Yesterday I had to set up a new server for bunch of sites from 2008 using PHP Pear…. DB Error: extension not found You might need to add the following line at the end of /etc/php.ini...
View Articlefail2ban.actions [14644]: NOTICE [sshd] 113.131.58.142 already banned
Meanwhile in a new VPS… 2018-04-18 19:56:42,211 fail2ban.actions [14644]: NOTICE [sshd] 113.131.58.142 already banned 2018-04-18 19:56:43,213 fail2ban.actions [14644]: NOTICE [sshd] 113.131.58.142...
View Articlefail2ban – remove ip from ban
https://serverfault.com/a/760324/152273 please give some votes up to the author! see also http://www.digitalwhores.net/linux/iptables-unban-ip/
View ArticleMeltdown & Spectre – CentOS
This is, for what I’v read about, the two main things that we need to have updated… kernel-3.10.0-693.11.6.el7.x86_64 microcode_ctl-2.1-22.2.el7.x86_64 Check them trought uname -r and dmesg | grep...
View Articlersync – protocol version mismatch — is your shell clean?
protocol version mismatch — is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(174) [sender=3.1.0] Are you trying to rsync to a...
View ArticleSFTP allow user to login via SFTP
If we are just allowing both on AllowUsers in file /etc/ssh/sshd_config, new users won’t be allowed to access the server. So!, lets edit it a add the new user. Find AllowUser line and add it there....
View Articledashboard for VMware, SNMP, REST API and more
Simple dashboard system for sysadmins with modules for VMware, SNMP, REST API and more SysAdminBoard is a simple dashboard system written in Python, HTML and Javascript and served on a simple CherryPy...
View ArticleName-based virtual hosting with Nginx
https://bneijt.nl/blog/post/name-based-virtual-hosting-with-nginx/
View ArticleLinux – Sort unique IP from Apache log and count entries
Usefull! cat /path/access.log | awk '{print $1}' | sort -n | uniq -c | sort -nr | head -50
View ArticleCert not yet due for renewal – force renew
[root@sd-8XXX pjrf]# /usr/local/sbin/certbot-auto renew >> /var/log/le-renew.log Saving debug log to /var/log/letsencrypt/letsencrypt.log Cert not yet due for renewal Cert not yet due for...
View ArticleCentOS – Enable the mod_proxy modules in the HTTPD
In our /etc/httpd/conf/httpd.conf lets see if we have the following lines on it. Uncomment them or add them. LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module...
View ArticleCan’t locate CGI/Carp.pm in @INC & Can’t locate LWP/Simple.pm in @INC
[Thu Mar 09 02:23:43.435879 2017] [cgi:error] [pid 28444] [client 94.63.XXX.XXX:54192] AH01215: Can’t locate CGI/Carp.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5...
View Articleyum-update – /boot/ no disk space
While I was trying to update a CentOS server… I got an error saying that /bott/ didn’t had enough disk space…… Sumário de erros ------------- Requisitos de disco: São precisos pelo menos mais 30MB de...
View Article/.well-known/acme-challenge/ – 404
1 renew failure(s), 0 parse failure(s) IMPORTANT NOTES: - The following errors were reported by the server: Domain: subdomain.domain.com Type: unauthorized Detail: Invalid response from...
View Article