How To Install CiviCRM on Ubuntu 18.04 LTS

Install CiviCRM on Ubuntu 18.04 LTS

In this tutorial we will show you how to install CiviCRM on Ubuntu 18.04 LTS. For those of you who didn’t know, CiviCRM is an open source constituent relationship management (CRM) specifically designed for the needs of non-profit, non-governmental, and advocacy groups. It is developed and maintained by a growing community of contributors and is designed to manage information about an organization’s members, event registrants, donors, subscribers, grant application seekers, funders, and case contacts. CiviCRM can be deployed in conjunction with either WordPress, Drupal or Joomla to track contacts and their relationships to projects and initiatives.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation CiviCRM on a Ubuntu 18.04 (Bionic Beaver) server.

Install CiviCRM on Ubuntu 18.04 LTS Bionic Beaver

Step 1. First, make sure that all your system packages are up-to-date by running these following apt commands in the terminal.

Step 2. Install LAMP (Linux, Apache, MariaDB and PHP) server.

An Ubuntu 18.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

Also, install PHP Module “mcrypt”:

Step 2. Installing WordPress on Ubuntu.

Download and extract the latest WordPress installation files in the document root directory of your WordPress website ( /var/www/html/

Then, create a Database for WordPress:

Step 5. Configuring Apache for WordPress.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘wordpress.conf’ on your virtual server:

Add the following lines:

Save and close the file. Restart the Apache service for the changes to take effect:

Step 4. Installing CiviCRM on Ubuntu.

Download the latest version of CiviCRM from and extract it in the /var/www/html/ directory on your server:

Then, create a Database for CiviCRM:

Next, go to the WordPress dashboard and click on the ‘CiviCRM Installer’ link at the top of the page. From there, change the database name, verify that all requirements are met, and install CiviCRM:

Install CiviCRM on Ubuntu 18.04 LTS

That is it. CiviCRM has been installed on your server. You can now configure and extend CiviCRM according to your needs.

Congratulation’s! You have successfully installed CiviCRM. Thanks for using this tutorial for installing CiviCRM constituent relationship management (CRM) on Ubuntu 18.04. For additional help or useful information, we recommend you to check the official CiviCRM website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!