Re: [expert] mod_perl scripts.
You have to enable perl in the Apache config file I suppose (/etc/httpd/conf/httpd.conf or something similar) If you search the config-file for 'perl', you should find some more information and example-config that is commented. Steven On Mon, 2003-06-02 at 22:31, Frankie wrote: Hi guys I have been trying to get mod_perl working on a default 9.0 box.. with the standard config.. this doesn't work: http://localhost/perl/mod_perl-testscript.pl but this does: http://localhost:8200/perl/mod_perl-testscript.pl From what I can gather, normal apache is supposed to detect that its supposed to redirect to 8200 for scripts in /cgi-perl or /perl directories.. but it isn't working.. am I supposed to set that up? regards Franki __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [expert] mod_perl scripts.
You have to enable perl in the Apache config file I suppose (/etc/httpd/conf/httpd.conf or something similar) If you search the config-file for 'perl', you should find some more information and example-config that is commented. Steven yeah, I know... a long search revealed that PERLPROXIED most be enabled in the init script So i took a look and found this (in /etc/rc.d/init.d/httpd): #If both servers are installed, perl runs as a proxy #and has no extra modules if [ -x /usr/sbin/httpd -a -x /usr/sbin/httpd-perl ]; then DEFINE=-DPERLPROXIED PERLXMODS= fi PERLFILE=-f /etc/httpd/conf/httpd-perl.conf ### which seems to be testing to make sure http-perl and http are there.. they both are... and if they are, to define PERLPROXIED So that appears to be correct. Then in httpd.conf I see this: IfDefine PERLPROXIED RewriteEngine on RewriteRule ^proxy:.* - [F] RewriteRule ^(.*\/perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P] RewriteRule ^(.*\/cgi-perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P] /IfDefine Which appears to do the rewritting to port 8200 that calls to /perl or /cgi-perl are supposed to do. Since I know that mod perl is working fine when I specify port 8200 manually.. the problem would have to be the rewritting.. but it all seems right.. so I am at something of a loss here.. hense my question here.. regards Franki Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
RE: [expert] mod_perl scripts.
A quick look into my system: /etc/httpd/conf/httpd2.conf /etc/httpd/conf/httpd2-perl.conf And a lot of occurences of 'perl' in /etc/init.d/httpd Are the paths and prefixes in the config-files correct ? Do you get any error-messages in /var/log/httpd (or /etc/httpd/logs) when you restart apache ? Steven On Mon, 2003-06-02 at 23:03, Frankie wrote: You have to enable perl in the Apache config file I suppose (/etc/httpd/conf/httpd.conf or something similar) If you search the config-file for 'perl', you should find some more information and example-config that is commented. Steven yeah, I know... a long search revealed that PERLPROXIED most be enabled in the init script So i took a look and found this (in /etc/rc.d/init.d/httpd): #If both servers are installed, perl runs as a proxy #and has no extra modules if [ -x /usr/sbin/httpd -a -x /usr/sbin/httpd-perl ]; then DEFINE=-DPERLPROXIED PERLXMODS= fi PERLFILE=-f /etc/httpd/conf/httpd-perl.conf ### which seems to be testing to make sure http-perl and http are there.. they both are... and if they are, to define PERLPROXIED So that appears to be correct. Then in httpd.conf I see this: IfDefine PERLPROXIED RewriteEngine on RewriteRule ^proxy:.* - [F] RewriteRule ^(.*\/perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P] RewriteRule ^(.*\/cgi-perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P] /IfDefine Which appears to do the rewritting to port 8200 that calls to /perl or /cgi-perl are supposed to do. Since I know that mod perl is working fine when I specify port 8200 manually.. the problem would have to be the rewritting.. but it all seems right.. so I am at something of a loss here.. hense my question here.. regards Franki __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com