W
W
WebforSelf2021-09-24 18:28:01
linux
WebforSelf, 2021-09-24 18:28:01

How to configure php file execution cron?

In general, such a story, there was a site on the server and the task was to update the crown. Then the hoster fell and then said that the servers had died and rolled back the backup half a year ago which.

To a new server, new software, etc.

On the old server, cron tasks looked like this

30 0 * * * /usr/bin/lynx -dump -auth=admin:admin -source https://site.ru/simpla/import.php > /dev/null 2>&1; /usr/bin/lynx -dump -auth=admin:admin -source https://site.ru/simpla/import1.php > /dev/null; /usr/bin/lynx -dump -auth=admin:admin -source https://site.ru/simpla/ajax/import.php > /dev/null;


Where admin and admin , this is the login password to the admin panel where the files are located.

because everything is password protected.

On the new server added these tasks, but they are not executed. How do I generally set up cron on a new server, and check if the task is running, for example, through the Linux console?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Volkov, 2021-09-24
@voleg4u

lynx is such a text browser. It is not necessary. Use curl. It supports authentication and other goodies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question