Answer the question
In order to leave comments, you need to log in
Setting up CRON when running a script with authorization?
Good afternoon!
I can't solve this problem. There is a script that is in the public part of the site. You need to run it as a scheduler once a month.
The folder where the script is located has Apache authorization, so the script is not executed.
If you move the script above - wget does not work.
What is the best way to do it in this case?
Answer the question
In order to leave comments, you need to log in
Take a step back and ask yourself: why do you need wget, http and Apache for cron at all?
Call the script itself from the console.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question