Installing on MacOS X, with MacPorts - steps that worked for me

ajmas

Joined: 2005-08-27
Posts: 28
Posted: Wed, 2012-11-21 05:02

This isn't really a question, but given the digging I did to get my gallery3 instance online, using MacPorts I thought I would share what I learnt, given I didn't get it working first shot (hopefully this is complete, since I may have forgotten some stuff):

Ports to install:
- apache2
- mysql5
- mysql5-server
- php5
- php5-mysql
- php5-mbstrings
- imagemagick

Next, there was some configuring of php.ini to do.
- Create a symbolic link between /opt/local/etc/php5/php.ini-production and /opt/local/etc/php5/php.ini
- Define a value for the data.timezone (pick one from the list here: http://www.php.net/manual/en/timezones.php ). For example America/Montreal
- Specify short_open_tag = On
- Update mysqli.default_socket, I set mine as: mysqli.default_socket = "/opt/local/var/run/mysql5/mysqld.sock". This avoids the error "No such file or directory (trying to connect via unix:///tmp/mysql.sock)'". The I used was based on the "--socket=" value for the running mysqld process.
- There are some other settings that you can add to php.ini file, suggested in gallery3/php.ini

During my troubleshooting I had to create gallery3/local.php, which I removed when everything started working:

Quote:
<? defined("SYSPATH") or die("No direct script access");
error_reporting(E_ALL);
ini_set('display_errors', true);
date_default_timezone_get();

Note that when you see error pages you should display the source, since often the top-level error is not the real error. The stack trace usually is closer to the cause.

Should I add this to the wiki?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2012-11-21 17:38
Quote:
Should I add this to the wiki?

Sure! I also moved this to the Gallery 3 on Unsupported Servers section of the forums. Users might see it better here anyway.
I considered making it a sticky topic but thought that a wiki page would be better similar to the Windows one.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ajmas

Joined: 2005-08-27
Posts: 28
Posted: Sun, 2012-11-25 16:46

Thanks.

I started adding the steps here: http://codex.gallery2.org/Gallery3:Installation_on_MacOS_X though I seem to be having connectivity issues with the wiki, so I haven't been able to finish the work.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-11-25 18:02

Cool!
Thanks for the contribution.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 204
Posted: Sat, 2012-12-01 02:29

WEWT! I'll try the install doc on the mac I have in VMware shortly.

I added a link to it on my Windows install at the bottom: http://codex.gallery2.org/Gallery3:Installation_on_Windows_Server_2008_and_IIS7

=======
Windows Install Guide