30.1 C
Senior Writer and partner

How to install Phabricator on CentOS 7?

The process of making a program is somewhat more complicated than many people think. The process even goes far beyond simple programming. So to optimize the time spent and thus improve the results of the construction of it. Therefore, tools are required to help programmers with the process of coding, review, implementation, and monitoring of the program. So, with this in mind, today I will teach you how to install Phabricator on CentOS 7.

Phabricator is a set of tools for developing software. It includes applications for code review, repository hosting, bug tracking, project management, and more. Phabricator is a powerful, fast, scalable, and completely open source. Many companies use Phabricator to build their internal or public applications such as Facebook or Dropbox.

In the technical section, Phabricator is integrated with version control services such as Git or mercurial. In addition, it is built with PHP so its installation is from a functional web server. So it’s not complicated to do.

So, with this, we can start installing Phabricator on CentOS 7.

1. Install Apache and PHP

- Advertisement -

Being a web application, it is necessary to have the infrastructure of a server. In the official CentOS 7 repositories, we will have Apache to install.

:~$ su
:~# yum install httpd

1.- Install Apache
1.- Install Apache

The version of PHP that comes in the official repositories of CentOS 7, is somewhat outdated but we will run Phabricator. So for this, just install PHP along with some necessary modules for Phabricator to work.

:~# yum install php php-mysql php-gd php-curl php-apc php-cli php-mbstring php-iconv php-pcntl php-opcache

2.- Install PHP
2.- Install PHP

After that, you need to enable apache to start at the boot system.

:~# systemctl enable httpd
:~# systemctl start httpd

Then, set the Firewall rule to allow the use of Apache.

:~# firewall-cmd --add-port=80/tcp --permanent
:~# firewall-cmd --reload

3.- Add the Firewall rule
3.- Add the Firewall rule

Finally, open the web browser and go to HTTP://Your-server/. You will see this

4.- Apache default page
4.- Apache default page

So, Apache and PHP are ready to be used.

2. Install MariaDB

MariaDB is an SQL database manager. It is a MySQL fork and is necessary to run Phabricator. So you have to install it.

:~# yum install mariadb-server

5.- Install Mariadb
5.- Install MariaDB

Then, start and enable the service using the systemctl command.

:~# systemctl enable mariadb
:~# systemctl start mariadb

After that, you need to set a root password for MariaDB. So, run the mysql_secure_installation script.

:~# mysql_secure_installation

So, you will be asked for many configuration questions. The answer like this: Y, N, Y, N.

6.- Using the mysql_secure_installation
6.- Using the mysql_secure_installation

3. Install Phabricator

To install Phabircator we need Git. So we’ll install git first.

:~# yum install git

7.- Install git
7.- Install git

Next, we will clone the Phabricator files into a folder that we’ll create inside Apache’s root directory.

:~# mkdir /var/www/html/phabricator
:~# cd /var/www/html/phabricator
:~# git clone https://github.com/phacility/libphutil.git
:~# git clone https://github.com/phacility/arcanist.git
:~# git clone https://github.com/phacility/phabricator.git

8.- clone and Install Phabricator
8.- clone and Install Phabricator

Next,  set a VirtualHost for Phabricator:

:~# nano /etc/httpd/conf.d/phabricator.conf

And add the following:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/phabricator/phabricator/webroot/
ServerName phabricator.your-domain.com
ServerAlias www.phabricator.your-domain.com
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
<Directory /var/www/html/phabricator/phabricator/webroot/>
AllowOverride All
ErrorLog /var/log/httpd/phabricator.example.com-error_log
CustomLog /var/log/httpd/phabricator.example.com-access_log common

9.- Creating a new virtualhost
9.- Creating a new virtualhost

Next, restart Apache.

:~# systemctl restart httpd

The next step is to configure Phabricator with MariaDB. So run these commands:

:~# ./bin/config set mysql.host localhost
:~# ./bin/config set mysql.user root
:~# ./bin/config set mysql.pass your_mariadb_root_password

10.- Setting Phabricator
10.- Setting Phabricator

Run the following script so that Phabricator can populate the initial data to work.

:~# ./bin/storage upgrade --user root --password your_mariadb_root_password

11.- Configure Phabricator
11.- Configure Phabricator

After that, restart MariaDB.

:~# systemctl restart mariadb

4. Complete the installation using the web interface

So, you have to complete the installation. Open your web browser and go to your server and you will see this.

12.- Creating the admin account
12.- Creating the admin account

After that, you will see the dashboard of the application

13.- Phabricator is ready to work
13.- Phabricator is ready to work


As you can see, Phabricator is a very important application for developers. It allows many options for deployment and monitoring of the program. Performing the installation on a system with CentOS 7 is quite simple compared to the utility of the application.

Please share this post with your friends.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


Please enter your comment!
Please enter your name here

Latest article