Page 1 of 1

XAMPP-USB-LITE 1.7.7 CGI Deactived.

PostPosted: 14. October 2011 15:20
by atalucas
Hi,
I installed on Monday XAMPP lite. I program something easy in python like print the HTML with some get forms. And it works. but when I use a function from another folder I get a 500 error with Premature end of script headers. Later, I realise that the status of xammp says:

Common Gateway Interface (CGI) Deactivated.

The rest is activated.

I read something that for using Perl yo need more things.

could someone help me?

Thanks in advance.

Re: XAMPP-USB-LITE 1.7.7 CGI Deactived.

PostPosted: 14. October 2011 21:36
by Sharley
What Windows version are you using:
Please read the following Announcements.
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670

Did you install this version to a portable USB device or to your hard drive?
If to the hard drive did you run the setup_xampp.bat file or did you install it without using the bat file, to simulate a USB portable device perhaps?

atalucas wrote:I get a 500 error with Premature end of script headers
Read the \xampp\apache\logs\error.log file for 500 errors.

Did you change the first line of your cgi (Perl) scripts. the shebang to point to your perl.exe file in XAMPP?
For example:
#!"\xampplite\perl\bin\perl.exe"
Change the path to suit your installation

atalucas wrote:Later, I realise that the status of xammp says:

Common Gateway Interface (CGI) Deactivated.
CGI is Activated by default in the version you are using.

Did you test the cgi scripts in \xampplite\cgi-bin folder (there are 3 test scripts) for example:
http://localhost/cgi-bin/perltest.cgi

There is only a mini-perl in the lite version.

Unless you absolutely need the lite version then use the full featured version instead. ;)