LinkedIn Twitter YouTube
tech-head.uk
 
Skip to content
  • Home
  • Categories
    • Apache
    • email
    • Linux
    • Mac
    • Monitoring
    • MySQL
    • Networking
    • PHP
    • Scripting
    • Tools
    • VMware
    • Windows
  • About
Home Posts tagged "Linux"

Tag: Linux

Running Multiple Versions of PHP on Apache and Ubuntu 20.04

Colin Barlow 3 January 2021 10 January 2021Apache, Linux Apache, Linux, PHP 0

PHP-FPM uses a daemon to manage the multiple PHP versions on a single server. Together we can use Apache and PHP-FPM to host multiple PHP web sites, each using a different versions of PHP at the same time. This is useful because different applications may require different versions of PHP. HP-FPM…

Continue reading

Set Up Postfix With Mailgun as SMTP Relay

Colin Barlow 3 January 2021 9 January 2021email, Linux email, Linux, Mailgun, Postfix 0

If you ever find that you need to send out email from your server via a relay, as you cannot send them out directly from your server’s IP (eg its been black listed). Relaying the mail via Mailgun is a good option. To do this you will need to setup…

Continue reading

Installing PHP 5 and MySQL 5.5 on Ubuntu 18.04

Colin Barlow 11 May 2020 10 January 2021MySQL, PHP Linux, MySQL, PHP, Ubuntu 0

While I fully understand the security implications of running these legacy and unsupported versions of PHP and MySQL. I had an application that had these dependancies, but I wanted to move to a supported LTS version of Ubuntu. Once you have Ubuntu 18.04 installed with Apache 2, you can use…

Continue reading

Fixing Nagios “error: Could not stat() command file”

Colin Barlow 27 October 2019 9 January 2021Monitoring Linux, Nagios, Ubuntu 0

One common configuration issue with Nagios 3 running on Ubuntu is getting the Service Commands menu to work correctly in the web portal. By default, it is visible in the UI, but disabled on the server backend. In Ubuntu, you will recieve the cryptic error Could not stat() command file pointing to /var/lib/nagios3/rw/nagios.cmd. This can…

Continue reading

Nagios Error – CHECK_NRPE: (ssl_err != 5) Error – Could not complete SSL handshake

Colin Barlow 28 May 2019 10 January 2021Linux, Monitoring Linux, Nagios 0

There is a known error when your Nagios Monitoring Server is running Ubuntu 16.04 and you are trying to monitor a server with a newer version of Ubuntu like Ubuntu 18.04. In Ubuntu 18.04, NRPE uses a 2048 bit DH key, but in earlier versions of NRPE use a 512…

Continue reading

Fix Ubuntu Read Only File System

Colin Barlow 30 January 2015 9 January 2021Linux File System, Linux, Ubuntu 0

I had an issue today where a Linux VM’s file system was read only after a SAN issue.  When a Linux server like Ubuntu looses access to its disks, the file system can go into read only to protect it from corruption. To resolve this you will need to run the following command:…

Continue reading

Removing non UTF-8 Characters

Colin Barlow 5 February 2014 9 January 2021Linux Linux 0

While generating a PDF from a dynamically created HTML file, I found that the PDF generation failed as there were non UTF-8 characters in the HTML file. To try and find these characters, I used the strings command with the -n 8 switch to remove any non UTF characters: I was…

Continue reading

Setup Bind 9 DNS Logging and Statistics

Colin Barlow 19 September 2013 10 January 2021Networking Bind, Linux, Networking, Ubuntu 0

Logging To setup logging in Bind 9 you will need to complete the following: First configure logging in your named.conf.options file Add this at the bottom of the file: Now create a directory for the logs.  Unless you edit  your /etc/apparmor.d/usr.sbin.named, you will have to use the default directory of…

Continue reading

Installing master and slave DNS Servers using Bind 9 on Ubuntu

Colin Barlow 12 July 2013 10 January 2021Networking Bind, Linux, Networking, Ubuntu 0

On the master server install bind server and bind utilities: Once bind has been installed, you need to setup the zones you will be hosting.  In this example,  domain.com is your domain name, 60.60.20.15 is the IP address or your slave server, and 50.50.20.15 is the IP address of your…

Continue reading

Encrypt and decrypt a file with OpenSSL

Colin Barlow 19 June 2012 10 January 2021Tools Linux, OpenSSL, Tools 0

I was recently looking for a way of encrypting files with a salted encryption algruthum, and found this can be done using OpenSSL. It’s really easy and much more secure that using a zip product. You do this by using the following syntax: openssl des3 -salt -in /path/FileToBeEncrypted -out /path/EncryptedFileName…

Continue reading

12
  • Tags

    3Par Apache Backups Bind Cisco email File System Fonts Hacking HPE HTML5 Linux Mac Mailgun Minikatz MPDF MySQL Nagios Netbackup Networking OpenSSL PHP PHPMailer Postfix PowerShell Proxy Scripting Squid Storage Tools Ubuntu UFW VMware Windows
2012 - 2021 © Colin Barlow
Powered by Nirvana & WordPress.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.