Mac Install Notes: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 1: Line 1:
/private/etc is used instead of /etc
/private/etc is used instead of /etc
*install mysql
==mysql==
**sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
**sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
**.bashrc add  
**.bashrc add  
***alias mysql=/usr/local/mysql/bin/mysql
***alias mysql=/usr/local/mysql/bin/mysql
***alias mysqladmin=/usr/local/mysql/bin/mysqladmin
***alias mysqladmin=/usr/local/mysql/bin/mysqladmin
*install bzr
==bzr==
 
==php==
*sudo cp /private/etc/php.ini.default /private/etc/php.ini
*sudo cp /private/etc/php.ini.default /private/etc/php.ini
*sudo chmod 644 /private/etc/php.ini
*sudo chmod 644 /private/etc/php.ini
*sudo emacs -nw /private/etc/php.ini
*sudo emacs -nw /private/etc/php.ini
**date.timezone = 'Eastern/US'
**date.timezone = 'Eastern/US'
*PHP
**in /private/etc/apache2/httpd.conf uncomment the line: LoadModule php5_module      libexec/apache2/libphp5.so
**in /private/etc/apache2/httpd.conf uncomment the line: LoadModule php5_module      libexec/apache2/libphp5.so
*PEAR
===PEAR===
**curl  http://pear.php.net/go-pear.phar > ~/Desktop/go-pear.phar
*curl  http://pear.php.net/go-pear.phar > ~/Desktop/go-pear.phar
**sudo php ~/Desktop/go-pear.phar
*sudo php ~/Desktop/go-pear.phar
*MDB2
===MDB2===
**~/pear/bin/pear install MDB2 MDB2_Driver_mysql MDB2_Driver_mysqli
**~/pear/bin/pear install MDB2 MDB2_Driver_mysql MDB2_Driver_mysqli
memcached:
==memcached==
*need xcode command line tool 10.8: https://developer.apple.com/downloads/index.action?name=Xcode   
*need xcode command line tool 10.8: https://developer.apple.com/downloads/index.action?name=Xcode   
*follow http://tugdualgrall.blogspot.com/2011/11/installing-memcached-on-mac-os-x-and.html and http://www.lecloud.net/post/3102678831/install-memcached-php-memcached-extension-under-mac
*follow http://tugdualgrall.blogspot.com/2011/11/installing-memcached-on-mac-os-x-and.html and http://www.lecloud.net/post/3102678831/install-memcached-php-memcached-extension-under-mac
Line 57: Line 58:
sudo ~/pear/bin/pecl install memcached
sudo ~/pear/bin/pecl install memcached
</source>
</source>
*extension=memcached.so" to php.ini
*Add extension=memcached.so" to php.ini
apache:
*set /Library/LaunchDaemons/com.danga.memcached.plist to:
<pre>
[sourcecode language="xml"]
Label com.danga.memcached
ProgramArguments
 
/usr/bin/memcached
-d
-u
root
-p
11211
-m
64
 
RunAtLoad
 
[/sourcecode]
 
</pre>
*sudo launchctl load /Library/LaunchDaemons/com.danga.memcached.plist
 
==apache==
*the equivalent of /var/www is /Library/WebServer/Documents/  
*the equivalent of /var/www is /Library/WebServer/Documents/  
*apachectl start
*apachectl start
iHRIS:
==iHRIS==
*config.values.php -- dsn needs 127.0.0.1 not localhost
*config.values.php -- dsn needs 127.0.0.1 not localhost

Revision as of 09:08, 28 July 2012

/private/etc is used instead of /etc

mysql

    • sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
    • .bashrc add
      • alias mysql=/usr/local/mysql/bin/mysql
      • alias mysqladmin=/usr/local/mysql/bin/mysqladmin

bzr

php

  • sudo cp /private/etc/php.ini.default /private/etc/php.ini
  • sudo chmod 644 /private/etc/php.ini
  • sudo emacs -nw /private/etc/php.ini
    • date.timezone = 'Eastern/US'
    • in /private/etc/apache2/httpd.conf uncomment the line: LoadModule php5_module libexec/apache2/libphp5.so

PEAR

MDB2

    • ~/pear/bin/pear install MDB2 MDB2_Driver_mysql MDB2_Driver_mysqli

memcached

<source lang='bash'> mkdir ~/memcachedbuild cd ~/memcachebuild curl -O http://www.monkey.org/~provos/libevent-1.4.14-stable.tar.gz tar xzvf libevent-1.4.14-stable.tar.gz cd libevent-1.4.14-stable ./configure make make verify sudo make install

cd ~/memcachebuild curl -O http://memcached.googlecode.com/files/memcached-1.4.10.tar.gz tar xzvf memcached-1.4.10.tar.gz cd memcached-1.4.10 ./configure make make test sudo make install


cd ~/memcachebuild

curl -O ftp://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.bz2 curl -O ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2 curl -O ftp://ftp.gnu.org/gnu/automake/automake-1.11.1.tar.bz2 curl -O ftp://ftp.gnu.org/gnu/libtool/libtool-2.4.tar.gz --make and install the above


DOWNLOAD https://launchpad.net/libmemcached/+download to ~/memcachebuild

tar -zxvf libmemcached-1.0.9con.tar.gz cd libmemcached-0.37 ./configure; make sudo make install

sudo ~/pear/bin/pecl install memcached </source>

  • Add extension=memcached.so" to php.ini
  • set /Library/LaunchDaemons/com.danga.memcached.plist to:
[sourcecode language="xml"]
Label com.danga.memcached
ProgramArguments

/usr/bin/memcached
-d
-u
root
-p
11211
-m
64

RunAtLoad

[/sourcecode]

  • sudo launchctl load /Library/LaunchDaemons/com.danga.memcached.plist

apache

  • the equivalent of /var/www is /Library/WebServer/Documents/
  • apachectl start

iHRIS

  • config.values.php -- dsn needs 127.0.0.1 not localhost