-
-
Notifications
You must be signed in to change notification settings - Fork 13
Installation manuel ALT
As lmeve is a great tool and I got some difficult to install on my VM based on different documentation I found, I decided to write my own installation guide 2020.
Here is my configuration on Google Cloud Platform
- GCE n1-standard-1
- Ubuntu 16.04 LTS
- Standard Persistent disk 50GB
Before starting, make sure that your OS is up-to-date
sudo apt-get update
sudo apt-get upgrade
1. (Optional) I always install these tools on all my VM but keep in mind that is not required for lmeve
sudo apt-get -y install nmap traceroute htop tcpdump screen mlocate git
2. (Required) Now lets start to install lmeve and dependencies
sudo apt-get -y install php php-mysql php-pear php-cli php-dev php-mbstring apache2 libapache2-mod-php libyaml-dev python-yaml mysql-servermysql-client unzip
3. (Required) Install yaml package
sudo pecl install yaml
4. Let's configure the YAML module (the file doesn't exist, you need to create it)
sudo vim /etc/php/7.0/mods-available/yaml.ini
5. Then add this one liner & save
extension=yaml.so
6. Finalize the YAML configuration
sudo phpenmod -v 7.0 yaml
7. Lets install lmeve into appropriate directory
cd /var/www/
sudo git clone https://github.com/roxlukas/lmeve
8. Let's create a directory & download the images/icons (currently Invasion 1.0 but verify the latest version on https://developers.eveonline.com/resource/resources)
sudo mkdir lmeve/wwwroot/download
cd lmeve/wwwroot/download
9. Download the icons and create a symlink to the dicrectory
sudo wget "http://content.eveonline.com/data/Invasion_1.0_Icons.zip"
sudo unzip Invasion_1.0_Icons.zip
sudo rm -rf /var/www/lmeve/wwwroot/ccp_icons
sudo ln -s /var/www/lmeve/wwwroot/download/Icons/items /var/www/lmeve/wwwroot/ccp_icons
10. Download the images and create a symlink to the dicrectory
sudo wget "http://content.eveonline.com/data/Invasion_1.0_Types.zip"
sudo unzip Invasion_1.0_Types.zip
sudo rm -rf /var/www/lmeve/wwwroot/ccp_img
sudo ln -s /var/www/lmeve/wwwroot/download/Types /var/www/lmeve/wwwroot/ccp_img
As recommended by other guide, let's create 2 seperate databases for more clarity and easier future maintenance
11. First thing, first; the basic Mysql configuration
sudo mysql_secure_installation utility
12. Download the latest Fuzzwork sql dump
sudo wget "https://www.fuzzwork.co.uk/dump/mysql-latest.tar.bz2"
sudo tar -xjf mysql-latest.tar.bz2
13. Create the LMEVE database and configure an user
sudo mysql -u root -p
CREATE DATABASE lmeve_db;
CREATE USER 'lmeve_user'@'localhost' IDENTIFIED BY '<PASSWORD>';
GRANT ALL PRIVILEGES ON `lmeve_db`.* TO 'lmeve_user'@'localhost';
14. Create the STATIC_DATA database and configure an user
CREATE DATABASE static_db;
GRANT ALL PRIVILEGES ON `static_db`.* TO 'lmeve_user'@'localhost';
15. Configure the schemas on the databases
USE lmeve_db;
source /var/www/lmeve/data/schema.sql;
USE static_db;
source /var/www/lmeve/wwwroot/download/sde-20191128-TRANQUILITY/sde-20191128-TRANQUILITY.sql
exit
16. Follow the steps in this documentation:
17. Let's configure LMEVE
cd /var/www/lmeve/config/
sudo cp config-dist.php config.php
sudo vim config.php
You have a couple of lines to modify:
-
$LM_dbname='lmeve';
the name of LMEVE database configured on 13. aslmeve_db
-
$LM_dbuser='lmeve';
the name of the database user configured on 13. aslmeve_user
-
$LM_dbpass='password';
the password for the database user configured on 13. as<PASSWORD>
-
$LM_EVEDB='eve_tia100_dbo';
the name of STATIC database that configured on 14. asstatic_db
-
$LM_SALT='abcde12345';
change the string for any random entry -
$SSOENABLED=FALSE;
change the value for TRUE if you plan to use EVE ONLINE SSO -
$SSO_REDIRECT_URL='https://lmeve.com/ssologin.php';
change for your own fallback url configured on 16. -
$SSO_CLIENT_ID='sso_client_id';
change for your SSO CLIENT configured on 16. -
$SSO_CLIENT_SECRET='sso_client_secret';
change for your SSO CLIENT SECRET configured on 16. -
$SSO_AUTH_SERVER='sisilogin.testeveonline.com';
change forlogin.eveonline.com
18. Configure Apache2
sudo vim /etc/apache2/sites-enabled/000-default.conf
then change the line DocumentRoot /var/www/html
for this one DocumentRoot /var/www/lmeve/wwwroot/
19. Save & restart apache2
sudo service apache2 restart
20. Connect to lmeve with your browser and use admin
/admin
to login (Don't forget to change your admin password)
21. Go back to your server and delete INSTALL file
sudo rm -rf /var/www/lmeve/INSTALL
**22. Configure a CronJob for API poller
echo "*/15 * * * * /usr/bin/php /var/www/lmeve/bin/poller.php" | crontab
Source & Inspiration: