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.

Email Piping to script works, but sender gets an error message?

Discussion in 'E-mail Discussions' started by itzhero, Nov 22, 2010.

  1. itzhero

    itzhero Active Member

    Joined:
    Nov 16, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I currently have: xxx@domain.com to /home/itzhero/public_html/script.php

    The first line of the script is (as defined in cPanel): #!/usr/local/bin/php -q. My script works fine, however the sender is always sent an email containing the following:

    Code:
    This message was created automatically by mail delivery software.
    
    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:
    
     pipe to |home/itzhero/public_html/script.php
       generated by xxx@domain.comm
    
    The following text was generated during the delivery attempt:
    
    ------ pipe to |home/itzhero/public_html/script.php
          generated by xxx@domain.com ------
    
    PHP Warning:  Module 'zip' already loaded in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_zip.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_zip.dll: cannot open shared object file: No such file or directory in Unknown on line 0
    
    ------ This is a copy of the message, including all the headers. ------
    
    I've read that this seems to be a common error in cPanel...is there a fix?
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Look in /usr/local/lib/php.ini for a line like this:

    Code:
    extension=php_zip.dll
    The exact line may vary, but it will look something like that. Comment it out:

    Code:
    # extension=php_zip.dll
    Save the change and try again. The error message should no longer be sent.

    DLL files are for Windows and should not be referenced in the php.ini file on a Linux/Unix server. This directive either does not exist or is commented by default when EasyApache builds PHP.
     
  3. itzhero

    itzhero Active Member

    Joined:
    Nov 16, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    In php.ini I now have commented out the dll:

    Code:
    extension="zip.so"
    ;extension=php_zip.dll
    However, the server is still sending out the error message. "PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_zip.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/php_zip.dll: cannot open shared object file: No such file or directory in Unknown on line 0" no longer appears, but the first error message:
    Code:
    PHP Warning:  Module 'zip' already loaded in Unknown on line 0
    still returns.
     
  4. sirdopes

    sirdopes Well-Known Member
    PartnerNOC

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Do you have a php.ini in your public_html folder? It is still reading a php.ini with a bad entry somewhere on your server.
     
  5. itzhero

    itzhero Active Member

    Joined:
    Nov 16, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    No I do not. All php files run without this error, except this one.
     
Loading...

Share This Page