Forum Moderators: coopster & phranque

Message Too Old, No Replies

CGI script code

Shown, not executed.

         

specter

11:31 pm on Nov 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello,

I just bought my new web space and I uploaded my cgi script editing permissions and paths properly (script already ran on other server)but when I call it in my browser, it read and shows to me the code,just like a textpad, instead to execute it.
Someone could enlight me about why that happens?

Thanks in advance

Sincerely

physics

11:54 pm on Nov 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it in cgi-bin or another folder?

specter

11:55 pm on Nov 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is in the main folder.there is no cgi bin directory.

rtfm_again

12:37 am on Nov 7, 2006 (gmt 0)

10+ Year Member



Sounds like a httpd server issue. If they are running Apache you might be able to add an .htaccess file with the appropriate directives.

Options ExecCGI
Add Handler cgi-script .cgi

But I'd suggest contacting their tech support or looking for an FAQ about enabling perl scripts.

mikeyb

10:41 am on Nov 8, 2006 (gmt 0)

10+ Year Member



Just one thought (and I'm sure you've checked) but does your webs pace actually come with cgi/perl access?

Sounds obvious I know but I have come across this before where people have got the wrong type of hosting!