UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  eUKhost's Official Web Hosting Forum > Technical Support > cPanel Shared Hosting

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 29-11-2008, 13:58
new member
 
Join Date: Nov 2008
Posts: 5
Default email forward, pipe to php script, how to setup ?

Hi

Trying to set up an email forward to a simple php script, keep getting the email bounced.

Script has been put in my root, with a permissions set to 755.

The script does very little, and has

#!/usr/bin/php -q

as the first line.

Error message gives me returns.

"pipe to |/home/matthewt/SCRIPT.php"

I notice that /usr/bin/php or usr/local/bin/php is missing wondered if thats the problem, but how to add it as the cPanelX gui suggests it isn't required ?

Thanks for any help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 29-11-2008, 15:11
new member
 
Join Date: Nov 2008
Posts: 5
Default bit more...

Found that the php script is executing (once I introduced an error - I got the scripting error returned). So its all setup, great.

Don't understand why I keep getting "Mail delivery failed: returning message to sender" when the script runs ok, seems ithe pipe is reporting it as an mail delivery error ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 29-11-2008, 15:18
Chief Technical Officer(eUKhost.com)
 
Join Date: Jun 2007
Posts: 311
Default

Hello,

I would request you to open a ticket with our support department. We will get it fixed for you.
You can simply email us support [@] eukhost.com

Regards,
Nick J.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 29-11-2008, 15:53
new member
 
Join Date: Nov 2008
Posts: 5
Default

Cheers, just managed to sort it myself, after lots of head scatching.

Seems the its very sensitive to the formatting of the script and having a return in there. Followed the instructions on evolt.org.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 18-01-2010, 06:03
new member
 
Join Date: Jan 2010
Posts: 1
Default Problem solved

My solution to this problem:
There should be no extraneous line breaks or spaces between "#!/usr/bin/php -q" and "<?php"

That is,
First line in the script: #!/usr/bin/php -q
Second line, without spaces, open the PHP-tag: <?php

Voila
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 01:24.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
UK Web Hosting by eUKHosting 3.1.0
UK Web Hosting by eUKHosting 3.1.0
Copyright © 2001-2012, eUKhost LTD. All rights reserved.

 


UK VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

VoIP Dedicated Servers
Asterisk, Trixbox Dedicated Servers

Business Web Hosting
100% uptime Hosting

UK Cpanel Hosting
cPanel Shared Hosting

Domain Hosting
Cheap Domains & Hosting Plans

UK Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting
 
 

Android and Apple App


knowledgebase articles
eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting

 

Web Hosting Affiliate Program
 

popular blog categories

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles