I installed XAMPP the normal way (wget the file, then untar it to /opt/lampp), and then modified /opt/lampp/etc/httpd.conf to add the following statement:
- Code: Select all
PerlSwitches -I/home/webitext/src/WeBiText
where /home/webitext/src/WeBiText is a directory where my CGI application's libraries are located (and the directory exists). I put that statement
right under the 'Listen 80' statement.
When I do /opt/lampp startapache, I get:
- Code: Select all
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/
If I put the PerlSwitches line in comment and try again to start Apache, it works, and I am able to load the cgi-bin/printenv script. When I inspect the output of that script, I don't see an ENV variable for MOD_PERL, which I believe is an indication that the script is running in mod_cgi, not in mod_perl.
Next, I tried putting this line under the 'Listen 80'
- Code: Select all
LoadModule perl_module modules/mod_perl.so
When I stop apache and restart it, I get error
- Code: Select all
XAMPP: Stopping Apache with SSL...
httpd: Syntax error on line 55 of /opt/lampp/etc/httpd.conf: Cannot load modules/mod_perl.so into server:
/opt/lampp/modules/mod_perl.so: undefined symbol: ap_log_rerror
Any suggestions for how to solve this problem would be greatly appreciated.
Best regards,
Alain Désilets