I have a question I know how to set crons but I set up a new site on a new server and when they are ran and they do the error reporting to my email it says. "Permission Denied" I have never had this problem before and it has got me mad because I know it shouldn't be doing that. I know it is not my code and its connected to the database correctly. But I asked someone else about it all they said was ask the host. Anyone got an answer to the problem please?
When the error is reporting it says "Permission Denied" it is when the script is being ran. But I know it is not the script because when I replace the script with one that I know for a fact works I get the same error.
Sorry about grammar I am not too great with punctuation.
It is not the script though, When I replace the script with another script that I know for a fact works I get the same error. Like I stated above...
I read what you said, I'm just not convinced that the script works on the server you are running it on. Overconfidence that a certain area is not the problem, especially when other pointers say it is, is a bad thing.
Originally Posted by KingOfTheSouth
I am sure I can but I am not too sure how to do that. I am not new to crons I just do not know much about them besides just setting them for automatic update.
If the script you are running is above the webroot just type in the URL to the script. Otherwise move it above the webroot and test it.
The Following User Says Thank You to Village Idiot For This Useful Post:
I could do with knowing more about the script and the environment in which it is to be executed. If its a permissions problem it shouldn't be fabulously difficult to resolve, however it may be an assortment of things.
How did you set the cron? Is the user used to set the cron in the cron group (assuming your on *nix)? What file permissions has the file got? Can it be run manually?
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)