Skip to content

Install Guide: OS X

Niel Archer edited this page May 14, 2014 · 1 revision

This is still work in progress - NEEDS FORMATTING ETC..

Prerequisite - Install XCODE , sequelpro, OSX Server APP, iterm2 app, git


Section A - Install Hombrew

  • In terminal issue the following commands
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Section B - Install Python

  • In terminal Issue the following commands
brew install python
brew install python3
export PATH=/usr/local/share/python:$PATH

Section C - Install MYSQL

  • In terminal issue the following commands
brew install mysql
pip install MySQL-python
pip install cymysql
pip3 install cymysql
  • In terminal issue the following command
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
mysqladmin -u root password NEWPASSWORD

Section D - Find PHP.INFO used by OS X APACHE
Create a PHP file in the root folder of your site contianing the following:

<?
php phpinfo();
?>

Section E - Modify the php.ini file

register_globals = Off <br>
max_execution_time = 120 <br>
memory_limit = 1024M <br>
date.timezone = Europe/London <br>

Section F - post Processing Tools installation

Unrar:

  • Download CLI tool from rarLab's site & extract it
  • In terminal issue the following commands
cd Downloads/rar
sudo install -c -o $USER unrar /bin

ffmpeg:

  • install macports
  • In terminal issue the following commands (restart terminal app after installing macports)
sudo port install ffmpeg +gpl +postproc +lame +theora +libogg +vorbis +xvid +x264 +a52 +faac +faad +dts nonfree

mediainfo


Section G - Install Pear

  • In terminal issue the following commands
curl -O http://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar
  • Type 1 and press enter
  • Enter /usr/local/pear at the prompt and press enter
  • Type 4 and press enter
  • Type /usr/local/bin at the prompt and press enter
  • Press enter
  • Type Y and press enter
  • Press enter
  • Restart apache from OSX Server Admin App

Section H - Downloading nZEDb

  • Create the website using Apple Server app ( I called it nzedb)
  • In the website properties (pencil icon in Server App) select advanced and enable the allow overrides option
  • Ensure that the setting Enable PHP web applications is ticked in the Web Server settings section of Server App
  • In terminal issue the following commands
cd /Library/Server/Web/Data/Sites/nzedb
sudo chmod 777 /Library/Server/Web/Data/Sites/nzedb
git clone https://github.com/nZEDb/nZEDb.git
sudo chmod 777 nZEDb
cd nZEDb
sudo chmod 777 /Library/Server/Web/Data/Sites/nzedb/nZEDb/www/lib/smarty/templates_c
sudo chmod -R 777 /Library/Server/Web/Data/Sites/nzedb/nZEDb/www/covers
sudo chmod 777 /Library/Server/Web/Data/Sites/nzedb/nZEDb/www
sudo chmod 777 /Library/Server/Web/Data/Sites/nzedb/nZEDb/www/install
sudo chmod -R 777 /Library/Server/Web/Data/Sites/nzedb/nZEDb/nzbfiles
  • OSX Server admin set root directory of website to /Library/Server/Web/Data/Sites/nzedb/nZEDb/www
  • Browse to site and run Installation wizard

Section I - Tmux

  • In Terminal issue the following commands
brew install tmux
Clone this wiki locally