Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Getting Started

Glenn Carremans edited this page Jun 28, 2017 · 2 revisions

Contents

Install php

CentOS

MySQL/MariaDB

yum -y install php php-mysql php-fpm

PostgreSQL

yum -y install php php-pgsql php-fpm

Ubuntu

MySQL/MariaDB

apt-get -y install php php-mysql php-fpm

PostgreSQL

apt-get -y install php php-pgsql php-fpm

Php.ini

Change default timezone to your local time zone in this format:

date.timezone=Europe/Brussels

Restart your webserver.

Nginx

Setup Nginx: Nginx

Use Nginx or Apache, not both

Apache

Make sure you have mod_rewrite enabled, how to check if enabled

Make sure you AllowOverride in your apache config file, how to check

Use Nginx or Apache, not both

Get Project Code

Install via ZIP

Download the Source Zip and Extract the Files to your Web Host

Install via Git

Navigate to your Web Host and git clone https://github.com/Glennmen/PMSF.git

Setup Config.php

Creat a config.php file in the config folder, look at example.config.php for all the settings.

Go to the config file wiki page for more info: Config file

Build Static Files

In order to run from a git clone, you must compile the front-end assets with node. Make sure you have node installed for your platform:

Once node/npm is installed, open a command window and validation your install:

node --version
npm --version

The output should look something like:

$ node --version
v4.7.0
$ npm --version
3.8.9

Once node/npm is installed, you can install the node dependencies and build the front-end assets:

npm install

# The assets should automatically build (you'd see something about "grunt build")
# If that doesn't happen, you can directly run the build process:
npm run build

Updating PMSF

Because PMSF is being actively updated it is often needed to update your frontend.

You can update with only 2 commands:

git pull
npm run build

More Info

CentOS

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7

Ubuntu

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04