Web Hosting Talk







View Full Version : Help with error message


techs4hire
07-29-2009, 10:25 PM
Hello im running cronjobs and i get this error in the e-mail cronjobs send

/usr/bin/php^M: bad interpreter: No such file or directory

what am i supposed to do about that? i dont understand it

foobic
07-29-2009, 11:17 PM
You're attempting to run a php file using a shebang line with a Dos/Windows line ending, ie. #!/usr/bin/php followed by the Dos-style \r\n line ending. You probably uploaded it from a Windows machine using ftp in binary mode.

Upload again in ascii mode, or run dos2unix on the file or edit it on the server and delete / replace the end character of that first line.

icyshout
07-29-2009, 11:35 PM
notepad ++ will also convert to unix format

techs4hire
07-29-2009, 11:48 PM
Thank you that was the issue i didnt have it in ASCII. Appreciate the help. :)