Howto enable gd for PHP 5.3.28

Tim Johnson tim at akwebsoft.com
Sun Feb 9 16:22:04 PST 2014


* Ryan Schmidt <ryandesign at macports.org> [140209 13:05]:
> On Feb 9, 2014, at 15:57, Tim Johnson <tim at akwebsoft.com> wrote:
> > 
> > I'm running OSX 10.7
> > Latest PHP is ver 5.3.28
> > I do not see that gd is enabled for it.
> > 
> > What is the method to do so?
> > thanks
> 
> It depends on which php port you have installed. 
> 
> If you installed the php53 port, then install the php53-gd port. 
> 
> If you installed the php5 port, then install the php5-gd port, and consider switching to the newer php53* ports. 
  Thank you. 
  FYI linux experienced mac noob...
  FYI python experienced php noob...
  By running 
  which -a php 
  ## I see three php binaries
  /opt/local/bin/php
  /usr/bin/php
  /usr/local/bin/php
  ## And as it turns out the last is the latest, so I do
  /usr/local/bin/php --version
  ## I get
  PHP 5.4.24 (cli) (built: Jan 10 2014 18:15:38)
  Copyright (c) 1997-2013 The PHP Group
  Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
  ## I then install gd for that version
  ## 
  Looks like I have gd enabled for that version now. So, by
  symlinking or changing my $PATH I will have as default the latest
  version.

  I am still showing php 5.3.26 when I point my browser to a
  phpinfo()

  I know this next question is on the boundaries of purview for this
  ML, and will research it further, but if you can tell me how to
  enable php 5.4.24 for apache, I would appreciate it.

  Cheers
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com


More information about the macports-users mailing list