Installation instructions

pokemonkiel edited this page Jun 20, 2017 · 30 revisions

Requirements

  • PHP 5.4+
  • Apache 2.4+
  • Apache modules (see below)
  • Existing RocketMap (previously PokemonGo-Map) MySQL database

Installing Apache2

For Nginx see: https://github.com/brusselopole/Worldopole/issues/179#issuecomment-292806274

  • sudo apt-get update && sudo apt-get upgrade
  • sudo apt-get install apache2 apache2-doc apache2-utils
  • sudo a2dismod mpm_event && sudo a2enmod mpm_prefork
  • Note: You can use Apache Event MPM with php-fpm as well
  • sudo a2enmod rewrite
  • sudo a2enmod deflate
  • sudo a2enmod filter
  • sudo a2enmod headers
  • sudo a2enmod proxy
  • sudo a2enmod proxy_http
  • sudo service apache2 restart
  • sudo nano /etc/apache2/sites-enabled/mysite.conf
  • Remove everything and paste this and configure it for your environment: http://pastebin.com/raw/4gCE1nHw ! This will make your file work with the httaccess we provide under http and https, also if you are running MAP on the same server will move the map under yourdomain.xyz/go/. Also, this config will work with https://letsencrypt.org/!
  • LetsEncrypt.org guide: https://certbot.eff.org/#ubuntutrusty-apache

Install

  • Clone the repo on your webdirectory or directly download it and upload it via FTP/sFTP
  • Apache user needs read/write access for core/json/ & install/

Automatic interactive install

  • If on a linux machine simply run sudo bash install.sh and enter all the config parameters

Manual install

  • Copy config.example.php to config.php and add your database credentials
  • Copy htaccess to .htaccess
  • In case you are under Ubuntu 14 or 16 with apache2 add this to "/etc/apache2/sites-available/yoursite"
  • http://pastebin.com/y1GSNvsc otherways SEO Friendly URLS might not work.
  • Copy core/json/variables.examples.json to core/json/variables.json to change Your site name, Description, City, GMaps API Key, Time zone and few other settings.
  • Go to the URL of your directory

Activate the Pokédex, Dashboard and Nests page

see: https://github.com/brusselopole/Worldopole/wiki/Add-Dashboard-and-Nests-page-to-your-site

In case of problem

Check core/json/ & install/ folders permissions. Apache user must be able to read and write files in it.

Git tip

Run git update-index --assume-unchanged core/json/pokedex.rarity.json to disable tracking of rarity file because it's updated dynamically via cron.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.