Shag
01-02-2008, 08:11 PM
I am in the process of moving a site over to bluehost, and have run into some problems. I'm hoping some of the experts here can help me out...
1. It appears that bluehost does not allow execution of .cgi scripts outside of the cgi-bin directory. Is that true?
2. I'm having trouble embedding a .cgi file into my .htm file. On my other host, I use a php include without issue: <? include("/cgi-bin/script.cgi"); ?>. Unfortunately, this does not work at bluehost - I get a php error on this line. It appears that the .cgi script is being interpreted as a php page, rather than a perl script, despite the perl declaration in the .cgi file.
I use this include method for a number of other .htm files, and it works fine - it only seems to fail when I attempt to include a .cgi file. I don't want to change my pages to .shtml for SSI, and I don't believe I can add .htm files to the SSI-interpreted files, as I have them designated to use php for these includes.
Anybody have any suggestions? Any idea why this would work on one host but not bluehost?
1. It appears that bluehost does not allow execution of .cgi scripts outside of the cgi-bin directory. Is that true?
2. I'm having trouble embedding a .cgi file into my .htm file. On my other host, I use a php include without issue: <? include("/cgi-bin/script.cgi"); ?>. Unfortunately, this does not work at bluehost - I get a php error on this line. It appears that the .cgi script is being interpreted as a php page, rather than a perl script, despite the perl declaration in the .cgi file.
I use this include method for a number of other .htm files, and it works fine - it only seems to fail when I attempt to include a .cgi file. I don't want to change my pages to .shtml for SSI, and I don't believe I can add .htm files to the SSI-interpreted files, as I have them designated to use php for these includes.
Anybody have any suggestions? Any idea why this would work on one host but not bluehost?