Configure Phabricator with Laravel Forge

On my latest post I wrote about Phabricator and showed you how to install it on a Laravel Forge provided server.

It turns out that after following all these instructions there was still a few things to do in order to fix the “Setup Issues”.

Configure MySQL

A few setup issues are related to the MySQL. Here’s what you should do to fix most of them.

On your server, edit the file /etc/mysql/mysql.conf.d/mysqld.cnf you will need the sudo password to do so.

sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf

In this file, look for the max_allowed_packet parameter and change its value from 16M to 32M.

At the end of the file, add these 3 new parameters :

sql_mode=STRICT_ALL_TABLES
innodb_buffer_pool_size=800M
local_infile=0

Now restart MySQL from Forge or from your server (/etc/init.d/mysql restart).

Configure PHP

From the Laravel Forge interface we can do a couple changes easily.

Select your server in Laravel Forge and go to the PHP section. Update the Max Upload Size to 32.

In the same page, below, Enable OP Cache for production.

Laravel Forge should reboot PHP but if it doesn’t, do it yourself.

Other configurations

SSH into your server and go to your phabricator directory (cd ~/phabricator.simondepelchin.be/phabricator/).

Run the following command to set the base URI for Phabricator.

./bin/config set phabricator.base-uri 'https://phabricator.simondepelchin.be/'

This should leave you with some setup issues that are less important.

I’ll update this post if I happen to fix them for my needs. If you have a fix, feel free to share it in the comments and I’ll add them to the list.

Leave a Reply

Your email address will not be published. Required fields are marked *