LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compile PHP with IMAP support (https://www.linuxquestions.org/questions/linux-software-2/compile-php-with-imap-support-262173/)

ultrafluke 12-03-2004 11:18 AM

Compile PHP with IMAP support
 
Hi!

I have configured and installed Apache with PHP, mod_ssl and mod_perl (everything was compiled by hand).

My problem is that i can't compile PHP --with-imap support! The configure make and make install goes fine but I can't start apache! The error on error.log is this one:
--
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration
--

It seems that apache (httpd.conf) do not recognize/can't start SSL, but i think that there's no problem with SSL because if i compile PHP without imap the server starts sucessfully but I have no imap support.

I've tried to compile: --with-imap=/usr --with-imap=shared,/usr but it didnt work..

The OS is Debian stable (Woody), and I have libc-client2001 and libc-client2001-dev installed byt apt-get.

My configure options to compile PHP are:
---
CFLAGS='-O2 -I/usr/local/src/openssl-0.9.7e -DEAPI' \
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--disable-debug \
--enable-sockets \
--enable-bcmath \
--enable-ftp \
--enable-calendar \
--enable-mailparse \
--enable-memory-limit \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring \
--enable-mm=shared \
--enable-safe-mode \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx=shared \
--enable-xml \
--with-ming \
--with-xmlrpc \
--with-mcrypt \
--with-dom \
--with-gd \
--with-png-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-tiff-dir=/usr/lib \
--with-ttf-dir=/usr/lib \
--with-zlib-dir=/usr/lib \
--with-gettext \
--with-mysql=/usr/local/mysql \
--with-regex=system \
--with-xml \
--with-zlib-dir=/usr/lib \
--with-openssl \
--with-pear
--with-imap
---

Anyone can help compiling PHP with imap support?

Thanks.

ultrafluke 12-03-2004 12:04 PM

UPDATE:

I downloaded and compiled imap2004 (ftp://ftp.cac.washington.edu/imap/imap-2004a.tar.Z) and proceeded as it is said on www.php.net/imap

Unfrotunally that didn't work, and know, I dont even can compile PHP withou IMAP because when I'm starting apache, I always get this error:
---
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: OPENSSL_add_all_algorithms_noconf
---

If I comment the PHP Load/AddModule Apache starts sucessfuly, but without PHP :(

Anyone knows what I'm doing wrong?

Thanks.


All times are GMT -5. The time now is 03:52 PM.