• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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