Phabricator is an open source, web-based software development platform that allows you to manage code, projects, and people. In this tutorial, we will walk you through the steps to install Phabricator on Elementary OS Latest.
Before we start, make sure you have the following:
First, we need to install some required packages on our system. Open the terminal and run the following commands:
sudo apt update
sudo apt install apache2 mysql-server php7.4 php7.4-mysql php7.4-curl php7.4-json php7.4-cgi php7.4-gd php7.4-mbstring php7.4-mcrypt php7.4-xml libapache2-mod-php7.4 git
Phabricator requires a MySQL/MariaDB database server. We need to create a new database and user for Phabricator. Run the following commands to access the MySQL shell:
sudo mysql
Once you are in the MySQL shell, create a new database and user:
CREATE DATABASE phabricator;
CREATE USER 'phabricator'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON phabricator.* TO 'phabricator'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Replace "password" with a secure password of your choice.
Next, we need to download and install Phabricator. We will install it in the /var/www/html directory. Run the following commands to download and extract Phabricator:
sudo mkdir -p /var/www/html/phabricator
cd /var/www/html/phabricator
sudo git clone https://github.com/phacility/phabricator.git ./
sudo git checkout stable
sudo ./bin/storage upgrade --force
Next, we need to configure Apache to serve Phabricator. Open the Apache configuration file:
sudo nano /etc/apache2/sites-available/phabricator.conf
And paste the following configuration:
<VirtualHost *:80>
DocumentRoot /var/www/html/phabricator/webroot
<Directory "/var/www/html/phabricator/webroot">
AllowOverride All
</Directory>
</VirtualHost>
Save and close the file. Enable the configuration and restart Apache:
sudo a2ensite phabricator.conf
sudo systemctl restart apache2
Phabricator needs some configurations to work properly. Run the following command to generate the configuration file:
sudo ./bin/config set mysql.user phabricator
sudo ./bin/config set mysql.pass password
sudo ./bin/config set mysql.host localhost
sudo ./bin/config set repository.default-local-path /var/repo/
sudo ./bin/config set phabricator.base-uri 'http://localhost/'
sudo ./bin/config set phabricator.timezone 'US/Pacific'
Replace "password" with the password you set in Step 2.
Next, run the following command to generate a Phabricator OAuth client:
sudo ./bin/auth create-client --name=ElementaryOS --description="OAuth Client for ElementaryOS" --redirect-uri=http://localhost
Take note of the client ID and client secret generated by this command.
Finally, we need to go to the Phabricator web installer to finish the installation process. Open your web browser and go to http://localhost/. You should see the Phabricator web installer.
In the Installer page, select "Advanced Configuration" and enter the MySQL database credentials and OAuth client details we set in Steps 2 and 4. Leave the other settings as default.
Click "Install Software" and wait for the installation process to complete. Once the installation is finished, you can log in to Phabricator using the default username/password:
Username: admin
Password: phabricator
We recommend changing the password as soon as possible.
Congratulations! You have successfully installed Phabricator on Elementary OS Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!