W: GPG error: http://dl.google.com stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
This will solve the problem
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6494C6D6997C215E
Edit /etc/mdadm/mdadm.conf and, after # definitions of existing MD arrays add
ARRAY <ignore> devices=/dev/sda
As seen on https://askubuntu.com/questions/834903/i-dont-have-a-raid-but-get-the-warning-mdadm-conf-defines-no-arrays
[Wed Jul 19 16:08:45.679229 2017] [cgi:error] [pid 2954] [client 94.63.xxx.xxx:12439] End of script output before headers:4KUYWRBjpMFod9i.cgi
[Wed Jul 19 16:09:05.030839 2017] [cgi:error] [pid 783] [client 94.63.xxx.xxx:37260] AH01215: (2)No such file or directory: exec of ‘/home/webroot/nasamos.com/www/cgi-bin/x9uWvwAREeUkQn5p/4KUYWRBjpMFod9i.cgi’ failed
I saw a few blog posts and forum threads about this issue, but NONE was able to help me….
Yah!, syntax was okay….
perl -c 4KUYWRBjpMFod9i.cgi
4KUYWRBjpMFod9i.cgi syntax OK
I’v created a brand new file on /cgi-bin/ with some dummy filename and pumped a simple perl script on it…
# hello.pl -- my first perl script!
print "Content-type: text/html\n\n";
print "Hello, world!\n";
I was able to run it successfully, so…. the issue wasn’t on the CGI/PERL/APACHE/FIREWALL/SUEXEC.
I guess that the 4KUYWRBjpMFod9i.cgi had some issue… even using file -i it looked to be okay… I’v decided to copy the content of 4KUYWRBjpMFod9i.cgi to the new dummy cgi file … and it worked….
I guess that the issue was on the encoding of the original cgi…
Reading package lists... Error!
Segmentation fault (core dumped)
How to solve it?
This worked for me…
Remove the cache files
Do it again!
sudo apt-get update
sudo apt-get upgrade
As seen on https://askubuntu.com/questions/532200/14-04-lts-apt-get-segfault
While I was trying to preform an apt-get upgrade i got FATAL -> Failed to fork. error.
According to some fellows around, this issue was probably caused due to the lack of memory!, and it was… 🙂
Free it…. somehow…
Reboot the server?
here ‘ya go
sudo apt-get install php5-curl
sudo service apache2 restart
My nagios was returning a CRITICAL error on one of my servers…
CRITICAL | sd-XXXX.host.net | (Return code of 255 is out of bounds)
and httpd server wasn’t responding….
I think that problem was on IPTABLES / FAIL2BAN ban list. I had 702 banned IPs…
After I clean them up, everything went okay!
I was playing hard with them… my bantime was 3600000 (41d) and my findtime was 60000 (16h)…
0. Update the system
apt-get update && apt-get upgrade
1. Install nagios nrpe & nagios plugins
apt-get install nagios-nrpe-server nagios-plugins
2. Configure NRPE
Search for server_address and replace 188.8.131.52 for the public ip of this machine.
Search for allowed_hosts and replace 184.108.40.206 for the IP of your nagios server.
3. Restart NRPE
That’s kinda it…
I realized that fail2ban wasn’t banning SSH fail login attempts…
My server’s time is different from the one being logged by rsyslog ’cause I had to change my timezones once…….. 🙂
Lets restart rsyslog.
sudo service rsyslog restart
This new server with Ubuntu 16.04 LTS cames with PHP 7.0.
The backup that I have from my client has some old WordPress blogs…
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I need to downgrade PHP 7.0 to PHP 5.6, at least for now.
Before you procede with the tutorial on the following link, and if you are running a new Ubuntu 16 installation you might get upon the following error while following the tutorial.
[email protected]:/home/httpd/html# sudo add-apt-repository ppa:ondrej/php
sudo: add-apt-repository: command not found
To install add-apt-repository you will need to run the following command
sudo apt-get install software-properties-common
Now the solution How can I downgrade from PHP 7 to PHP 5.6 on Ubuntu 16.04? [duplicate].