How To Install Phoenix Framework on CentOS 7

r00t December 14, 2017

Install Phoenix Framework on CentOS 7

In this tutorial we will show you how to install Phoenix Framework on your CentOS 7 server. For those of you who didn’t know, For those of you who didn’t know, Phoenix is an emerging Elixir-based web development framework. It is intended to supply high development productivity, rich features, and strong runtime functionality.

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 accge of Linount, 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 the Phoenix Framework on a CentOS 7 server.

Install Phoenix Framework on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Required Packages.

Install necessary packages:

Step 3. Installing Erlang.

First, Add Erlang official repository to install the latest Erlang:

Install Erlang using command:

Verify whether Erlang is installed or not by using the following command:

Step 3. Installing Elixir.

First, Git clone to the Elixir repository:

Next, Go to the elixir directory:

Now, It is highly recommended to add Elixir’s bin path to your PATH environment variable:

Verify whether Elixir is installed or not by using the following command:

Step 4. Installing Phoenix Framework.

Use the following command to install Phoenix:

Step 5. Installing PostgreSQL.

You can install PostgreSQL using YUM:

Start the postgresql service:

Set a password for the default PostgreSQL user “postgres”:

Setup the database user authentication method:

Find the following section:

Modify the authentication method of IPv4 local connections to md5:

Restart the postgresql service to take effect:

Step 6. Installing inotify-tools.

Use the following command to install a required component “inotify-tools”:

Step 7. Create a Phoenix application.

Assume that you want to create a Phoenix application in the directory ~/idroot_project_1:

This command will create the application directory ~/idroot_project_1 for you. Get into the directory and create a database:

Fire up your application with the following command:

Step 8. Accessing Phoenix Framework.

Phoenix Framework will be available on HTTP port 4000 by default. Open your favorite browser and navigate to or http://server-ip:4000 and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed Phoenix Framework. Thanks for using this tutorial for installing Phoenix Framework on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Phoenix Framework web site.

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!
Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit1Pin on Pinterest1

Leave a Comment