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 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 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 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 Share on other sites More sharing options...
ballhogjoni Posted February 7, 2008 Author Share Posted February 7, 2008 644 Quote Link to comment 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 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.