Installing PHP w/ IMAP support on Slackware Thu, Jul 2. 2009
Trackbacks
Trackback specific URI for this entry
No Trackbacks
When installing PostfixAdmin, I found that I need to re-compile PHP to support IMAP, but later more problems came to me.
Environment: Linux mail 2.6.27.7-smp #2 SMP Thu Nov 20 22:32:43 CST 2008 i686 Intel(R) Xeon(R) CPU E5405 @ 2.00GHz GenuineIntel GNU/Linux
A: According to PHP Manual: IMAP Installation, I need to get something named c-client, and compile PHP with --with-imap[=DIR].
A: Googled answer IMAP Information Center: The software and documentation is available at ftp://ftp.cac.washington.edu/imap. UW IMAP toolkit source distribution is available at ftp://ftp.cac.washington.edu/mail/imap.tar.Z.
A: Normally, you should run configure, make and make install to install a package from source, but no configure found and make is different.
First, make sure you have OpenSSL installed, and then follow the setps:
Extract the archive downloaded to /usr/local folder named imap-2007e
If you like me discover that "make slx" fails, but you're damn sure you've openssl installed then, it might be that the lib and include paths on your distribution are different then the defaults provided in the imap-2007e (or imap-XXXXx). To modify go to dir src/osdep/unix and edit Makefile, around L55:
# Extended flags needed for SSL. You may need to modify. SSLDIR=/usr/local/ssl SSLCERTS=$(SSLDIR)/certs SSLKEYS=$(SSLCERTS) SSLINCLUDE=$(SSLDIR)/include SSLLIB=$(SSLDIR)/lib SSLCRYPTO=-lcryptoChange SSLDIR, SSLINCLUDE and SSLIB to valid paths for Slackware. In my case, it should like this:
# Extended flags needed for SSL. You may need to modify. SSLDIR=/etc/ssl SSLCERTS=$(SSLDIR)/certs SSLKEYS=$(SSLCERTS) SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCRYPTO=-lcryptoYou should also check your ld.so.conf for valid paths.
A: Finally, we've reached the last step. Re-compile PHP and everything is done. When configuring, just add those two imap options
Bing! Your system is ready for your imap application.
|
|
March '10 | |||||
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||
© 2007 nullTao - 净空无道 - Blog | Main site | Contact me | RSS | Back to top
Powered by Serendipity | Design by Andreas Viklund | Serendipity Template by Carl