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
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
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
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
Finally, open the web browser and go to HTTP://Your-server/. You will see this
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
Then, start and enable the service using the
:~# systemctl enable mariadb :~# systemctl start mariadb
After that, you need to set a root password for MariaDB. So, run the
So, you will be asked for many configuration questions. The answer like this: Y, N, Y, N.
3. Install Phabricator
To install Phabircator we need Git. So we’ll install git first.
:~# yum 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
Next, set a VirtualHost for Phabricator:
:~# nano /etc/httpd/conf.d/phabricator.conf
And add the following:
<VirtualHost *:80> ServerAdmin email@example.com 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 </Directory> ErrorLog /var/log/httpd/phabricator.example.com-error_log CustomLog /var/log/httpd/phabricator.example.com-access_log common </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
Run the following script so that Phabricator can populate the initial data to work.
:~# ./bin/storage upgrade --user root --password your_mariadb_root_password
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.
After that, you will see the dashboard of the application
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.