Author Topic: Set a cron with curl using PHP7.1 on CWP PRO  (Read 6265 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Set a cron with curl using PHP7.1 on CWP PRO
« on: March 27, 2020, 03:33:06 PM »
Hello,
I have a VPS 2GB and have set the following cron to one account user:
curl -k https://www.mysite.com/module/...GenerateCronFeed=GenerateCronSkroutzFeed

I am using Apache with PHP-FPM and PHP7.1 selected.

How can I check if Curl is installed and works for that account please?
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com

Re: Set a cron with curl using PHP7.1 on CWP PRO
« Reply #1 on: March 27, 2020, 03:57:13 PM »
The basics again.  ::)
From root terminal:
cd /home/domain_username
sudo -u domain_username "commands to run"

Offline
*****
Re: Set a cron with curl using PHP7.1 on CWP PRO
« Reply #2 on: March 28, 2020, 08:33:00 AM »
for this you need to enable shell access for the user first

Offline
**
Re: Set a cron with curl using PHP7.1 on CWP PRO
« Reply #3 on: March 28, 2020, 08:44:59 AM »
I have root and shell access for the user also. So what's next for curl please?
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com

Offline
*****
Re: Set a cron with curl using PHP7.1 on CWP PRO
« Reply #4 on: March 29, 2020, 09:05:31 AM »
you can login as user and use curl normally

via "curl" command

eg.

curl -il google.com

Offline
**
Re: Set a cron with curl using PHP7.1 on CWP PRO
« Reply #5 on: March 31, 2020, 11:42:36 AM »
I have set a Cron job with Curl.

How can I check if Curl is installed and works for that account please?
You may use our FREE SMTP Newsletter APP at https://www.emailbat.com