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 Quote 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 Quote 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 Quote 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? Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/89724-cron-problems/#findComment-461170 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.