Bad interpreter: No such file or directory PHP

by GarciaPL on Friday 14 December 2012


I used to write some scripts in PHP which i was going to run on Linux. Unfortunately, I was faced with this small error :

Bad interpreter: No such file or directory

All you need to fix it is just run this command :

dos2unix /path/to/your/script.php


Reference :
[1] Fixing error bad interpreter cyprich.com