HowTo: CentOS and php GD with freetype support
3 posts
• Page 1 of 1
HowTo: CentOS and php GD with freetype support
php with gd2 and freetype support. among a few other features.
Download php5 using curl
- Code: Select all
curl -LO "http://us2.php.net/distributions/php-5.2.9.tar.bz2"
decompress, move into directory and configure, then make
- Code: Select all
tar -xjf php-5.2.9.tar.bz2 && cd php-5.2.9 && ./configure --with-apxs2=/usr/bin/apxs --with-curl --
with-curl-dir=/usr/local/lib --with-gd --with-gd-dir=/usr/local --with-gettext --with-jpeg-
dir=/usr/local/lib --with-kerberos --with-mysql --with-pear --with-png-dir=/usr/local/lib --with-xml --
with-zlib --with-zlib-dir=/usr/local/lib --with-zip --with-openssl --enable-bcmath --enable-calendar --
enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --enable-mbstring --enable-memory-
limit --with-iconv --enable-dba --with-db4 --with-freetype-dir=/usr/include/freetype2/ --with-freetype &&
make
install
- Code: Select all
make install
finish up...
- Code: Select all
libtool --finish /root/php-5.2.9/php-5.2.9/php-5.2.9/php-5.2.9/php-5.2.9/php-5.2.9/php-5.2.9/libs
If you have a premade php.ini file replace the new with the old.
- Code: Select all
cp php.ini-dist /usr/local/lib/php.ini
restart your apache
- Code: Select all
/etc/init.d/httpd stop
/etc/init.d/httpd start
I had to make a how to for this, since there is not one online that i can find. this worked perfect for CentOS 5.x
Re: HowTo: CentOS and php GD with freetype support
Thanks very much for posting such a detailed and complete guide to getting this working Andrew
Re: HowTo: CentOS and php GD with freetype support
next i am gonna get lighttpd with fastcgi and xCache to install...
i hate CentOS...
i hate CentOS...
3 posts
• Page 1 of 1
Return to Other Operating Systems
Who is online
Users browsing this forum: No registered users and 1 guest