<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Open Tech Notes</title>
	<link>http://zft.backupdiy.com</link>
	<description>All about open sources, like linux, apache, php, Zend Framework, MySQL, CentOS, Apachefriends...</description>
	<pubDate>Wed, 07 May 2008 05:32:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>
	<language>en</language>
			<item>
		<title>Let Apachefriends supports Pspell extension for PHP 5.2.5</title>
		<link>http://zft.backupdiy.com/2008/01/11/let-apachefriends-supports-pspell-extension-for-php-525/</link>
		<comments>http://zft.backupdiy.com/2008/01/11/let-apachefriends-supports-pspell-extension-for-php-525/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 21:45:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Linux Admin</dc:subject>
	<dc:subject>command</dc:subject>
	<dc:subject>Apachefriends</dc:subject>
		<guid isPermaLink="false">http://zft.backupdiy.com/2008/01/11/let-apachefriends-supports-pspell-extension-for-php-525/</guid>
		<description><![CDATA[Apachefriends is great project that facilitate the configuration of LAMP,&#160; but it&#8217;s latest version(1.6.5a) does not support Pspell extension for PHP which is required in our development team.
Fortunately, Apachefriends project provides a development package so that I can take advantage of it to re-compile the PHP. My Linux version is CentOS 4.5 final, all the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.apachefriends.org">Apachefriends</a> is great project that facilitate the configuration of LAMP,&nbsp; but it&#8217;s latest version(1.6.5a) does not support Pspell extension for PHP which is required in our development team.</p>
<p>Fortunately, Apachefriends project provides a <a href="http://www.apachefriends.org/en/xampp-linux.html">development package</a> so that I can take advantage of it to re-compile the PHP. My Linux version is CentOS 4.5 final, all the steps are pretty straightforward:</p>
<p>1) Download latest apachefriends packages (both working package and development package) and install them.<br />
2) Download PHP 5.2.5 and untar it<br />
3) yum install pspell-devel<br />
4) Download libbz2 and install it<br />
5) Hack the PHP configuration<br />
&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp; This is the original apachefriends&#8217;s php configuration</p>
<p>./configure &#8211;prefix=/opt/lampp &#8211;with-apxs2=/opt/lampp/bin/apxs &#8211;with-config-file-path=/opt/lampp/etc &#8211;with-mysql=/opt/lampp &#8211;enable-inline-optimization &#8211;disable-debug &#8211;enable-bcmath &#8211;enable-calendar &#8211;enable-ctype &#8211;enable-dbase &#8211;enable-discard-path &#8211;enable-exif &#8211;enable-filepro &#8211;enable-force-cgi-redirect &#8211;enable-ftp &#8211;enable-gd-imgstrttf &#8211;enable-gd-native-ttf &#8211;with-ttf &#8211;enable-magic-quotes &#8211;enable-memory-limit &#8211;enable-shmop &#8211;enable-sigchild &#8211;enable-sysvsem &#8211;enable-sysvshm &#8211;enable-track-vars &#8211;enable-trans-sid &#8211;enable-wddx &#8211;enable-yp &#8211;with-ftp &#8211;with-gdbm=/opt/lampp &#8211;with-jpeg-dir=/opt/lampp &#8211;with-png-dir=/opt/lampp &#8211;with-freetype-dir=/opt/lampp &#8211;without-xpm &#8211;with-zlib=yes &#8211;with-zlib-dir=/opt/lampp &#8211;with-openssl=/opt/lampp &#8211;with-expat-dir=/opt/lampp &#8211;enable-xslt=/opt/lampp &#8211;with-xsl=/opt/lampp &#8211;with-dom=/opt/lampp &#8211;with-ldap=/opt/lampp &#8211;with-ncurses=/opt/lampp &#8211;with-gd &#8211;with-imap-dir=/opt/lampp &#8211;with-imap-ssl &#8211;with-imap=/opt/lampp &#8211;with-gettext=/opt/lampp &#8211;with-mssql=/opt/lampp &#8211;with-sybase=/opt/lampp &#8211;with-interbase=shared,/opt/interbase &#8211;with-mysql-sock=/opt/lampp/var/mysql/mysql.sock &#8211;with-oci8=shared,instantclient,/opt/lampp/lib/instantclient &#8211;with-mcrypt=/opt/lampp &#8211;with-mhash=/opt/lampp &#8211;enable-sockets &#8211;enable-mbstring=all &#8211;with-curl=/opt/lampp &#8211;enable-mbregex &#8211;enable-zend-multibyte &#8211;enable-exif &#8211;with-bz2=/opt/lampp &#8211;with-sqlite=shared,/opt/lampp &#8211;with-libxml-dir=/opt/lampp &#8211;enable-soap &#8211;enable-pcntl &#8211;with-mysqli=/opt/lampp/bin/mysql_config &#8211;with-mime-magic &#8211;with-pgsql=shared,/opt/lampp/postgresql &#8211;with-iconv &#8211;enable-dio &#8211;with-pdo-mysql=/opt/lampp &#8211;with-pdo-pgsql=/opt/lampp/postgresql &#8211;with-pdo-sqlite &#8211;with-ming=shared,/opt/lampp</p>
<p>Because we only use MySQL , so I remove other database support from it such as:</p>
<p>&#8211;with-pdo-pgsql=/opt/lampp/postgresql<br />
&#8211;with-pgsql=shared,/opt/lampp/postgresql <br />
&#8211;with-oci8=shared,instantclient,/opt/lampp/lib/instantclient<br />
&#8211;with-interbase=shared,/opt/interbase</p>
<p>Of course, in order to support Pspell extension, add this at the end</p>
<p>&#8211;with-pspell=/usr</p>
<p>6) re-compile the php</p>
<p>Done! &nbsp;&nbsp;  
</p>
]]></content:encoded>
			<wfw:commentRss>http://zft.backupdiy.com/2008/01/11/let-apachefriends-supports-pspell-extension-for-php-525/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
