Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

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

  1. itzhero

    itzhero Active Member

    Joined:
    Nov 16, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    56
    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

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    20
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. itzhero

    itzhero Active Member

    Joined:
    Nov 16, 2008
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    56
    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:
    66
    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:
    56
    No I do not. All php files run without this error, except this one.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice