<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Enable IMAP PHP module on OSX Snow Leopard Server 10.6</title>
  <link>http://www.activecollab.com/forums/topic/5844/</link>
  <description>Recent posts on topic: Enable IMAP PHP module on OSX Snow Leopard Server 10.6</description>
  <dc:language>en-us</dc:language>
  <pubDate>Thu, 24 May 2012 08:21:30 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/32919/#post32919</link>
    <guid>http://www.activecollab.com/forums/post/32919/#post32919</guid>
    <title>Post #18 by helpdesk</title>
    <dc:creator>helpdesk</dc:creator>
    <description><![CDATA[<p>Yeah, you need the source code of PHP 5.3.0 in order to compile the IMAP module following this guide. You don't necessarily have to run PHP 5.3.0 on your server. My web server is running PHP 5.4 currently, and the PHP module compiled with PHP 5.3.0 source code works out perfectly.</p>]]></description>
    <pubDate>Tue, 01 Nov 2011 21:52:42 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/32501/#post32501</link>
    <guid>http://www.activecollab.com/forums/post/32501/#post32501</guid>
    <title>Post #17 by ebatte</title>
    <dc:creator>ebatte</dc:creator>
    <description><![CDATA[<p><div class="postQuote"><blockquote><div class="quoteAuthor">tonyswu:</div>Hi ebatte,<br />
<br />
The instructions posted only works with PHP source version5.3.0. You can't find the older version on PHP's official site anymore, but if you google it you can find it somewhere.</blockquote></div><br />
<br />
My Snow Leopard Server is running 5.3.4 according to info.php. Is it important that the versions match exactly when following these instructions or do I have to find 5.3.0?<br />
<br />
And just to clarify, you're saying 5.3.0 is required for the imap module and not to have 5.3.0 running on the server?</p>]]></description>
    <pubDate>Tue, 27 Sep 2011 09:09:45 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/32431/#post32431</link>
    <guid>http://www.activecollab.com/forums/post/32431/#post32431</guid>
    <title>Post #16 by tonyswu</title>
    <dc:creator>tonyswu</dc:creator>
    <description><![CDATA[<p>Hi ebatte,<br />
<br />
The instructions posted only works with PHP source version5.3.0. You can't find the older version on PHP's official site anymore, but if you google it you can find it somewhere.</p>]]></description>
    <pubDate>Thu, 22 Sep 2011 18:11:21 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/32020/#post32020</link>
    <guid>http://www.activecollab.com/forums/post/32020/#post32020</guid>
    <title>Post #15 by ebatte</title>
    <dc:creator>ebatte</dc:creator>
    <description><![CDATA[<p>[sigh]<br />
<br />
I'm getting the following errors attempting to make the module in OS X 10.6.8. If anyone could assist I would appreciate it.<br />
<br />
/Users/admin/Downloads/php-5.3.8/ext/imap/php_imap.c:554: error: 'PHP_FE_END' undeclared here (not in a function)<br />
/Users/admin/Downloads/php-5.3.8/ext/imap/php_imap.c:561: error: 'ZEND_MOD_END' undeclared here (not in a function)<br />
/Users/admin/Downloads/php-5.3.8/ext/imap/php_imap.c:562: error: initializer element is not constant<br />
/Users/admin/Downloads/php-5.3.8/ext/imap/php_imap.c:562: error: (near initialization for 'imap_deps[1].name')<br />
make: *** [php_imap.lo] Error 1<br />
<br />
Thanks<br />
Eric</p>]]></description>
    <pubDate>Wed, 24 Aug 2011 10:23:42 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/31544/#post31544</link>
    <guid>http://www.activecollab.com/forums/post/31544/#post31544</guid>
    <title>Post #14 by mathias.lin</title>
    <dc:creator>mathias.lin</dc:creator>
    <description><![CDATA[<p>(post deleted - I missed emil_l's comment on the second page, which solved my problem actually. Thanks, saved me lots of time!)</p>]]></description>
    <pubDate>Sat, 09 Jul 2011 12:52:59 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/29569/#post29569</link>
    <guid>http://www.activecollab.com/forums/post/29569/#post29569</guid>
    <title>Post #13 by emil_l</title>
    <dc:creator>emil_l</dc:creator>
    <description><![CDATA[<p>Hi.<br />
<br />
Nice guide but it didn't work fully for me. My main goal was to enable IMAP-SSL to enable my PHP scripts to connect to GMail using IMAP. I have a Core 2 Duo Mac Mini with MAMP installed.<br />
<br />
Problem 1.<br />
In Step 6 when trying to build the imap extension I got the following error:<br />
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory<br />
<br />
Solution<br />
Copy the pcre.h file from the downloaded PHP source to your /usr/include dir:<br />
sudo cp ../pcre/pcrelib/pcre.h /usr/include/php/ext/pcre/<br />
<br />
Problem 2<br />
When starting the Apache server again I got the following error in the PHP log:<br />
[18-Jan-2011 22:11:31] PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/imap.so' - dlopen(/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/imap.so, 9): no suitable image found.  Did find:<br />
	/Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/imap.so: mach-o, but wrong architecture in Unknown on line 0<br />
<br />
Why?<br />
After hours of searching I figured out that the compiled binary imap.so only contained binary for the x86_64 architecture. My MacMini has a 64-bit CPU so the problem isn't there. The problem is that the php binary shipped with MAMP is only built for the i386 architecture, making them incompatible.<br />
<br />
How:<br />
If you run the command 'lipo -info &lt;filename&gt;' you will see which architectures the binary supports. Try running it on file php-5.3.1/ext/imap/modules/imap.so and compare the output with the php binary located in /Applications/MAMP/bin/php5.3/bin/<br />
<br />
Solution:<br />
Rebuild the imap extension, this time targeted for both i386 and x86_64 architectures. We have to rerun step 5 with some modifications:<br />
cd php-5.3.1/ext/imap<br />
make clean<br />
phpize<br />
MACOSX_DEPLOYMENT_TARGET=10.6 \<br />
CFLAGS=&quot;-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp&quot; \<br />
CCFLAGS=&quot;-arch i386 -arch x86_64 -g -Os -pipe&quot; \<br />
CXXFLAGS=&quot;-arch i386 -arch x86_64 -g -Os -pipe&quot; \<br />
LDFLAGS=&quot;-arch i386 -arch x86_64 -bind_at_load&quot; \<br />
./configure --with-imap=/usr/local/imap-2007 --with-kerberos --with-imap-ssl=/usr/<br />
<br />
Then continue with step 6.<br />
<br />
It took me about 15 painstaking hours to figure this out. Hope I can help someone out there so you don't have to go through the same frustrating process I had to go through.<br />
</p>]]></description>
    <pubDate>Tue, 18 Jan 2011 17:38:25 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25888/#post25888</link>
    <guid>http://www.activecollab.com/forums/post/25888/#post25888</guid>
    <title>Post #12 by [user deleted]</title>
    <dc:creator>[user deleted]</dc:creator>
    <description><![CDATA[<p>That resolved it, thank you again for all the trouble shooting, this is all very foreign to me. Now just have to figure out why Navicat is adding code interfering with the page ;). Seems like every little step there is something else that happens.</p>]]></description>
    <pubDate>Mon, 19 Apr 2010 15:06:56 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25884/#post25884</link>
    <guid>http://www.activecollab.com/forums/post/25884/#post25884</guid>
    <title>Post #11 by specialopssecurity</title>
    <dc:creator>specialopssecurity</dc:creator>
    <description><![CDATA[<p>You can safely delete all the extension lines that end with .dll because those are for Windows.<br />
<br />
Remove the semi-colon (;) from your extension line referencing imap.so and restart. The semi-colon character makes the line a comment (i.e., ignore this line).</p>]]></description>
    <pubDate>Mon, 19 Apr 2010 13:19:13 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25883/#post25883</link>
    <guid>http://www.activecollab.com/forums/post/25883/#post25883</guid>
    <title>Post #10 by [user deleted]</title>
    <dc:creator>[user deleted]</dc:creator>
    <description><![CDATA[<p>;extension=php_bz2.dll<br />
;extension=php_curl.dll<br />
;extension=php_dba.dll<br />
;extension=php_exif.dll<br />
;extension=php_fileinfo.dll<br />
;extension=php_gd2.dll<br />
;extension=php_gettext.dll<br />
;extension=php_gmp.dll<br />
;extension=php_intl.dll<br />
;extension=php_imap.dll<br />
;extension=php_interbase.dll<br />
;extension=php_ldap.dll<br />
;extension=php_mbstring.dll<br />
;extension=php_ming.dll<br />
;extension=php_mssql.dll<br />
;extension=php_mysql.dll<br />
;extension=php_mysqli.dll<br />
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client<br />
;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client<br />
;extension=php_openssl.dll<br />
;extension=php_pdo_firebird.dll<br />
;extension=php_pdo_mssql.dll<br />
;extension=php_pdo_mysql.dll<br />
;extension=php_pdo_oci.dll<br />
;extension=php_pdo_odbc.dll<br />
;extension=php_pdo_pgsql.dll<br />
;extension=php_pdo_sqlite.dll<br />
;extension=php_pgsql.dll<br />
;extension=php_phar.dll<br />
;extension=php_pspell.dll<br />
;extension=php_shmop.dll<br />
;extension=php_snmp.dll<br />
;extension=php_soap.dll<br />
;extension=php_snmp.dll<br />
;extension=php_soap.dll<br />
;extension=php_sockets.dll<br />
;extension=php_sqlite.dll<br />
;extension=php_sqlite3.dll<br />
;extension=php_sybase_ct.dll<br />
;extension=php_tidy.dll<br />
;extension=php_xmlrpc.dll<br />
;extension=php_xsl.dll<br />
;extension=php_zip.dll<br />
;extension=/usr/lib/php/extensions/no-debu-non-zts-20090626/imap.so<br />
<br />
<br />
Hmm, well I noticed I forgot the &quot;g&quot; at the end of &quot;debug&quot;, I added that, restarted apache, thought FOR SURE this was going to fix it, and still get the same warning.</p>]]></description>
    <pubDate>Mon, 19 Apr 2010 13:14:25 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25881/#post25881</link>
    <guid>http://www.activecollab.com/forums/post/25881/#post25881</guid>
    <title>Post #9 by [user deleted]</title>
    <dc:creator>[user deleted]</dc:creator>
    <description><![CDATA[<p>Hmm, I checked it out, they all seemed alright. I even added the &quot;adminstrator&quot; user I am currently logged in as with read/write access, restarted apache, and have the same error. This is what I currently get back in terminal. Once again thank you for the help.<br />
<br />
drwxr-xr-x+ 5 root  wheel      170 Apr 19 09:31 .<br />
drwxr-xr-x  4 root  wheel      136 Apr  9 17:42 ..<br />
-rwxr-xr-x+ 1 root  wheel  1177976 Apr 19 09:31 imap.so<br />
-rwxr-xr-x+ 1 root  wheel    76832 Jul 20  2009 phpcups.so<br />
-rwxr-xr-x+ 1 root  wheel    60208 Jul 20  2009 proxyauth.so<br />
</p>]]></description>
    <pubDate>Mon, 19 Apr 2010 12:58:53 CDT</pubDate>
  </item>
</channel>
</rss>
