[Sahana_proj] FW: [sahana-maindev] Installing Sahana on Mac OS X

de Lanerolle, Trishan R. Trishan.deLanerolle at trincoll.edu
Mon Sep 25 16:21:20 EDT 2006


Feedback on Antonio's Sahana Installation guide for Mac OSX from the Sahana main dev list.
Trishan


Trishan de Lanerolle'04
Computer Science/Engineering
Technology Coordinator
Systems and Networking
LITC B35
Trinity College
(860) 297 5313



-----Original Message-----
From: sahana-maindev-bounces at lists.sourceforge.net on behalf of Chamindra de Silva
Sent: Mon 9/25/2006 1:08 AM
To: Sahana developers' list
Subject: Re: [sahana-maindev] Installing Sahana on Mac OS X
 
Lets get this documented on the Sahana WIKI to keeps things consistent.
Also I would like as a policy for everyone that contributes a page to
the WIKI to have a reference to the authors and subsequent editors at
the bottom. 

Ravindra can you work with Antonio and Trishan to get this on the WIKI
and I will update the web site.

On Thu, 2006-09-21 at 23:00 -0400, de Lanerolle, Trishan R. wrote:
> Installing Sahana on Mac OS X by Antonio Alcorn 
> Antonio Alcorn alcorn at gmail.com
> 
>    1. Download the "source" package for the desired release @ http://www.sahana.lk/node/11
> 
>    2. Unpack the tarball. You should get a folder called sahana. Move this folder into the "Sites" directory in your home folder. (See note below)
> 
>    3. In Terminal, set the permissions for the conf/ and www/tmp/ directories under sahana to be writable by the webserver. In Mac OS X, the webserver runs as 'nobody', so we'll set them to world-writable. For example:
> 
>       powerbook:~ antonio$ chmod 777 Sites/sahana/conf/
>       powerbook:~ antonio$ chmod 777 Sites/sahana/www/tmp/
> 
>    4. If you have Mac OS X 10.4 (Tiger) or later, it shipped with php4, but the installation is slightly quirky. Previous versions of the OS didn't ship with PHP at all. In either case you'll want to go to Marc Liyanage's site at http://www.entropy.ch/software/macosx/php/ and download and install the "PHP 5 on Mac OS X 10.4, PPC and Intel" package.
> 
>       If you want to use a local mysql database, you'll need to install that as well. Go to http://dev.mysql.com/downloads/mysql/4.1.html and scroll down to Mac OS X downloads. Download the "Standard" disk image for your platform. Run the installer, and while you're at it double-click the handy prefPane supplied on the disk image to install it. The initial default mysql user is called root, with a blank password. mysqladmin will be located at /usr/local/mysql/bin/mysqladmin, so, for example, to create your database for sahana the command might look like:
> 
>       /usr/local/mysql/bin/mysqladmin -u root create sahana_db
> 
>       You might also want to install a copy of phpMyAdmin: http://www.phpmyadmin.net/.
> 
>    5. Sahana makes extensive use of PHP's optional "short tags" feature (the or syntax). Short tags are disabled in the default installation of php5. To fix this, edit /usr/local/php5/lib/php.ini and look for this line:
> 
>       short_open_tag = Off
> 
>       ...and change it to:
> 
>       short_open_tag = On
> 
>       then save the changes.
> 
>    6. Go to System Preferences > Sharing > Services and turn on Personal Web Sharing. If you already had it on, turn it off and then on again. This restarts the apache process and forces it to reload httpd.conf and php.ini.
> 
>    7. Point your browser to http://localhost/~yourusername/sahana/www/ and go through the web installer. You should be ready to go! Notes: By default, the apache installation included with Mac OS X maps http://localhost/~yourusername/ to /Users/yourusername/Sites/, and http://localhost/ to /Library/WebServer/Documents/. If you want to install sahana with a "nice" namespace, you can edit /etc/httpd/httpd.conf and find the following line:
> 
>       DocumentRoot "/Library/WebServer/Documents/"
> 
>       You could change it to something like
> 
>       DocumentRoot "/Users/yourusername/Sites/sahana/www/"
> 
>       And restart apache. Then, if you put the sahana folder in your Sites folder, browsing to http://localhost/ would bring you to your Sahana installation. 
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sahana-maindev mailing list
> Sahana-maindev at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sahana-maindev
-- 
chamindra
http://www.linux.lk/~chamindra


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sahana-maindev mailing list
Sahana-maindev at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sahana-maindev




More information about the Sahana_proj mailing list