notredamon
10-17-2004, 07:42 PM
I am trying to run a script on my server that uses both .cgi and .html extensions. But when I try to run it in the main directory, I get won't run the .cgi files properly. When I put it in the cgi-bin, it won't run the .html files properly. Is there anything I can do to resolve this?
Sheps
10-17-2004, 08:46 PM
Stupid questions, have you chmod'd the files correctly?
Also, if that doesn't work. Put it into a folder for itself. chmod the cgi files, and make a file called .htaccess
In it put:
Options +ExecCGI
FYI, all CGI files should be chmod'd 755
notredamon
10-17-2004, 10:31 PM
I have everything chmod'd correctly, and I already have everything inside of a folder in cgi-bin. I already have an .htaccess file which contains the password to get into the script that I'm trying to set up... I still have no idea what else I could do.
Website Rob
10-19-2004, 01:05 AM
As you've already discovered, you cannot run .cgi scripts outside the cgi-bin directory and you cannot run .html files within it. So what you need to do is put your HTML files in your main directory. In the .cgi script you need to make sure the path to the HTML files is correct.
If that doesn't work you would need to describe in more detail the exact nature of how the .cgi script is using or calling, the .html files.