Page 1 of 1

Problems with mod_perl

PostPosted: 30. January 2011 06:05
by Bruno2011
All my .cgi and .pl scripts works fine with xampp 1.7.3
because I can setup xampp to disable mod_perl.

I can`t disable mod_perl in the new verison 1.7.4 of xampp,
son every time I try to use my scripts, it comes with following error:
Can't locate konfiguration.dat in @INC (@INC contains: blah blah blah blah blah

In my script, I have the following line:
require "konfiguration.dat";

What should I do ?

Re: Problems with mod_perl

PostPosted: 30. January 2011 07:01
by Sharley
Bruno2011 wrote:I can`t disable mod_perl in the new verison 1.7.4 of xampp...
...what should I do?
Take a big stick and give 1.7.4 a good whacking. :D


Yes, 1.7.3 setup_xampp.bat file made life a lot easier.

Open \xampp\apache\conf\httpd.conf file in your text editor and look for this line
Code: Select all
# Perl settings
Include "conf/extra/httpd-perl.conf"
Change it by adding the comment out character
Code: Select all
# Perl settings
# Include "conf/extra/httpd-perl.conf"
Save the file and restart Apache.
Check that your text editor saves the file with the .conf ext not a .txt extension as is common with Windows notepad.

Now it should be disabled.

Make sure that your script's first line (shebang) is the full path to perl for example
Code: Select all
#!"C:\xampp\perl\bin\perl.exe"


Good luck and best wishes.