• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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