This page will guide each step of eLog library installation for the eLog server co-developer.
* Mac OS X Yosemite 10.10.2
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 (http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/). 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/.
For server component developers, they should set up xdebug for remote debugging. Yosemite comes with xdebug.so (See http://akrabat.com/php/setting-up-php-mysql-on-os-x-yosemite/). For remote debugging, (Refer http://www.elifelog.org/book/elog2-server-configuration) see the below instruction.
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. http://127.0.0.1/lab/server/). 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.
- ffmpeg (For OS X, download the binary at here: http://ffmpegmac.net and sudo copy them under /usr/local/bin)
- Install convert and montage from (http://www.imagemagick.org/script/binary-releases.php#macosx) and copy all under /usr/local/)
- gpsbabel (GPS data manipulator from http://www.gpsbabel.org/download.html). For OS X, sudo copy /Applications/GPSBabelFE.app/Contents/MacOS/gpsbabel to /usr/local/bin
- exiftool (http://www.sno.phy.queensu.ca/~phil/exiftool/)
- For eLog CEP developers, install the binary and give a permisson to run for Apache to run (user name: _www for OS X).
Server UI will fill up fundamental tables. But you also need to fill in time_zone data of mysql database (See http://dev.mysql.com/doc/refman/5.5/en/mysql-tzinfo-to-sql.html). 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,
- mysql_tzinfo_to_sql /usr/share/zoneinfo > zoneinfo.sql
- Modify zoneinfo.sql to replace 'INSERT INTO' to 'INSERT IGNORE INTO'
- Then run 'mysql -u root -p mysql < zoneinfo.sql'