Upgrade to Ubuntu 15.10 via command line

Ubuntu recently announced and released a new version of their operating system, called Wily Werewolf. This is version 15.10 of this Linux distribution and is officially supported until 07-2016. To upgrade your Ubuntu installation to the newest Ubuntu 15.10 release, open terminal and execute the following command: Upgrading Ubuntu from the command line is really that … 

 

Solved: Apache webserver unreachable after installing OpenVPN

After installing OpenVPN on a VPS running Linux (i.e. Ubuntu), my website that was hosted on that VPS running Apache webserver was no longer reachable. When I tried to connect to that website, the connection timed out. Apparently, something was messing with the functionality of Apache, which no longer worked properly. Apache was running fine … 

 

Howto: Updating Linux when DirectAdmin is installed

When you have DirectAdmin installed on your Linux operating system (e.g. Ubuntu, CentOS), you should not update your operating system without taking care of one thing first. DirectAdmin takes care of some packages itself, such as Apache or MySQL. So by updating these packages directly, you may cause some errors for DirectAdmin. To only update … 

 

Fix: php mail() slow to sent on Ubuntu

I recently installed sendmail to set up e-mail on my server. It’s as easy as intalling that package via apt-get: E-mail was installed correctly and working properly, because I tested it by creating a testmail.php file with these contents: Then, from the command line, I check if everything was working as I was expecting via … 

 

Speed up Ubuntu in VirtualBox

Ubuntu or other Linux distributions may be slow when you run it within VirtualBox. Often, the cause is that not enough RAM is assigned to the virtual machine, which makes it run slow and makes it unresponsive. However, if your VM already has plenty of RAM and you also already tried assigning an extra virtual … 

 

Decrease Virtualbox .vdi size by compressing it

A .vdi file (“VirtualBox Disk Image”) is at least a few gigabytes in size if you run a virtual Windows OS or Linux OS. To reduce the filesize of this file, you can compress it. This can potentially save a few megabytes or even gigabytes on your disk. Maybe needless to say, but you want … 

 

Find httpd.conf on Apache Linux webserver

The httpd.conf file is a configuration file used by the Apache webserver. It contains information about settings and functions by this webserver. The file can be located in various places; this depends on the version of Apache and/or the operating system used. It can be commonly found here: /etc/httpd/httpd.conf You can then edit this file with … 

 

Test your VPS server speed

A VPS can be bought for a cheap price these days and many hosting providers have various plans to choose from, ranging from a few hundred MB of RAM and a single core CPU, to virtual private servers with lots of RAM and speedy Gigabit connections. Mostly, a Linux server doesn’t need that much resources … 

 

Check the number of cores on your Linux server

If you have a virtual linux server running, or you just don’t know how many cores your Linux server has, you can use this command to find out. If you need more details, such as your CPU architecture, vendor ID, stepping and other information, issue this command: The output you should see, should be similar … 

 

phpMyAdmin – Error #1040 – Too many connections

You might encounter the error message: “phpMyAdmin – Error #1040 – Too many connections” when you work in the phpMyAdmin interface. This probably is something you don’t have to worry about that much. It is likely a temporary issue with your database and reloading the page should solve the issue. However, if this error is one … 

 

Install APC on CentOS/Fedore

To install APC, or Alternative PHP Cache, on your CentOS webserver, you should first install its dependencies: Now, install APC with the use of PECL (or PHP Extension Community Library): Now it is installed, we should enable it in our Apache configuration file. To enable it, we edit our php.ini file: We finalize the installation … 

 

Custom welcome message at boot on CentOS

To edit or add a welcome message on CentOS (and this will probably work on other Linux distributions too), simply login to SSH first. Once logged in, edit the following file /etc/motd with vi, nano or any other editor you prefer. I like nano, so I’ll go with that. Here, you can customize the message or, … 

 

Change the hostname in CentOS from the command line

Open an SSH session to your server and edit the following file (with nano, or vim, or any other editor) In that file, change the HOSTNAME value. Save the file. Now check your hostname by typing hostname in the command line. CentOS should output your current hostname. Perhaps you might have to restart networking on … 

 

Update/Sync time on CentOS

We will use the NTP daemon to update or sync the time of our CentOS server (or other Linux server). Make sure it is installed: Then, start the daemon: Now let’s update the time and date: If you get the error Can’t adjust the time of day: Operation not permitted, you probably use a VPS. …