Results 1 to 6 of 6
  1. #1

    Pipe Email to Clientexec in DA

    Hello,

    I would like to pipe email from [email protected] to my clientexec software.

    So I learned that I would have to forward incoming Email to the SupportPipe.php file.

    I tried to create the following forwarden in Direct Admin:
    /home/admin/domains/elcowebsolutions.nl/public_html/clientexec/SupportPipe.php
    When I try to create the forwarder, I get the following error:
    String contains an invalid email address
    So Direct Admin will only accept correct email adresses it seems. Is there any way to work around this error? Or another way i should pipe Email to the file?

    Thanks in advance,
    Elco van Berkel

  2. #2
    at first, i suggest you to edit the root you write....( security reasons )

    /
    did you put ths first character | ?

    |/home/siteuser/public_html/clientexec_folder/SupportPipe.php
    http://www.empresasdehosting.com
    THE WEB HOSTING INDEX IN SPANISH
    http://www.empresasdehosting.net
    THE WEB HOSTING DIRECTORY IN SPANISH

  3. #3
    Join Date
    May 2004
    Posts
    267
    I had this set up when I used ClientExec, there was a few problems where I had to change the path to php. But at the moment you havn't reached those yet.

    In DirectAdmin you must place " " marks around the forwarder so it knows it is being piped to a script.

    Example:

    "|/home/siteuser/public_html/clientexec_folder/SupportPipe.php"

    Adam

  4. #4
    Oke, so I got the forwarder enabled. I forgot the ".."

    Now I cannot seem to find the correct path to the php file.

    Paths I've tried:
    "|/home/user/domains/domain.nl/public_html/clientexec/SupportPipe.php"
    "|/usr/bin/php -q /home/user/domains/domain.nl/public_html/clientexec/SupportPipe.php" (got this from CE website)
    "|/usr/local/bin/php -q /home/user/domains/domain.nl/public_html/clientexec/SupportPipe.php" (got this from CE website too).
    Now, all of these don't seem to work. Has anybody got an idea of how I can get this piece of nice software working? Does anybody have the correct path?

    I had this set up when I used ClientExec, there was a few problems where I had to change the path to php. But at the moment you havn't reached those yet.
    So you've had these problems finding the .php too? What was your solution to the problem?

    P.S. the file is correctly CHMOD, it has 755 permissions.
    Last edited by Elco Web Solution; 05-19-2005 at 05:20 PM.

  5. #5
    Join Date
    May 2004
    Posts
    267
    Originally posted by Elco Web Solution
    So you've had these problems finding the .php too? What was your solution to the problem?

    P.S. the file is correctly CHMOD, it has 755 permissions.
    Open SupportPipe.php in a text editor, e.g. notepad. The top line, which currently says:

    Code:
    #!/usr/bin/php -q
    Needs to be replaced with:

    Code:
    #!/path/to/php
    Which if your using DirectAdmin would be #!/usr/local/bin/php



    Adam

  6. #6
    Well... it finds the file now.

    But now I get a bunch of error reports, like

    Warning: main(classes/troubleticket.php): failed to open stream: No such file or directory
    Did you get this problem too?

    Also it says

    (include_path='.:/usr/local/lib/php')
    Which is failed. Maybe this is the main error?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •