Hi,
I have justed started using php for development of a website. It has been compiled with apache 1.3.14, php4 and ssl support. The question is, i need the imap support for php but just could n't get it to work.

Please enlighten me on how to install the php-imap support right from the BEGINNING.

I have installed the IMAP daemon downloaded from Redhat.

Thanks in advance.

Regards,
Michael
02/02/2001 (dd/mm/yyyy)

    Which Red Hat are you using?

      Hi,
      I'm currently using RedHat version 7.0. The IMAP daemon that I have installed is the rpm downloaded from the redhat ftp site (imap-4.7c2-12.i386.rpm).

      PHP version used is 4.0.4pl1.
      Apache version 1.3.14 with SSL compiled.

      I need to compile the Apache with SSL and PHP, PHP-IMAP as static modules.

      I tried using the rpm version of the PHP-IMAP but is unable to install it as the PHP I installed is compiled from source and not installed from rpm.

      Thanks.
      Regards,
      Michael
      03/02/2001 (dd/mm/yyyy)

        First of all: Why compile everything yourself and all statically? Struggling with compilation is not going to make you a better PHP web developer. And the lack of modularity will make your system inflexible. Red Hat 7's apache + mod_ssl + php-imap packages should easily do the job for you.

        Now, if you really want to do it:

        What goes wrong when you try to compile PHP with IMAP client support?

        Consider at least installing the imap software as packages. At http://rpms.arvin.dk/imap-no_kerberos/ there is an "imap-devel" package which is handy while compiling PHP with imap-support.
        Then add these flags when compiling PHP:
        --with-imap --with-imap-ssl

        When the PHP compilation is over, then the "imap-devel" package may be un-installed.

          Hi,
          there isn't any errors during the compilation. I downloaded the source from the following site:

          ftp://ftp.cac.washington.edu/imap/
          (c-client.tar.gz)

          I compiled everything successfully using ./configure --with-imap in the PHP configuration script, afer which I installed the apache.

          When testing the page, it produces an error mesage: Fatal error: Call to undefined function imap_mail

          Is there anything I need to change to the php.ini file? I stored it the /etc/httpd/conf.

          What else contributes to this failure?
          Is it the installation or the configuration?

          Regards,
          Michael
          04/02/2001 (dd/mm/yyyy)

            Hi,
            I forgot to ask where to find this package that you recommend:

            Red Hat 7's apache + mod_ssl + php-imap

            I searched through Redhat's download site and ftp site but just can't seem to find it. I will be grateful if you can supply me the link.

            If it's too troublesome for you to reply to threads, you may mail me directly at thunderbolt@pacific.net.sg

            Regards,
            Michael
            04/02/2001 (dd/mm/yyyy)

              As mentioned in my last message, you may get an "imap-devel" package which makes it easier to compile PHP with IMAP-support:

              http://rpms.arvin.dk/imap-no_kerberos/

              The --with-imap and --with-imap-ssl configure options are need when you compile PHP (if you insist on compiling PHP yourself).

                How do I use this package?

                Can you provide me with the command to compile the php?

                  Hi,
                  I plan to do a reinstallation of my webserver as well as the php and php-imap. In your opinion, what is the best way?

                  I'm planning to do the following:
                  1) Compile apache with ssl support from source.

                  2) install the php package using
                  php-4.0.4pl1-6-i386.rpm downloaded from rpmfind.net (http://www.rpmfind.net/linux/rpm2html/search.php?query=php)
                  details can be found here (http://www.rpmfind.net/linux/RPM/rawhide/1.0/i386//RedHat/RPMS//php-4.0.4pl1-6.i386.html)

                  3) install the php-imap package using
                  php-imap-4.0.4pl1-6-i386.rpm downloaded from rpmfind.net (http://www.rpmfind.net/linux/rpm2html/search.php?query=php-imap&submit=Search+...)
                  details can be found here
                  (http://www.rpmfind.net/linux/RPM/rawhide/1.0/i386//RedHat/RPMS//php-imap-4.0.4pl1-6.i386.html)

                  Please do guide me along as to how to install and configure these successfully in order for it to work.

                  Thank you.

                  Regards,
                  Michael
                  06/02/2001 (dd/mm/yyyy)

                    Why don't you just use Red Hat 7's nice apache and mod_ssl packages plus Red Hat 7's updated PHP packages?

                      Write a Reply...