Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    30

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

    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. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

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

    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.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Member
    Join Date
    Nov 2008
    Posts
    30

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

    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. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2007
    Posts
    139

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

    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. #5
    Member
    Join Date
    Nov 2008
    Posts
    30

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

    No I do not. All php files run without this error, except this one.

Similar Threads & Tags
Similar threads

  1. Replies: 4
    Last Post: 05-10-2012, 01:03 PM
  2. Replies: 1
    Last Post: 10-13-2010, 05:43 PM
  3. piping works but creates a mail undeliverable message
    By betoranaldi in forum E-mail Discussions
    Replies: 2
    Last Post: 12-26-2008, 11:30 AM
  4. Email pipe works | Sender still gets error message
    By nybble in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 11-23-2004, 01:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube