The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

easyapache

Discussion in 'EasyApache' started by SHSaeed, Dec 7, 2002.

  1. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I tried earlier to install PHP with mcrypt and Curl-SSL but the install kept failing. Is there anything I need to do before choosing those features in the advanced section of easyapache?
     
  2. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
  3. jimcarter

    jimcarter Well-Known Member

    Joined:
    Jun 30, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    you shouldnt need to do anything before installing extra modules,
    what error message do you get?
     
  4. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    What OS and what version are you running? And whats the error?
     
  5. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    It's a RH6.2 machine. Here's the error I get...

    [quote:7a6b763b53]./.libs/libphp4.a(php_imap.lo): In function `zm_startup_imap':
    /home/cpapachebuild/buildapache/php-4.2.3/ext/imap/php_imap.c:444: undefined reference to `ssl_onceonlyinit'
    collect2: ld returned 1 exit status
    make[1]: ***
    PHP:
     Error 1
    make
    [1]: Leaving directory `/home/cpapachebuild/buildapache/php-4.2.3'
    make: *** [install-recursive] Error 1


    httpd has failed, please contact the sysadmin.[/quote:7a6b763b53]
     
  6. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Hmm.. I unchecked IMAP support and it installed without any problems. 2 problems now...

    1. I need IMAP support
    2. Curl does not work although I selected Curl with SSL support in the advanced options
     
  7. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    I've got Curl working with SSL now, but IMAP support still doesn't want to work :(

    I tired reinstalling using easyapache and this time I tried PHP 4.2.2 and still same problem...

    [quote:5daac6f99e]Making install in .
    make[1]: Entering directory `/home/cpapachebuild/buildapache/php-4.2.2'
    /bin/sh /home/cpapachebuild/buildapache/php-4.2.2/libtool --silent --mode=link gcc -I. -I/home/cpapachebuild/buildapache/php-4.2.2/ -I/home/cpapachebuild/buildapache/php-4.2.2/main -I/home/cpapachebuild/buildapache/php-4.2.2 -I/home/cpapachebuild/buildapache/php-4.2.2/Zend -I/home/cpapachebuild/buildapache/gd-2.0.4 -I/usr/include/imap -I/home/cpapachebuild/buildapache/php-4.2.2/ext/mysql/libmysql -I/home/cpapachebuild/buildapache/php-4.2.2/ext/xml/expat -I/home/cpapachebuild/buildapache/php-4.2.2/TSRM -g -O2 -o php -export-dynamic stub.lo libphp4.la
    ./.libs/libphp4.a(php_imap.lo): In function `zm_startup_imap':
    /home/cpapachebuild/buildapache/php-4.2.2/ext/imap/php_imap.c:430: undefined reference to `ssl_onceonlyinit'
    collect2: ld returned 1 exit status
    make[1]: ***
    PHP:
     Error 1
    make
    [1]: Leaving directory `/home/cpapachebuild/buildapache/php-4.2.2'
    make: *** [install-recursive] Error 1[/quote:5daac6f99e]

    I get this error at the end of the installation. It give me the warning messages...

    [quote:5daac6f99e]+--------------------------------------------------------------------+
    |                        *** WARNING ***                             |
    |                                                                    |
    | You will be compiling the CGI version of PHP without any           |
    | redirection checking.  By putting this cgi binary somewhere in     |
    | your web space, users may be able to circumvent existing .htaccess |
    | security by loading files directly through the parser.  See        |
    | http://www.php.net/manual/security.php for more details.           |
    +--------------------------------------------------------------------+
    |                        *** WARNING ***                             |
    |                                                                    |
    | You chose to compile PHP with the built-in MySQL support.  If you  |
    | are compiling a server module, and intend to use other server      |
    | modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0,         |
    | mod_perl) you must NOT rely on PHP's built-in MySQL support, and   |
    | instead build it with your local MySQL support files, by adding    |
    | --with-mysql=/path/to/mysql to your configure line.                |
    +--------------------------------------------------------------------+[/quote:5daac6f99e]

    ...and then does a lot of make[X] (where X is a number) lines and that's when I get the error.

    Any ideas?
     
  8. paul-ukhost

    paul-ukhost Well-Known Member

    Joined:
    Sep 2, 2002
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    I am having the same problem with redhat 7.2, it seems to work ok though on one of my 7.3 machines :(
     
  9. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Anyone know how to fix this?
     
  10. Tim Greer

    Tim Greer Well-Known Member

    Joined:
    Aug 11, 2002
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    You need to remove the --with-imap-ssl option in the buildscript, or build uw-imap with SSL.
     
  11. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Here are the lines for IMAP...

    [quote:97cb3dbcbb]
    if [ &1& = &1& ]; then
    echo -n &Untarring imap....&
    /scripts/ensurerpm imap-devel
    /scripts/ensurerpm imap-uw
    if [ -e &/usr/local/libexec& ] ; then
    cp -f /usr/local/cpanel/3rdparty/bin/imapd /usr/local/libexec
    fi
    if [ -e &/usr/lib/libc-client.a& ]; then
    (cd /usr/lib;ln -s libc-client.a c-client.a)
    fi
    if [ &`grep ssl /usr/lib/libc-client.a 2&/dev/null`& = && ]; then
    export WITHIMAP=&--with-imap&
    if [ -e /etc/krb5.conf ]; then
    WITHIMAP=&$WITHIMAP --with-kerberos&
    fi
    else
    export WITHIMAP=&--with-imap [b:97cb3dbcbb]--with-imap-ssl[/b:97cb3dbcbb]&
    if [ -e /etc/krb5.conf ]; then
    WITHIMAP=&$WITHIMAP --with-kerberos&
    fi
    fi
    [/quote:97cb3dbcbb]

    What we need to do is remove the [b:97cb3dbcbb]--with-imap-ssl[/b:97cb3dbcbb] and run ./buildscript ... Am I correct?
     
  12. Tim Greer

    Tim Greer Well-Known Member

    Joined:
    Aug 11, 2002
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    What we need to do is remove the [b:39a4904d3b]--with-imap-ssl[/b:39a4904d3b] and run ./buildscript ... Am I correct?[/quote]

    Yes, that is correct. But be sure to remove the previous PHP source, as this autoinstall does not offer a make clean/distclean option and thus you will have the previous build (with the option you need to remove) still configured from the last build. You should then be okay. You, of course, can always still consider building wu-imap with SSL support to fix this problem as well.
     
  13. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Thank you Tim, I removed --with-imap-ssl and it installed without any problems.
     
  14. Tim Greer

    Tim Greer Well-Known Member

    Joined:
    Aug 11, 2002
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Good deal. I believe this is fixed in the newest apachebuild script and you should be able to compile it with this option again. I know I was able to without making any modifications, but it was also a new server install I did the other day and didn't have any preexisting installations that it might be conflicting with to cause the above problem.
     
Loading...

Share This Page