All posts
Engineering 1 min read

Extension '/path/script.php' not present

I worked on a cronjob today and logged the output, which was just the title of this post: Extension ’/path/script.php’ not present Now in cron, the script is called directly, with the usual shebang line at the top of the script, so the call in cron does not include a “php” in front of it. Never had much of a problem with that. After some searching I came across that it might be a problem with newlines being in DOS format on the Linux server. This one ran Ubuntu (Debian) which made the problem come out.

The utility dos2unix solves the matter rather efficiently. To compile, gettext needs to be installed, other than that, it was smooth sailing and the problem has been solved.