I've never before written a PHP script to run on my home Ubuntu
machine (though I've written dozens of PHP cron jobs for my web
server), so I thought I'd start off with a very simple test:
#!/usr/share/php5
<?php
echo "hello";
?>
In a terminal window, I try to execute this, and I get a "bad
interperter" error:
lkrubner@progra mmerpc3:/$ /home/lkrubner/cron_jobs/
dailyBackupSpac eBunny.php
bash: /home/lkrubner/cron_jobs/dailyBackupSpac eBunny.php: /usr/share/
php5: bad interpreter: Permission denied
What does that mean?
The php5 interpreter in /usr/share/ has permissions set to 755. Any
script on the machine should be able to execute.
Comment