Gossamer Forum
Home : General : Perl Programming :

mod_perl and httpd.include

Quote Reply
mod_perl and httpd.include
Hello,

I changed to new server & I have this file.
It says it has mod_perl, but how can I add the startup of my linksql here.
I can't get my linksql running under mod_perl here.


here the file:

<IfModule mod_ssl.c>
<VirtualHost 217.115.202.212:443>
ServerName ridesworld.nl:443
ServerAlias www.ridesworld.nl
UseCanonicalName Off
<IfModule mod_suexec.c>
SuexecUserGroup ridesworld psacln
</IfModule>
DocumentRoot /home/httpd/vhosts/ridesworld.nl/httpsdocs
CustomLog /home/httpd/vhosts/ridesworld.nl/statistics/logs/access_ssl_log combined
ErrorLog /home/httpd/vhosts/ridesworld.nl/statistics/logs/error_ssl_log
<IfModule mod_userdir.c>
UserDir /home/httpd/vhosts/ridesworld.nl/web_users
</IfModule>
ScriptAlias /cgi-bin/ /home/httpd/vhosts/ridesworld.nl/cgi-bin/
Alias /webstat /home/httpd/vhosts/ridesworld.nl/statistics/webstat/
Alias /webstat-ssl /home/httpd/vhosts/ridesworld.nl/statistics/webstat-ssl/
Alias /ftpstat /home/httpd/vhosts/ridesworld.nl/statistics/ftpstat/
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/certX0Lp6mC
<Directory /home/httpd/vhosts/ridesworld.nl/httpsdocs>
<IfModule mod_perl.c>
<Files ~ (\.cgi$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_perl.c>
<Files ~ (\.asp$)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/ridesworld.nl/httpsdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
Alias "/error_docs" "/home/httpd/vhosts/ridesworld.nl/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
</VirtualHost>
</IfModule>
<VirtualHost 217.115.202.212:80>
ServerName ridesworld.nl:80
ServerAlias www.ridesworld.nl
UseCanonicalName Off
SuexecUserGroup ridesworld psacln
DocumentRoot /home/httpd/vhosts/ridesworld.nl/httpdocs
CustomLog /home/httpd/vhosts/ridesworld.nl/statistics/logs/access_log combined
ErrorLog /home/httpd/vhosts/ridesworld.nl/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /home/httpd/vhosts/ridesworld.nl/web_users
</IfModule>
ScriptAlias /cgi-bin/ /home/httpd/vhosts/ridesworld.nl/cgi-bin/
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /home/httpd/vhosts/ridesworld.nl/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.cgi$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_perl.c>
<Files ~ (\.asp$)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/ridesworld.nl/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
Options +Includes +ExecCGI
</Directory>
Alias "/error_docs" "/home/httpd/vhosts/ridesworld.nl/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
Include /home/httpd/vhosts/ridesworld.nl/conf/vhost.conf
</VirtualHost>
Quote Reply
Re: [ridesworld] mod_perl and httpd.include In reply to
Hi,

It looks like it should work assuming mod_perl is enabled. Try commenting out:

<IfModule mod_perl.c>
...
</IfModule>

and do an apache config test. If it fails, then you'll need to look at your apache server startup scripts and see what controls loading the mod_perl module.

Cheers,

Alex
--
Gossamer Threads Inc.