Skip to content
sgoodm edited this page Jan 7, 2016 · 2 revisions

#Setup#

##Copying files to server##

  • Download itpir/carto-template repository ZIP from GitHub and extract files
  • Run build script and provide path where you want it to put the files (ie: where you will be working on the page locally, or the directory where the page should exist on the server
    bash /path/to/repo/carto-template-master/build.sh /path/to/desired/directory
    
  • Move files to server (scp, ftp client, etc.) if not already working on server
  • Your page should now be stood up (remember to change toolbox password in process.php)

##Dependencies##

Libraries

  • Most libraries used by the CCB Mapping Portal (and editor) are stored locally in the “libs” directory
  • Some libraries (CartoDB and Google Maps) use a CDN (content delivery network) to download the library when the page loads

PHP

  • PHP must be installed on your server
  • The “gd” and "Curl" PHP modules must be installed on your server (details on how to install this below)

##Installing PHP packages on to server##

  • access terminal on server directly, via ssh or contact the server administrator to help you get access or do this for you
    enter: sudo apt-get install php5-gd
    enter: sudo apt-get install php5-curl
  • restart webserver (for apache, enter: sudo service apache2 restart)
Clone this wiki locally