Premature end of script headers: in.cgi
Apache/2.2.15 (Unix) DAV/2
PHP/5.2.17 configured
suEXEC
mod_perl installed?
Premature end of script headers: in.cgi
Apache/2.2.15 (Unix) DAV/2
PHP/5.2.17 configured
suEXEC
mod_perl installed?
Apache 2.2 not reading the .htaccess?
<Directory “/var/www/html”>
AllowOverride All
Try to edit the .conf for the domain and use AllowOverride All.
Save and restart Apache.
ERROR 1214 (HY000) at line 323: The used table type doesn’t support FULLTEXT indexes
Upgrade to 5.6 and use InnoDB Full-Text Search
configuration error: couldn’t perform authentication. AuthType not set!:
On Apache < 2.4 we need to use “Allow from all“

This was tested on a CentOS 7.

This might have TWO possible causes
Some important files/directories
nrpe.cfg – /etc/nagios/nrpe.cfg
nagios/nrpe plugins folder – /usr/lib64/nagios/plugins/
logs – /var/log/messages
My nrpe.cfg, in a CentOS 7, is located at /etc/nagios/nrpe.cfg
nano /etc/nagios/nrpe.cfg
In a default nrpe installation log is disabled!
You might want to enable it for better debug of the issues… Go to and enable it.
log_file=/var/run/nrpe.log
Yah!, the default installation will came also with debug disabled.
We want it enabled to see more information while we try to use service nrpe status for example.
debug=1
Server address… it might confuse you!
Server address ISN’T the NAGIOS’s ip address. It’s the actual external IP address of the current machine! allowed_hosts it’s actually it!
lsof -i:5666
netstat -an |grep 5666
If you don’t see any result… this probably means that nrpe is down!
See the ‘section’ Add NRPE to service bellow.
sudo firewall-cmd --permanent --zone=public --add-port=5666/tcp firewall-cmd --reload
sudo systemctl enable nrpe.service sudo systemctl start nrpe.service





server {
listen 80;
server_name domain.com *.domain.com;
charset utf-8;
location /.well-known/acme-challenge/ {
try_files $uri /dev/null =404;
}
return 301 https://$host$request_uri;
}
So, I was trying to create a SSL certificate with certbot…..
root@sd-5555:~# certbot --apache -d blog.domain.com
This was how I’v done to properly create it.
certbot --authenticator standalone --installer apache -d blog.domain.com --pre-hook "systemctl stop apache2" --post-hook "systemctl start apache2"