Skip to content

Installation Prerequisites

As the script is built with Laravel 8, before installing Freight Management System, Click here to visit installation guidelines of Laravel Framework.

Server Requirements

  • Web Server (Apache/Nginx)
  • Composer 2.0 (Dependency management tool)
  • MariaDB/Postgres/MySQL Database Server
  • PHP 7.4+
  • Operating System : Linux or Windows
  • Shared, VPS or Dedicated Server

Dependencies

  • Packages.
  $ apt-get install git nodejs libcurl4-gnutls-dev libicu-dev libmcrypt-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libpq-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev -yqq

  • PHP Extensions.

$ sudo apt install php7.4 php7.4-bcmath php7.4-common php7.4-curl php7.4-json php7.4-mbstring php7.4-mysql php7.4-xml php7.4-zip openssl 

FMS Installation & Setup

  • Extract the contents of the zip to your root folder of the web server - /var/www/html. If you are on CPanel create a domain or subdomain and set the Document Root to be yourdomain.com/public .

  • Make sure composer is installed before running Composer install in the root folder of the project.


$ curl -sS https://getcomposer.org/installer | php . 
$ php composer.phar install .

  • Now give write permissions to your web server and these directories storage/, bootstrap/cache, public/images public/tmp.
$ sudo chown -R "$USER":www-data /webdirectory
$ sudo chmod -R 0755 /webdirectory
$ chmod 777 storage -R
$ chmod 775 bootstrap/cache
$ chmod 777 public/images -R
$ chmod 777 public/tmp
$ cp .env.example .env
$ php artisan key:generate

Set Up The Environment

Make sure you have created a database, and you have a username and password to connect to your database. Next on the root of the application look for a file named .env the file will look simmilar to:

APP_ENV=production
APP_KEY=
APP_DEBUG=false
APP_LOG_LEVEL=debug
BROADCAST_DRIVER=log

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=

APP_URL=http://localhost

....
  • Set the APP_URL key to be your site domain,
  • Set your #Database connection details (DB_USERNAME,DB_DATABASE, DB_PASSWORD)
$ php artisan config:cache
$ php artisan migrate
$ php artisan db:seed