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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email Piping php has errors

Discussion in 'General Discussion' started by brooks_hunt, Mar 13, 2018.

  1. brooks_hunt

    brooks_hunt Member

    Joined:
    Jan 14, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm using a php script for email piping. If I run the script via shell it says:

    : cannot open shared object file: No such file or directory

    At the top of my script I'm using #!/usr/local/bin/php -z (if I use -q it doesn't work)

    It still runs the script but bounces the email with Mail delivery failed: returning message to sender

    Spent several hours trying to figure out if I'm missing a PHP extension.
    PHP Version: 5.6
    Server: CENTOS 7.4 virtuozzo
    Cpanel Version: 70.0.18
    SSH2: libssh2-1.4.3-10.el7_2.1.x86_64
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Is that the full error output? What specific command are you using to test the PHP script?

    Thank you.
     
  3. brooks_hunt

    brooks_hunt Member

    Joined:
    Jan 14, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    The output error is:
    : cannot open shared object file: No such file or directory only
    if I type in the command line /home/username/public_html/file.php

    If I use php -f /home/username/public_html/file.php no errors show. But my problem is it keeps bouncing via email piping. Even if my script is blank, I get the same error, so I know it isn't the script but a server issue.
    It runs the script but also bounces this message:


    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/username/public_html/file.php

    generated by test@domain.tld


    The following text was generated during the delivery attempt:


    ------ pipe to |/home/username/public_html/file.php

    generated by [EMAIL='test@domain.tld]test@domain.tld[/EMAIL] ------


    Failed loading

    :

    : cannot open shared object file: No such file or directory
     
    #3 brooks_hunt, Mar 13, 2018
    Last edited by a moderator: Mar 13, 2018
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,247
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page