Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Install both Apache and Tomcat

    Code Block
    
    sudo apt-get install apache2 tomcat7
    
  • Install PHP
    • Code Block
      sudo apt-get install php5 libapache2-mod-php5 php5-cgi
    • Edit the file /etc/php5/apache2/php.ini, setting On to the option allow_url_include:

      Code Block
      
      allow_url_include = On
      

      This is necessary in order to use the PHP/Java bridge in PHP.

  • Setup the website
    • The website code is available in subversion at on github at https://jembiprojects.jiragithub.com/svn/TSCOMP/WebUI/trunkjembi/ts-browser
    • Copy the Web code to /var/www/, e.g.

      Code Block
      
      sudo cp -R WebUIWeb /var/www/
      
    • Create a directory called export and make sure that the user tomcat7 has read/write access to it, i.e.

      Code Block
      
      sudo chown tomcat7:tomcat7 export
      

      This folder will be used by the API layer to cache csv exports in.

  • The Jembi TS API code is available at at https://jembiprojects.jiragithub.com/svn/TSCOMP/API/trunkjembi/ts-browser
    • Check out the code and compile the API project using Ant. The API It is an Eclipse project.
    • Copy the compiled jar to /usr/share/tomcat7/lib to make it available to the PHP/Java bridge
    • Copy the jars in the directories lib and lib-common of the API source to /usr/share/tomcat7/lib, EXCEPT for the jar servlet-api.jar (it will conflict with the existing one in the directory).
  • Restart both Apache and Tomcat

    Code Block
    
    sudo /etc/init.d/apache2 restart
    sudo /etc/init.d/tomcat7 restart
    

...