Step-by-step eLog server & GUI installation for co-developers

This page will guide each step of eLog library installation for the eLog server co-developer.

Testing environments

* Mac OS X Yosemite 10.10.2

Required software

Apache, PHP and MySQL

Yosemite comes with pre-installed Apache/2.4.9 and PHP/5.5.14 (on 1 Feb 2015). We need to slighly configure it. You may follow the instruction here ( For MySQL, we test with mysql-5.7.5-m15 and proceeded the same instruction.

Copy eLog library

Copy the eLog library under Apache web root directory. For OS X, the default html root is /Library/WebServer/Docments. If you have created a user Sites, then it should be /Users/username/Sites/.


Developer configuration

For server component developers, they should set up xdebug for remote debugging. Yosemite comes with (See For remote debugging, (Refer see the below instruction.

Using Eclipse, RSE and XDebug remote through SSH, the remote PHP debugging is configured based on the instruction at and might be also useful. From the client side, put alias dssh='ssh -R 9000:localhost:9000 useid@elogserverhostaddressinto your .bash_login for easy access. This allows complete server-side debugging editing and debugging remote files online. From the client side, to make it easy to debug from the web interface, install the xdebug browser extension (Read and set the IDE key same as the server. In our case, we use Safari and thus installed Xdebug Toggler ( To enable this, the server side xdebug.ini (located at/etc/php5/conf.d/xdebug.ini for Ubuntu). See the below example.


  • For the developer (Mac):
    1. Download Eclipse for PHP Developers from
      • Set Preferences: Goto PHP->Debug. Set XDebug as PHP Debugger, Change configure of XDebug for Accept remote session to "any"
      • Set Network Connections for Active Provider to "Direct"
    2. Install Xdebug Toggler for Safari from  Set Preferences for Xdebug Toggler preference for IDE Key to like the below xdebug.idekey setting. For other web browsers, see
  • For the server (Ubuntu):
    1. Install most recent Xdebug from the source ( Run to install. Restart Apache (sudo /etc/init.d/apache2 restart). Set /etc/php5/conf.d/xdebug.ini like below.
Above configuration disable remote_autostart and it only invokes the remote debugger when the proper IDEKey is specified in the HTTP request. The remote debugger is only allowed for the local connection ( Thus the SSH enabled port fowarding is necessary. This limites the remote debug through SSH connections.
Before finishing, you may want to increase the PHP memory limit to handle large size files (ex. RAW camera images):
memory_limit = 512M
max_execution_time = 0
The Apache server should be restarted (Ex. sudo apachectl restart)
Server setup

Now let's configure the eLog server. For the server configuration, we provide GUI which you can access from the browser by pointing the server file location (ex. You can simply follow the instruction there and the server will set it up or else you may directly modify localconfig.php under server/management directory. When manually modiying localconfig.php, be careful in keeping the JSON format. You may try JSON syntax checker or use Sublime like text tool supporting JSON syntax format.

eLog server utilizes external libraries. Let us list up current software libraries used by our media analysis engine.

  1. ffmpeg (For OS X, download the binary at here: and sudo copy them under /usr/local/bin)
  2. Install convert and montage from ( and copy all under /usr/local/)
  3. gpsbabel (GPS data manipulator from For OS X, sudo copy /Applications/ to /usr/local/bin
  4. exiftool (
  5. For eLog CEP developers, install the binary and give a permisson to run for Apache to run (user name: _www for OS X).

MySQL setup

Server UI will fill up fundamental tables. But you also need to fill in time_zone data of mysql database (See For OS X, some zone information is too long to fit into the time zone tables. So you have to slightly modify the output of mysql_tzinfo_to_sql. Follow the procedure, 

  1. mysql_tzinfo_to_sql /usr/share/zoneinfo > zoneinfo.sql
  2. Modify zoneinfo.sql to replace 'INSERT INTO' to 'INSERT IGNORE INTO'
  3. Then run 'mysql -u root -p mysql < zoneinfo.sql'