Regex Between Two Strings

cat mobile_errors.txt.txt | grep -o -P '(?<=returned for booking ).*(?= with error code)' | sort | uniq > mobile_error_bookings.txt

The magic of this search is here:

grep -o -P '(?<=beginning string with space at end ).*(?= ending string with space at start of it)

Website Traffic Analysis with goaccess better than Webalizer

Refer: https://www.makeuseof.com/analyse-website-traffic-from-linux-terminal-with-goaccess/#why-not-use-google-analytics

Installation

sudo apt-get install goaccess

Terminal Version

Use "NCSA Combined Log Format"

goaccess /home/mruckman/Desktop/apache-log-files-202X-mm-dd/var/log/httpd/access_log -o report.html --log-format=COMBINED

There are keys you can use to navigate panels and browser forward and backwards. Type ? for help screen.

[Tab] and [Shift]+[Tab] key navigates between panels

Hit [Enter] to open a panel and then

[Ctrl] + [f] is forward
[Ctrl] + [b] is backward

Generate an HTML Report

goaccess /home/mruckman/Desktop/apache-log-files-202X-mm-dd/var/log/httpd/access_log -o report.html --log-format=COMBINED

Linking Domains to your GoDaddy Account

When GoDaddy upgraded and change my server package, we move my domains from one plan to another; however, the sites never went live on the new servers. This was because GoDaddy's automated process did not update my DNS settings properly. Do this manually.

Get the IP address of the new server, and you need to go through each domain that you own and update the A records for the DNS.

Using All-in-One WP Migration Plug-in

You MUST use these two settings for things to work.

  • You can use this plug-in to export your site; however, test it first with Docker and YOU CANNOT export the plug-ins. It wil break the site!
  • Also, YOU MUST go into your settings and make your permalinks

All-in-One WP Settings

You should install the plug-in to upload large files too, on your target WordPress - all-in-one-wp-migration-file-extension.zip

You can also use "Traktor-1.1.exe" to extract the files, but it might be easier to just import using Docker and WordPress itself.