Change Active Version of PHP

If you have several version of PHP installed, you can switch between them at anytime. To change between them you use the update-alternatives command which will display available versions and let you choose which one you want active.

Install PHP 8 on Ubuntu 20.04

In Ubuntu 20.04 the standard version of PHP is 7.4. You might want to install the newest version which is 8.0 (as of April 2021). Before installing it, you need to update your repository to get the packages: Now let’s…

Connect Apache to Tomcat Using mod_jk

This short tutorial will explain how to connect Apache 2 to Tomcat 10 using mod_jk. First thing, let’s install mod_jk. Now let’s create the workers properties file: Here is a simple workers.properties example: Next, edit Tomcat’s server.xml file to enable…

Install OpenJDK on Ubuntu 20.04

OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE). Before you begin, let’s update the apt package index Now let’s install it (it can take a few minutes as there…

Create a Virtual Host for Apache on Ubuntu

After you installed Apache you can start hosting websites. For each website (domain or subdomain) you will need a Virtual Host. This requires a file that conatins information for Apache to find where the website’s files are on your server,…

Use Custom Fields to Find Related Posts

WordPress makes it easy to find posts in the same category, with the same tag, most recent posts and so on. You may want to refine what other posts you recommend when viewing a post. For example, in one category…

Manage Databases and Users in MySQL

You create users and databases with the CREATE command and delete them with the DROP command. Delete databases and users: Create databases and users: Change the user’s password: Add permisions to the user for the database: Keep in mind that…

Change PHP Upload Size

To change the PHP maximum upload size, you need to edit the php.ini file and then restart the webserver. Depending on your Linux distribution, the php.ini will be located at a different location:CentOS / Red Hat: / Debian: …