Posts Categorized: Ubuntu


Changing the Port Number of vsftpd

By default, vsftpd (Very Secure FTP Daemon) utilizes port 21. To change this port is a fairly quick process. $ sudo nano /etc/vsftpd.conf In this file, find listen_port. If you can’t find it, add it in yourself. listen_port=202 Then restart vsftpd. $ sudo service vsftpd restart Make sure you allow this port to be used

Switching from using a Socket to TCP/IP in PHP-FPM

A couple of websites on our DigitalOcean VPS  have a great amount of traffic. Due to this traffic, I ran into the error below (edited for readability). [crit] connect() to unix:/var/run/php5-fpm.socket failed 2 No such file or directory This was because the amount of concurrent users was starting to get high. Instead of fiddling around

Fixing 504 Gateway Time Out (Nginx & PHP5-FPM)

Since upgrading the server from Ubuntu 12.04 to 14.04 a couple of months ago, we ran into this problem: ‘lfd on obstance.com: High 5 minute load average alert‘. Because, during the upgrade, some files were replaced with newer versions such as PHP5-FPM’s php.ini file, not all of our server configurations were exactly as they had

“Excessive processes running under user”

Sometimes you’ll need to add certain packages to your Linux server, and CSF will sometimes send emails to make sure you can keep an eye on suspicious processes and activity. If you know something is not malicious, you can add it to the ignore file to stop receiving these emails. As an example, we recently

DKIM on Multiple Domains With Exim4

First off, we’re going to assume that you’ve already set up Exim4 on your server and have already done the general configuration for it. It should be working and ready to go. We’ll get DKIM set up so that we can have signed email from multiple domains — each signed by their respective TLDs. Getting

PuTTY On the Go With PuTTY Portable

As I have a trip coming up within 24 hours to the Netherlands, I thought it would be a good idea to take PuTTY along with me. I only ever use my laptop when I’m traveling, but I’ve rarely ever used it for work since that’s generally reserved for my desktop. But seeing as how

Upgrading Your Version of Nginx

When you’re on an LTS (Long Term Support) version of Ubuntu, such as 12.04 or 14.04, the repositories that are included may not be fully up-to-date. Using Ubuntu 12.04, the version of Nginx that comes in the source package is 1.1.19, while the latest stable version at the time of this writing is 1.6.0. You

Generating and Using SSH Keys With PuTTY

PuTTY is a free implementation of Telnet and SSH for Windows and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham — http://www.chiark.greenend.org.uk/~sgtatham/putty/ Security is important, whether you’re running a hobby website or a full scale business network. SSH Keys can help you secure your SSH by

Setting Up a Mail Server Using iRedMail

After finding out about Windows Live Admin Center shutting down, I thought I’d investigate the best way to set up our own mail server for Obstance. There was the option of upgrading to Office 365, but the cost for a small business subscription really didn’t appeal to me. After doing some research, I decided that

Making the Switch From MySQL to MariaDB

Over the last few days, we’ve been working on some server optimizations here at Obstance. Part of the process was making the switch from MySQL to MariaDB. Or maybe more appropriately worded, upgrading to MariaDB. It’s such an insanely simple process, you’ll wonder why you haven’t done it yet. We’ll let you know how to