Cron and php
-
I'm trying to run a php script with cron. The system log says it runs fine, but it isnt actually running. I logged into the router and ran the command on the command line using putty and recieved the following error:
You must enter valid credentials to access this resource.
Not sure where to go, I am logged in as root, i am using 1.2.3release nano, but enabled rw on the file system prior to running the command (using /etc/rc.conf_mount_rw). My command line is /usr/local/bin/php -q /usr/local/www/scriptname.php
Any ideas? The script runs just fine if I run it though a browser, it only when I try to run it local i get the error.
Thanks.
-
apparently no wget in pfsense, so i tried fetch, but can get it to submit a user/password, otherwise it would probably work?
-
Try it this way:
fetch http://username:password@127.0.0.1/scriptname.php
-
pefect, thanks!