2 problems: piping error and imap problem

thernes

Active Member
Dec 29, 2001
32
0
306
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 functions, unable 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: error: build test failed. Please 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
 

webignition

Well-Known Member
Jan 22, 2005
1,876
1
166
thernes said:
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 functions, unable to load in Unknown on line 0
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.
 

thernes

Active Member
Dec 29, 2001
32
0
306
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.