In this article, we will explain how to install Paperwork on an Ubuntu 16.04 VPS with MariaDB, PHP-FPM and Nginx. Paperwork is an open-source, self-hosted alternative to services like Evernote, Microsoft OneNote or Google Keep and it is built on top of Laravel 4.2. This guide should work on other Linux VPS systems as well but was tested and written for an Ubuntu 16.04 VPS.
Table of Contents
1. Login to your VPS via SSH
ssh user@vps_IP
2. Update the system and install necessary packages
The following commands will set the PHP memory limit to 512MB, change the values of upload_max_filesize and post_max_size to 200M and set the timezone to UTC.
[user]$ sudo sed -i "s/memory_limit = .*/memory_limit = 512M/" /etc/php/7.0/fpm/php.ini
[user]$ sudo sed -i "s/;date.timezone.*/date.timezone = UTC/" /etc/php/7.0/fpm/php.ini
[user]$ sudo sed -i "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=1/" /etc/php/7.0/fpm/php.ini
[user]$ sudo sed -i "s/upload_max_filesize = .*/upload_max_filesize = 200M/" /etc/php/7.0/fpm/php.ini
[user]$ sudo sed -i "s/post_max_size = .*/post_max_size = 200M/" /etc/php/7.0/fpm/php.ini
Composer is a dependency manager for PHP with which you can install packages. Composer will pull in all the required libraries and dependencies you need for your project.
[user]$ sudo openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
If you don’t want to get warnings associated with self-signed SSL Certificates, you can purchase a trusted SSL certificate.
[user]$ sudo nginx -t
[user]$ sudo service nginx restart
Open http://myPaperwork.com/ in your favorite web browser and you should see the Paperwork install screen. On this page you’ll need to enter the database details you created earlier, and create an admin user.
That’s it. You have successfully installed Paperwork on your Ubuntu 16.04 VPS.
Of course you don’t have to do any of this if you use one of our VPS Hosting services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post, on how to Install Paperwork on Ubuntu, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.