I have a shared web hosting. The hosting service provider has set up a cron job to run a script.
The shared web hosting has a "cgi-local" directory for scripts (instead of a "cgi-bin").
According to the web hosting documentation the script must be inside the "cgi-local" directory to work (if I'm reading the documentation right).
The documentation says to create a file with the following lines:
#!/bin/sh
/u/web/userid/cgi-local/script1.pl
then name the file "cron.sh", and then install the "cron.sh" file inside the "cgi-local" directory folder. I've done all of that.
There is only one problem, though. I have a PHP script, not a Perl script. My PHP script works fine outside of the cgi-local directory. But when I put the PHP script inside the cgi-local directory I get a server 500 error message.
I have a couple of questions: 1). Is a PHP script supposed to work inside a "cgi-local" directory? and 2). If so, what do I need to do to get the PHP script to work inside the "cgi-local" directory.
Thanks.