{"action":"created","issue":{"url":"https://api.github.com/repos/cvondrick/vatic/issues/11","labels_url":"https://api.github.com/repos/cvondrick/vatic/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/cvondrick/vatic/issues/11/comments","events_url":"https://api.github.com/repos/cvondrick/vatic/issues/11/events","html_url":"https://github.com/cvondrick/vatic/issues/11","id":41904481,"number":11,"title":"Instructions for OSX","user":{"login":"varun-nagaraja","id":692318,"avatar_url":"https://avatars.githubusercontent.com/u/692318?v=3","gravatar_id":"","url":"https://api.github.com/users/varun-nagaraja","html_url":"https://github.com/varun-nagaraja","followers_url":"https://api.github.com/users/varun-nagaraja/followers","following_url":"https://api.github.com/users/varun-nagaraja/following{/other_user}","gists_url":"https://api.github.com/users/varun-nagaraja/gists{/gist_id}","starred_url":"https://api.github.com/users/varun-nagaraja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varun-nagaraja/subscriptions","organizations_url":"https://api.github.com/users/varun-nagaraja/orgs","repos_url":"https://api.github.com/users/varun-nagaraja/repos","events_url":"https://api.github.com/users/varun-nagaraja/events{/privacy}","received_events_url":"https://api.github.com/users/varun-nagaraja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-09-04T07:40:36Z","updated_at":"2015-03-17T19:14:00Z","closed_at":null,"body":"## Installation on OSX\r\n\r\nThe following procedure shows how to install Vatic on OSX with Anaconda Python and Homebrew. The rest of the instructions for using turkic remains the same as mentioned in README.\r\n\r\nAuthor: Varun Nagaraja (varun@umiacs.umd.edu)\r\n\r\n### Dependencies \r\n\r\n* OpenSSL installed via Homebrew will not be linked as OSX already provides one. Hence you need to force link it.\r\n```\r\n$ brew install openssl\r\n$ brew link —force openssl\r\n```\r\n\r\n* MySQL\r\n\r\n```\r\n$ brew install mysql\r\n$ mysql.server start\r\n```\r\n\r\n* Apache\r\n\r\n```\r\n$ brew install httpd24\r\n$ brew tap home-brew/apache\r\n$ brew update\r\n```\r\n\r\nBefore installing mod_wsgi execute the command to create symlink as mentioned on\r\nhttps://github.com/Homebrew/homebrew-apache\r\n\r\n```\r\n$ brew install mod_wsgi\r\n```\r\n\r\n* Other python packages\r\n\r\n```\r\n$ pip install sqlalchemy parsedatetime\r\n```\r\n\r\n### Download Vatic\r\n\r\n```\r\n$ wget http://mit.edu/vondrick/vatic/vatic-install.sh\r\n$ chmod +x vatic-install.sh\r\n$ ./vatic-install.sh\r\n$ cd vatic\r\n```\r\n\r\n### Setup Apache \r\nEdit `/etc/apache2/httpd.conf`\r\n* to include\r\n  `LoadModule wsgi_module /usr/local/Cellar/mod_wsgi/3.4/libexec/mod_wsgi.so`\r\n* uncomment `Include /private/etc/apache2/extra/httpd-vhosts.conf`\r\n\r\nOn Yosemite, you will also have to uncomment\r\n`LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so`\r\n\r\nEdit `etc/apache2/extra/httpd-vhosts.conf` instead of `sites-enabled/000-default` as done on Linux.\r\n\r\nRemember to set the right path for anaconda python.\r\n\r\n```\r\nWSGIDaemonProcess www-data python-eggs=/tmp/.python-eggs\r\nWSGIProcessGroup www-data\r\n\r\nWSGIPythonHome /Users/<username>/anaconda\r\n\r\n<VirtualHost *:80>\r\n    ServerName localhost\r\n    DocumentRoot /Library/WebServer/vatic/public\r\n    WSGIScriptAlias /server /Library/WebServer/vatic/server.py\r\n    CustomLog /var/log/apache2/access.log combined\r\n    <Directory \"/Library/WebServer/vatic\">\r\n        Options Indexes FollowSymLinks MultiViews Includes\r\n        AllowOverride None\r\n        #For Yosemite\r\n        Require all granted\r\n        #For Mavericks, uncomment the below two lines and comment the above Require line\r\n        #Order allow,deny\r\n        #Allow from all\r\n    </Directory>\r\n</VirtualHost>\r\n```\r\n\r\nRestart the apache server\r\n```\r\n$ sudo apachectl graceful\r\n```\r\n\r\n### Setup MySQL\r\n```\r\n$ mysql -u root\r\nmysql> create database vatic;\r\n```\r\n\r\n### Setup Vatic\r\nCopy vatic folder to `/Library/WebServer/vatic` so that you do not have to provide write access to folders inside the home directory.\r\n\r\n\r\n### Videos\r\n* The video frames should also be in a public folder like `/Library/WebServer/vatic`\r\n\r\n* On OSX, there might be some hidden folders with the name `.DS_STORE` created after extracting and moving the frames folder. Turkic will throw errors in `cli.py`. For now, you can just delete that `.DS_STORE` folder.\r\n\r\n### Permissions\r\n* The home directory should have both read and execute permissions so that the anaconda python directory is accessible by the apache server.\r\n* Ensure that private and sensitive folders inside the home directory have no read permission for others except you.\r\n\r\nP.S: If things don’t work check `/var/log/apache2/error.log`. It tells you if there is any module that is not accessible or missing."},"comment":{"url":"https://api.github.com/repos/cvondrick/vatic/issues/comments/82544161","html_url":"https://github.com/cvondrick/vatic/issues/11#issuecomment-82544161","issue_url":"https://api.github.com/repos/cvondrick/vatic/issues/11","id":82544161,"user":{"login":"varun-nagaraja","id":692318,"avatar_url":"https://avatars.githubusercontent.com/u/692318?v=3","gravatar_id":"","url":"https://api.github.com/users/varun-nagaraja","html_url":"https://github.com/varun-nagaraja","followers_url":"https://api.github.com/users/varun-nagaraja/followers","following_url":"https://api.github.com/users/varun-nagaraja/following{/other_user}","gists_url":"https://api.github.com/users/varun-nagaraja/gists{/gist_id}","starred_url":"https://api.github.com/users/varun-nagaraja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varun-nagaraja/subscriptions","organizations_url":"https://api.github.com/users/varun-nagaraja/orgs","repos_url":"https://api.github.com/users/varun-nagaraja/repos","events_url":"https://api.github.com/users/varun-nagaraja/events{/privacy}","received_events_url":"https://api.github.com/users/varun-nagaraja/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T19:14:00Z","updated_at":"2015-03-17T19:14:00Z","body":"Thanks for the fixes Chris."}}