Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: changlee on March 27, 2020, 03:33:06 PM

Title: Set a cron with curl using PHP7.1 on CWP PRO
Post by: changlee 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?
Title: Re: Set a cron with curl using PHP7.1 on CWP PRO
Post by: ejsolutions 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"
Title: Re: Set a cron with curl using PHP7.1 on CWP PRO
Post by: Sandeep on March 28, 2020, 08:33:00 AM
for this you need to enable shell access for the user first
Title: Re: Set a cron with curl using PHP7.1 on CWP PRO
Post by: changlee 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?
Title: Re: Set a cron with curl using PHP7.1 on CWP PRO
Post by: Sandeep 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
Title: Re: Set a cron with curl using PHP7.1 on CWP PRO
Post by: changlee 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?