Tutorials for WordPress, MySQL, PHP, Java and many others. Easy and fun!
Tutorials for WordPress, MySQL, PHP, Java and many others. Easy and fun!
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…
Find Post’s Primary Category with Yoast
When using the Yoast SEO plugin, you can define a Primary Category for each post. Here is the code to find it:
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: …