Why do I get Permission Denied errors when using wget, lynx or GET via cron?

We have security measures in place to restrict access to these applications due to their use in remote third party attacks associated with any vunerable scripts in use on our server.

When running a script via cron, it is recommended that clients use the following syntax in their command:

Perl / CGI Scripts:

perl /home/username/path/to/script.cgi

PHP Scripts:

/usr/local/bin/php -q /home/username/path/to/script.php

In the above commands substitute the path for the correct path to the script you wish to execute.

  • 168 Users Found This Useful
Was this answer helpful?

Related Articles

How can I check whether a script available on the internet is insecure?

Using scripts in your account that are insecure (vulnerabilities unpatched) is very dangerous....

General SSI Information

SSI (Server Side Include) tags allow you to include dynamic content in standard HTML pages. All...

What is a CGI?

Common Gateway Interface or CGI is a specification which allows Web users to run programs on your...

What is PHP's open_basedir restriction?

We have a security measure in place in PHP on all servers called "open_basedir". This is where...

Do you know of any PHP resources?

An excellent resource for users of PHP is http://www.devshed.com/c/b/php/ They also have a nice...