Linux

Install PHP 5.3 on Ubuntu 17.10

I know, I know, I know, I know! I need to update my code! If I haven’t said it already, I know! But… I don’t have time to updated hundreds upon hundreds of lines of code, so I’m taking the easy way out. I found the steps to do it here: http://sandeep-bisht.blogspot.com/2017/08/phpbrew-install-php-53-in-ubuntu-1604.html The system I’m… read more »

How to test and patch your server for the Shellshock exploit

To test your system to see if it is vulnerable to the ShellShock exploit, run the following command from the command line: env check=’Not vulnerable’ x='() { :;}; check=Vulnerable’ bash -c ‘echo $check’ If the reply from the command says “Vulnerable”, you should patch it immediately! The fix is actually quite simple and only takes… read more »

How to create a CSR (Certificate Signing Request) in Linux using OpenSSL

Before you can purchase or create your own self signed SSL certificate, you must first create a CSR (Certificate Signing Request) and a Private Key. These two files much be created simultaneously or the resulting SSL certificate will not work. As root, Run the following command: openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout… read more »

How to Resize a Linux Cloud Disk Size After an Upgrade

Scope This article was written to outline the steps required to resize the disk space on a Codero Cloud instance that had previously been upgraded to a larger size.   Requirements A Codero Cloud account A running Codero Cloud instance that had previously been upgraded to a larger size.   Procedure   Log In Log… read more »

How to use the nano command line editor in Linux

This article is designed to provide a few basic instructions for using the Linux nano command line editor. While nano does not offer the power of editors such as vi or vim, it works great for day to day editing where advanced features are not required. Install nano CentOS, Fedora, Redhat sudo yum install nano… read more »

How to use a2ensite and a2dissite with rpm based apache systems

One thing this author prefers, it is the Debian (apt-get) style use of a2ensite and a2dissite to enable and disable hosted domains. This guide will show you how to set up a similar system in rpm based (Redhat, Fedora, CentOS, etc) systems. Set up instructions To setup a similar system on your rpm based server,… read more »

How to add an additional IP in Debian or Ubuntu

View Current Network Settings Before we start, lets take a look at the current settings. cat /etc/network/interfaces auto eth0 iface eth0 inet static address 123.34.45.56 netmask 255.255.255.0 gateway 123.34.45.1 hwaddress 00:12:34:56:78:9A dns-nameservers 69.64.66.11 69.64.66.10 auto lo iface lo inet loopback   Configure Updated Settings Before proceeding, a couple of variables need to be defined. EthX:1… read more »

How to Mount a Drive in Linux

To mount a disk on boot, you will need to enter the disk/partition information in the fstab file. Before this, you should have the uuid of the partition. 1. Create the mount point Create the mount point (directory) for the new partition. This is often done in /mnt or /media mkdir /media/partition_name 2. Determine Drive… read more »

Sidebar