This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
1. Installation
Tim Davis edited this page Sep 25, 2020
·
6 revisions
I personally have deployed this to remote hosted (DigitalOcean - $5/month) Ubuntu 16 and self hosted Ubuntu 16, Windows, and MacOS. The following guide will explain how to install on Ubuntu 16 (specifically using DigitalOcean, although it should apply to any Ubuntu 16 server).
- Install LAMP stack (Apache2, MySQL, PHP 7.4) DigitalOcean Ubuntu 20 LAMP stack
- If running with low available memory, add Swap to the server - this improves performance DigitalOcean Adding SWAP
- Install PHPMyAdmin (OPTIONAL), it will assist with database maintenance DigitalOcean Secure PHPMyAdmin Install
- Install zip, bz2 and xml
sudo apt-get install php7.4-zip
sudo apt-get install php7.4-bz2
sudo apt-get install php7.4-xml
- Clone Git Repository to
/var/www/html
this will create a folder called 'buysys'
cd /var/www/html
git clone https://github.com/binarygod/BuySYS.git
- Edit
/etc/apache2/sites-enabled/000-default.conf
and add new VirtualHost using your own information. The important parts are the DocumentRoot and Directory configuration. (NOTE: Apache ^2.4 usesRequire all granted
instead ofOrder Allow,Deny
&Allow from All
)
<VirtualHost *:80>
ServerName sub.yourdomain.com
ServerAlias sub.yourdomain.com
DocumentRoot /var/www/html/buysys/web
<Directory /var/www/html/buysys/web>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>
- Navigate to
/var/www/html/buysys
and download/install Composer with the commands on the site. - Using PHPMyAdmin create two databases, one is for Amsys data, the other is for Eve SDE data. Create a user and GRANT full access on both databases.
- Create SSO Information
- Access Eve Developers and login using SSO.
- Click create new application
- Provide Name and Description
- Select 'Authentication'
- Callback URL is 'http://yourdomain.com/sso/callback'
- Save
- Click on created application and record the Client Id and Secret Key.
- Install dependencies by running
php composer.phar install
, if you a 'Killed' message see Troubleshooting below- Provide configuration details when prompted (These can be edit later via buysys/app/config/parameters.yml)
- Fix permissions on the application, from the
/var/www/html/buysys
directory, run the following (If ACL isn't installed you will need tosudo apt-get install acl
, as of Ubuntu 12 ACL is already enabled on the filesystem)
HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1)
sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var
sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var
- Navigate to
/var/www/html/buysys/app/config
and check the values of your Parameters.yml for accuracy - Navigate to
/var/www/html/buysys
, runphp bin/console doctrine:schema:update --force
to create database tables - Run
php bin/console buysys:settings:populate
to create default settings - Run
php bin/console buysys:sde:update
to download latest SDE from Fuzzworks - Run
php bin/console buysys:cache:update
to pull all Ore/Minerals/Ice/Gas/PI prices and create the cache - Restart Apache
sudo systemctl restart apache2
- Navigate to the web address (the the virtual host points to) and you should see the login page
After installation, the next step is to create a System Admin User