Web Hosting Talk







View Full Version : Pipe Email to Clientexec in DA


Elco Web Solution
05-19-2005, 02:43 PM
Hello,

I would like to pipe email from support@elcowebsolutions.nl 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

empresasdehosting
05-19-2005, 03:49 PM
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

NE-Adam
05-19-2005, 04:13 PM
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. :stickout:

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

Elco Web Solution
05-19-2005, 05:16 PM
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.

NE-Adam
05-19-2005, 05:45 PM
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:

#!/usr/bin/php -q

Needs to be replaced with:

#!/path/to/php

Which if your using DirectAdmin would be #!/usr/local/bin/php

:)

Adam

Elco Web Solution
05-19-2005, 06:06 PM
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?