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.

2 problems: piping error and imap problem

Discussion in 'General Discussion' started by thernes, Apr 21, 2006.

  1. thernes

    thernes Active Member

    Joined:
    Dec 29, 2001
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bodo, Norway
    Hey all

    Got a couple of problems with my newly purchased server

    1. I've set up e-mail piping in /etc/valiases/domain.com
    The e-mail "pipes" just fine, but is returend with this output;

    PHP:
    PHP Warning:  Function registration failed duplicate name curl_init in Unknown on line 0 
    PHP Warning
    :  Function registration failed duplicate name curl_version in Unknown on line 0 
    PHP Warning
    :  Function registration failed duplicate name curl_setopt in Unknown on line 0 
    PHP Warning
    :  Function registration failed duplicate name curl_exec in Unknown on line 0 
    PHP Warning
    :  Function registration failed duplicate name curl_getinfo in Unknown on line 0 
    PHP Warning
    :  Function registration failed duplicate name curl_error in Unknown on line 0 
    PHP Warning
    :  Function registration failed duplicate name curl_errno in Unknown on line 0 
    PHP Warning
    :  Function registration failed duplicate name curl_close in Unknown on line 0 
    PHP Warning
    :  curl:  Unable to register functionsunable to load in Unknown on line 0
    PHP should be compiled correctly with curl/curlSSL, as I have other applications that use curl without any problems

    2. I just can't seem to get imap to compile correctly when I try to rebuild apache in WHM. Whenever I check the Imap-option, the build fails. Same thing when I try to do a build via ssh. These are the last lines in the build;
    PHP:
    checking whether IMAP works... no
    configure
    errorbuild test failedPlease check the config.log for details.
    Just moved from a shared cpanel server and I had no problems there :(

    Any help will be highly appreciated

    thanks,


    Thomas
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    If you have other PHP apps that are able to use curl, the problem will be with the script to which mail is piped (in one way or another).

    Try piping mail to a script that contains nothing but the shebang line and see what happens. You'd still get a bounceback as the message won't be being read in from STDIN, but it's still best to start from a blank script and work up from there.

    If you say that the script worked with a previous host, it is unlikely that the script coding itself is at fault but something in the environment.

    Does the shebang line point to the correct PHP version? There will be more than one from which to choose!

    Are you trying to include/require any other scripts? Beware of the fact that the include path may not be being fully populated.
     
  3. thernes

    thernes Active Member

    Joined:
    Dec 29, 2001
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Bodo, Norway
    Same error returned when piped to a script only with shebang line.

    shebang line is pointing to the correct php version (/usr/local/bin/php)

    and yes, the script did work on the shared server I used before, without any problems.
     
Loading...

Share This Page