PDA

View Full Version : .html .cgi



Takuhari
August 30th, 2007, 11:29 PM
I have to make a submit button for a form...
I already have the button and called the action as "form.cgi"
but all this does it print the txt of the cgi file and it doesnt process it...

Does anyone have any ideas?

Mirrorball
August 31st, 2007, 12:19 AM
Is the cgi module enabled?
Is the cgi file executable?
Is cgi enabled in this directory?

Takuhari
August 31st, 2007, 12:46 AM
I have no idea... im really new at this...
al i know is that i click the submit botton, it brings up my cgi file in text format...

do i have to have it enabled in the server....
for test reasons, i am running it in my laptop through apache2

Mirrorball
August 31st, 2007, 01:18 AM
For a start, check if the file cgi.load is in /etc/apache2/mods-enabled. If it's not, run:

cd /etc/apache2/mods-enabled && ln -s /etc/apache2/mods-available/cgi.load .
Restart Apache and try again with the form.