ballhogjoni Posted February 6, 2008 Share Posted February 6, 2008 Does anyone know why my cron is being denied? This is what I get in my email: /bin/sh: /home/xxxx/www/xxxxxxxxxxxx/xxxxxxxxx.php: Permission denied Link to comment https://forums.phpfreaks.com/topic/89724-cron-problems/ Share on other sites More sharing options...
trq Posted February 6, 2008 Share Posted February 6, 2008 Your trying to execute what would appear to be a php script using sh (shell). You need to place a shebang at the top of the php script. #!/usr/bin/php Link to comment https://forums.phpfreaks.com/topic/89724-cron-problems/#findComment-459832 Share on other sites More sharing options...
ballhogjoni Posted February 7, 2008 Author Share Posted February 7, 2008 Hi Thorpe, I am still getting the same message. this is what my code looks like: #!/usr/bin/php <?php //the rest of the code I also tried: #!/usr/bin/php -w <?php //the rest of the code Link to comment https://forums.phpfreaks.com/topic/89724-cron-problems/#findComment-460966 Share on other sites More sharing options...
trq Posted February 7, 2008 Share Posted February 7, 2008 What file permissons are on the php script? Link to comment https://forums.phpfreaks.com/topic/89724-cron-problems/#findComment-461032 Share on other sites More sharing options...
ballhogjoni Posted February 7, 2008 Author Share Posted February 7, 2008 644 Link to comment https://forums.phpfreaks.com/topic/89724-cron-problems/#findComment-461145 Share on other sites More sharing options...
steviewdr Posted February 7, 2008 Share Posted February 7, 2008 Make it 755. I.e. chmod 755 /home/xxxx/www/xxxxxxxxxxxx/xxxxxxxxx.php -steve Link to comment https://forums.phpfreaks.com/topic/89724-cron-problems/#findComment-461170 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.