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.

  • 177 Users Found This Useful
Was this answer helpful?

Related Articles

How do I test Python to make sure it is working for my account?

The following will allow you to create a test script to ensure Python is working on your account...

How do I parse PHP in HTML pages?

If you wish parse PHP in your HTML pages you need to add the following line you the .htaccess...

How do I use the Ioncube loaders?

The Ioncube loaders are installed and ready for use so you don't need to do anything to use them.

Is PHP ran as an Apache module or as CGI?

We run suPHP on our servers, so PHP is running as CGI.

Can I run PHP scripts anywhere on my web space?

You can run PHP scripts anywhere on your web space with the exception of the "cgi-bin".