1

I need to call a php script via cron. The cron entry will use wget. When I attempt to call the script from a command line, I get "Authorization Required", which is obviously coming from my htaccess file.

Does anyone know how I can override the htaccess file for a single directory?

1 Answers1

1

You can use the Satisfy directive inside a Directory container or in your .htaccess file to override the authentication requirement.

If your PHP script doesn't need the environment of a full web server, it would be far easier, more secure and would produce less overhead to just execute the script with the PHP command-line interpreter.

joschi
  • 21,387
  • 3
  • 47
  • 50
  • Joschi, thanks for the help and the point in the right direction. Because of the framework of the site, the path to the script isn't really an option. I'd agree with you about the security though. I'll see what I can learn from the links you gave. –  Oct 03 '10 at 07:07
  • You're a life saver, Joschi. It worked. Thanks a bunch! –  Oct 03 '10 at 07:10