• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

CRON with htaccess

M

MarcAllain

Guest
Hi,
I'm working on a virtual server with Plesk Panel 10.

My website is protected with HTACCESS
I would like to execute scripts through this protection. I've made a test script witch just increase an integer in my mysql database (just to test the CRON).

This is how I've made it :

Min: */1
Hour: *
Day: *
Month: *
DOW: *

and for the script, I've tried several ways, but none of them works !

CURL -u login:pass http://www.sigma-i.fr/httpdocs/[...]/test.php
CURL -u login:pass /var/www/vhosts/sigma-i.fr/httpdocs/[...]/test.php
PHP -u login:pass /var/www/vhosts/sigma-i.fr/httpdocs/[...]/test.php
...

Is there anybody here that succeded in such operation ?
Thanks for help !
 
Thanks Faris for your post.

I've made a mistake in my post, I tried this :
CURL -u login:pass http://www.sigma-i.fr/[...]/test.php

But no way to make it work ! As if it doesn't understand the security parameters ...
 
Back
Top