osx - How to set up phpimagik in Mac OS X? -
i tried follow many tutorials set phpimagick in os x not. feel complicated.
can tell me simple step step set phpimagick in os x?
yes, use homebrew
. go homebrew website , install 1 line script there. - don't want paste here because need latest , greatest line @ time of following these instructions.
then, when have homebrew
installed, these steps imagemagick installed , running under php , apache.
# check of homebrew working - fix errors before proceeding brew doctor # latest versions of if had "homebrew" installed # not necessary if installed "homebrew" in previous step brew update && brew upgrade # find latest php version - using "brew search" newestphp=$(brew search php | grep -e "php[0-9]+$" | sort | tail -1) echo $newestphp e.g. php56 # install latest php , corresponding imagemagick brew install ${newestphp} ${newestphp}-imagick e.g. brew install php56 php56-imagick # check installation worked - must use "/usr/local/bin/php" /usr/local/bin/php -i | grep -i imag
output
additional .ini files parsed => /usr/local/etc/php/5.6/conf.d/ext-imagick.ini php warning: unknown: not safe rely on system's timezone settings. *required* use date.timezone setting or date_default_timezone_set() function. in case used of methods , still getting warning, misspelled timezone identifier. selected timezone 'utc' now, please set date.timezone select timezone. in unknown on line 0 imagick imagick module => enabled imagick module version => 3.1.2 imagick classes => imagick, imagickdraw, imagickpixel, imagickpixeliterator imagemagick version => imagemagick 6.9.1-1 q16 x86_64 2015-04-15 http://www.imagemagick.org imagemagick copyright => copyright (c) 1999-2015 imagemagick studio llc imagemagick release date => 2015-04-15 imagemagick number of supported formats: => 204 imagemagick supported formats => 3fr, aai, ai, art, arw, avi, avs, bgr, bgra, bgro, bmp, bmp2, bmp3, brf, cal, cals, canvas, caption, cin, cip, clip, cmyk, cmyka, cr2, crw, cur, cut, dcm, dcr, dcx, dds, dfont, dng, dot, dpx, dxt1, dxt5, epdf, epi, eps, eps2, eps3, epsf, epsi, erf, fax, fits, fractal, fts, g3, gif, gif87, gradient, gray, gv, hald, hdr, histogram, hrz, htm, html, icb, ico, icon, iiq, info, inline, ipl, isobrl, jng, jnx, jpe, jpeg, jpg, jps, json, k25, kdc, label, m2v, m4v, mac, map, mask, mat, matte, mef, miff, mkv, mng, mono, mov, mp4, mpc, mpeg, mpg, mrw, msl, msvg, mtv, mvg, nef, nrw, null, orf, otb, otf, pal, palm, pam, pango, pattern, pbm, pcd, pcds, pcl, pct, pcx, pdb, pdf, pdfa, pef, pes, pfa, pfb, pfm, pgm, picon, pict, pix, pjpeg, plasma, png, png00, png24, png32, png48, png64, png8, pnm, ppm, preview, ps, ps2, ps3, psb, psd, pwp, radial-gradient, raf, ras, raw, rgb, rgba, rgbo, rgf, rla, rle, rmf, rw2, scr, sct, sfw, sgi, shtml, six, sixel, sparse-color, sr2, srf, stegano, sun, svg, svgz, text, tga, thumbnail, tile, tim, ttc, ttf, txt, ubrl, uil, uyvy, vda, vicar, vid, viff, vips, vst, wbmp, wmv, wpg, x3f, xbm, xc, xcf, xpm, xps, xv, ycbcr, ycbcra, yuv imagick.locale_fix => 0 => 0 imagick.progress_monitor => 0 => 0
that completes installation if want run imagemagick under php outside website.
the remaining steps necessary if want run php , imagemagick under apache inside website.
# check if php module loaded in apache config file - /etc/apache2/httpd.conf grep "^loadmodule.*php5_module.*libphp.*" /etc/apache2/httpd.conf check matches, or if not present add line loadmodule php5_module /usr/local/cellar/php56/5.6.6/libexec/apache2/libphp5.so # restart apache sudo apachectl restart
Comments
Post a Comment