Google
 
 
Home

Main Menu
 Home
 Linux Articles
 FreeBSD Articles
 Apache Articles
 Perl Articles
 Other Articles
 Program Downloads
 Free Books
 News
 The Web Links
 Contact Us

Most Read
Automating SFTP using expect
FreeBSD PPTP VPN
Shorewall Router on Linux
SnortShorwall - Using Snort And Shorewall Together
Shorewall Stand Alone Firewall

Polls
Favorite Linux/BSD
Fedora
Mandrake
Debian
Slackware
Gentoo
Suse
FreeBSD
Other
  

Syndicate
Latest news direct to your desktop
RSS

Login Form
Username

Password

Remember me
Forgotten your password?
No account yet? Create one

Members Online
 Linux-BSD-Central Has a Total of 488 Members   Members (488) # Online
 We have 7 Guests Online. Guests 7
 We have 0 Users Online. Users 0

Online Users
No Users Online

Statistics
OS: Linux w
PHP: 5.2.9
MySQL: 5.0.89-community
Time: 22:04
Members: 488
Hits: 1216534
News: 277
WebLinks: 15





EASY way to get GD php library for mac os x   PDF  Print  E-mail 
Contributed by Chad Brandt  
Saturday, 24 January 2009

The php5 that is installed by default in mac os X is not compiled with the GD library. This causes issues when using software like drupal that requires this.

There is an easy way to get this working by using the php5 download from enthophy. Just follow these steps and you will have php5 with GD lib running on your mac os x

1. Download the php from http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz


2. Unzip this to usr local using
>sudo tar -zxvf php5-5.2.5-6-beta.tar.gz -C /usr/local
You should have a directory now /usr/local/php5


3. Comment out the php5 loaded in /etc/apache2/httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so


4. Let apache know to use the php5 from entrophy
>sudo ln -sf /usr/local/php5/entropy-php.conf /etc/apache2/other/+entropy-php.conf


5. Restart apache
> sudo apachectl stop
> sudo apachectl start
check output of /var/log/system.log to make sure there were no errors during startup

You can ensure apache is up and running with netstat
>netstat -a -n | grep 80 | grep LISTEN
tcp46 0 0 *.80 *.* LISTEN

Now GD library should work with php on mac

Comments

Write Comment
Name:Guest
Title:
BBCode:Web AddressEmail AddressBold TextItalic TextUnderlined TextQuoteCodeOpen ListList ItemClose List
Comment:



Powered by AkoComment 1.0 beta 2!




 
Google Ads