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:

from:

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

to
<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.

easy:

ps aux | awk '{ print $8 " " $2 " " $11}' | grep -w Z

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:

<?php
   header("Status: 301 Moved Permanently");
   header("Location:http://www.YOURSITE.tld");
?>

However this will NOT redirect a non wordpress page (eg. www.yoursite.com/blah3333/) . 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.

Here is a handy command to find files and folders that contain a specific string of text:

example:

find /home | xargs grep “Hello World”

The above command will look for any instance of the string “Hello World” (without quotes) within all files and folders within the /home/ directory recursively.

To get a list of files recursively from oldest to newest, type in the following:

find . -printf '%T@ %c %p\n' | sort -k 1n,1 -k 7 | cut -d' ' -f2-

and that’s it!