Tomcat : Setting property ‘keystoreFile’ to ‘‘ did not find a matching property.

error in catalina.out is:

SEVERE: Failed to initialize connector [Connector[HTTP/1.1-443]]
LfecycleException:  Protocol handler initialization failed: java.lang.Exception: No Certificate file specified or invalid file format

solution seems to be to change the “protocol=” under the ssl connection in server.xml:


<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" SSLEnabled="true" 

<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"

It seems never versions of keytool and/or java doesn’t like the HTTP/1.1 protocol for the SSL connector.

WordPress error 404 redirect to homepage or anywhere else

Here is a simple way to have WordPress direct any WordPress 404 pages to your main page or anywhere else you like.

Simply edit your 404 theme file, (eg ./wp-content/themes/404.php) – every wordpress theme has a 404.php file.

Replace all lines of code with the following:

   header("Status: 301 Moved Permanently");

However this will NOT redirect a non wordpress page (eg. . For this, you need add an .htaccess file to your root web folder with the following code:

ErrorDocument 404 /index.php

I am not sure if the above .htaccess code would work on Windows based servers.

Upgrading MySQL 5.5 to Percona Server 5.5 or newer on Ubuntu 12.04

On Ubuntu 12.04 the following packages need to be uninstalled;
mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5

an easy way of replacing the standard MySQL 5.5 with Percona Mysql 5.5 is:
Configure the Apt repository: pt_repo.html

$sudo service mysql stop <-- make sure MySQL is fully stopped. For some reason the uninstall process (below) will not stop MySQL and there will be LOCK issues with the datadir when Percona Server starts. $sudo apt-get install percona-server-server-5.5 percona-server-client-5.5

It will uninstall the needed packages and replace them with Percona:

The following packages were automatically installed and are no longer required:
linux-headers-3.2.0-23-generic linux-headers-3.2.0-23
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
Suggested packages:
The following packages will be REMOVED:
mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
The following NEW packages will be installed:
percona-server-client-5.5 percona-server-common-5.5 percona-server-server-5.5
0 upgraded, 3 newly installed, 7 to remove and 3 not upgraded.

Sendmail error message – ‘general protection’

Recently I encounted this Sendmail problem:

Sendmail error: kernel: [617859.792404] sh[13556] general protection ip:b7794aa8 When trying to send an email.

For me – the solution was:

rm /dev/null

then recreate it:

mknod -m 0666 /dev/null c 1 3

I think I trashed my /dev/null recently and the above helped.