Phabricator is a powerful open-source project management software that enables developers to collaborate and manage projects. In this tutorial, we will show you how to install Phabricator on the latest version of NixOS.
Before installing Phabricator on NixOS, make sure your system meets the following requirements:
sudo nix-channel --update && sudo nixos-rebuild switch
sudo nix-env -i apache
sudo nix-env -i php php-fpm php-mysql php-curl php-pecl-xdebug php-gd php-intl php-mbstring php-openssl php-zip
sudo nix-env -i mariadb
sudo mysql -u root -p
MariaDB [(none)]> create database phabricator;
MariaDB [(none)]> create user 'phabricator'@'localhost' identified by 'your_password';
MariaDB [(none)]> grant all privileges on phabricator.* to 'phabricator'@'localhost';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit;
sudo nix-env -i git
cd ~
git clone https://github.com/phacility/phabricator.git
cd phabricator
./bin/config set mysql.user phabricator
./bin/config set mysql.pass your_password
./bin/config set phabricator.base-uri "http://your_domain"
sudo nix-env -i arcanist libphutil
./bin/storage upgrade --force
sudo editor /etc/apache2/sites-enabled/your_domain.conf
<VirtualHost *:80>
ServerName your_domain
Redirect permanent / https://your_domain/
</VirtualHost>
<VirtualHost *:443>
ServerName your_domain
DocumentRoot /path/to/phabricator/webroot
ErrorLog /var/log/apache2/your_domain_error.log
CustomLog /var/log/apache2/your_domain_access.log combined
SSLEngine On
SSLCertificateFile /path/to/ssl/cert.pem
SSLCertificateKeyFile /path/to/ssl/key.pem
SSLCertificateChainFile /path/to/ssl/chain.pem
<Directory "/path/to/phabricator/webroot">
AllowOverride All
Require all granted
</Directory>
<Location "/res">
Require all granted
</Location>
<Directory "/path/to/libphutil/resources/">
Require all granted
</Directory>
<LocationMatch "/(support|legal)">
Require all granted
</LocationMatch>
</VirtualHost>
sudo systemctl restart apache2
https://your_domain/
Congratulations, you have successfully installed Phabricator on NixOS!
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!