Set a cron with curl using PHP7.1 on CWP PRO

Started by changlee, March 27, 2020, 03:33:06 PM

Previous topic - Next topic

changlee

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

ejsolutions

The basics again.  ::)
From root terminal:
cd /home/domain_username
sudo -u domain_username "commands to run"

Sandeep

for this you need to enable shell access for the user first

changlee

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

Sandeep

you can login as user and use curl normally

via "curl" command

eg.

curl -il google.com

changlee

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