<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux, Open Source and Web 2.0 &#187; mcrypt</title>
	<atom:link href="http://www.itecsoftware.com/tag/mcrypt/feed" rel="self" type="application/rss+xml" />
	<link>http://www.itecsoftware.com</link>
	<description>Itec Software</description>
	<lastBuildDate>Sun, 13 May 2012 19:34:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How To Add PHP Mcrypt Module On Snow Leopard 10.6</title>
		<link>http://www.itecsoftware.com/how-to-add-php-mcrypt-module-on-snow-leopard-10-6?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-add-php-mcrypt-module-on-snow-leopard-10-6</link>
		<comments>http://www.itecsoftware.com/how-to-add-php-mcrypt-module-on-snow-leopard-10-6#comments</comments>
		<pubDate>Tue, 03 Nov 2009 20:39:47 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mcrypt]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://articles.itecsoftware.com/?p=322</guid>
		<description><![CDATA[<a href="http://www.itecsoftware.com/how-to-add-php-mcrypt-module-on-snow-leopard-10-6" title="How To Add PHP Mcrypt Module On Snow Leopard 10.6"></a>These instructions assume that you have a working Apache 2.2 / PHP 5.3 in place and want to add the php mcrypt module. It will work as a fresh install, but keep in mind that additional configuration steps after these &#8230;<p class="read-more"><a href="http://www.itecsoftware.com/how-to-add-php-mcrypt-module-on-snow-leopard-10-6">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.itecsoftware.com/how-to-add-php-mcrypt-module-on-snow-leopard-10-6" title="How To Add PHP Mcrypt Module On Snow Leopard 10.6"></a><!-- google_ad_section_start --><p>These instructions assume that you have a working Apache 2.2 / PHP 5.3 in place and want to add the php mcrypt module. It will work as a fresh install, but keep in mind that additional configuration steps after these instructions are necessary to get your webserver working properly. Those additional steps are omitted here, as there are countless resources available on the Internet.</p>
<p>1. If you don&#8217;t already have the mcrypt module (in /usr/lib), d<span style="background-color: #ffffff;">ownload the <span style="text-decoration: underline;">libmcrypt</span> source code from sourceforge <a href="http://sourceforge.net/projects/mcrypt/files/Libmcrypt/" target="_blank">here</a>. Then extract the downloaded file in a Terminal and move inside the created directory. (cd libmcrypt-2.5.8 in my case)</span></p>
<p>2. Execute the following lines in one command in your Terminal, if you have a 64bit version of Apache/PHP:</p>
<p><span style="color: #003300;"><em><span style="color: #008000;">CFLAGS=&#8221;-arch x86_64&#8243; \<br />
CXXFLAGS=&#8221;-arch x86_64&#8243; \<br />
./configure &#8211;disable-posix-threads</span></em></span></p>
<p>(for 32 bit versions: ./configure &#8211;disable-posix-threads)</p>
<p><span id="more-322"></span></p>
<p>2. In your Terminal, run:</p>
<p><span style="color: #003300;"><em><span style="color: #008000;">make</span></em></span></p>
<p>3. If no errors, in your Terminal run:</p>
<p><span style="color: #003300;"><em><span style="color: #008000;">sudo make install</span></em></span></p>
<p>4. Download the PHP source code from PHP&#8217;s website <a href="http://www.php.net/downloads.php#v5" target="_blank">here</a>. Extract in a Terminal and move into the extracted directory.</p>
<p>5. In your Terminal, run the following lines in one command:</p>
<p><span style="color: #003300;"><em><span style="color: #008000;">export MACOSX_DEPLOYMENT_TARGET=10.6 \<br />
CFLAGS=&#8221;-arch x86_64&#8243; \<br />
CXXFLAGS=&#8221;-arch x86_64&#8243;</span></em></span></p>
<p><span style="color: #003300;"><em><span style="color: #008000;"><br />
./configure &#8211;prefix=/usr/local/php5<br />
&#8211;mandir=/usr/share/man<br />
&#8211;infodir=/usr/share/info<br />
&#8211;sysconfdir=/etc \<br />
&#8211;with-config-file-path=/etc \<br />
&#8211;with-zlib \<br />
&#8211;with-zlib-dir=/usr \<br />
&#8211;with-openssl \<br />
&#8211;with-iconv=/usr \<br />
&#8211;enable-exif \<br />
&#8211;enable-ftp \<br />
&#8211;enable-mbstring \<br />
&#8211;enable-mbregex \<br />
&#8211;with-mcrypt \<br />
&#8211;enable-sockets \<br />
&#8211;with-mysql=/usr/local/mysql \<br />
&#8211;with-pdo-mysql=/usr/local/mysql \<br />
&#8211;with-mysqli=/usr/local/mysql/bin/mysql_config \<br />
&#8211;with-apxs2=/usr/sbin/apxs</span></em></span></p>
<p>6. Correct a bug in Makefile.</p>
<p>As a result of a bug in PHP 5.2.9 and 5.3.0, we&#8217;ll need to correct the file <span style="text-decoration: underline;">Makefile</span> generated by the configure phase. Let&#8217;s add ‘-lresolv‘ at the end of the line that begins with ‘EXTRA_LIBS‘. Leave a space and add it like &#8221; &#8230;   -lz -licucore -lm -lresolv to whatever is there already. Do not alter the exiting text, simply add it.</p>
<p>7. In your Terminal, run:</p>
<p><span style="color: #003300;"><em><span style="color: #008000;">make</span></em></span></p>
<p>8. If no errors, run:</p>
<p><span style="color: #003300;"><em><span style="color: #008000;">sudo make install</span></em></span></p>
<p>At this point, restart apache and check your configuration with phpinfo(). Look for mcrypt as it should appear as an enabled module.</p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://www.itecsoftware.com/how-to-add-php-mcrypt-module-on-snow-leopard-10-6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 2/9 queries in 0.003 seconds using disk: basic
Object Caching 390/392 objects using disk: basic

Served from: www.itecsoftware.com @ 2012-05-19 15:14:15 -->
