On Test13, not working
As you can see from below I'm piping to, which is automatically generated by Cpanel 11 when I enter "public_html/domainfile/helpdesk/api/pipe.php" into the pipe to "field" on a shared unix host. I have the latest version OSTicket and my pipe.php file as at the top
#!/usr/bin/php -q
<?php
/*************************************************
The wikki says to insert "|/usr/bin/php -q /path/to/api/pipe.php" for CPanel 11" but that does not make sense to me seeing it is in the top of pipe.php and CPanel 11 on a shared host puts the "home" info in for you which Knocks the path off.
Based on what I have read on this topic I should be working. I have the pipe.php permissions set 764 and I have the piping enabled on the admin panel.
But I get this error:
The following text was generated during the delivery attempt:
------ pipe to |/home/username/public_html/domainfile/helpdesk/api/pipe.php
generated by sales@domainname.com ------
Error in argument 1, char 3: option not found
Usage: php
php
-a Run interactively
-b | Bind Path for external FASTCGI Server mode
-C Do not chdir to the script's directory
-c | Look for php.ini file in this directory
-n No php.ini file will be used
-d foo Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f Parse . Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z Load Zend extension .
-T Measure execution time of script repeated times.
Any ideas would be great. Thanks for any help!
PS this is what my hosting company says about piping:
When piping to a program, you should enter a path relative to your home directory. If the script requires an interpreter such as perl or php, you should omit the "/usr/bin/perl, or /usr/bin/php portion." Make sure that your script is executable and has the appropriate Hashbang at the top of the script. If you do not know how to add the Hashbang, just make sure to name your script file with the correct extension and you will be prompted to have the Hashbang added automatically.