Re: (beginner) Win32 installation / "Writing Apache Modules in Perl& C"
On Mon, 19 Feb 2001, Garry Heaton wrote: > Ref: using Win 98 / Apache 1.3.14 on c:\program files\apache group\apache / > Perl 5.6 on c:\perl > > I'm trying to get a working Win32 installation of mod_perl using "Writing > Apache Modules with Perl and C" but, as with most O'Reilly Perl books, it's > written for a Unix audience. Apache site doesn't seem to have any Win32 > installation notes either. I have ApacheModulePerl.dll located in > Apache/modules but the book refers to other modules (Apache::Registry) which > come with "the mod_perl distribution". I only found the .dll with the Win32 > distribution so do I have to locate these other parts of the distribution > elsewhere? [ ... ] http://perl.apache.org/distributions.html contains links to how to install mod_perl via ActivePerl's ppm (Perl Package Manager), as well as some other Apache::* modules. For starting out on Win32 this route is probably the easiest, as everything you need to get started comes with the ppm distribution. After that, the docs at http://perl.apache.org/, especially the guide, and http://take23.org/ contain lots of resources to get you going. best regards, randy kobes
(beginner) Win32 installation / "Writing Apache Modules in Perl & C"
Ref: using Win 98 / Apache 1.3.14 on c:\program files\apache group\apache / Perl 5.6 on c:\perl I'm trying to get a working Win32 installation of mod_perl using "Writing Apache Modules with Perl and C" but, as with most O'Reilly Perl books, it's written for a Unix audience. Apache site doesn't seem to have any Win32 installation notes either. I have ApacheModulePerl.dll located in Apache/modules but the book refers to other modules (Apache::Registry) which come with "the mod_perl distribution". I only found the .dll with the Win32 distribution so do I have to locate these other parts of the distribution elsewhere? The book also refers to perl.conf on several occasions but I can't find any explanation as to where this is located and what relation this bears to httpd.conf which is where I thought all the configuration takes place. Finally, on p.27 the authors say I have to " ... copy the contents of the lib subdirectory into your Perl library tree." Which lib subdirectory and which Perl library tree? What do I copy from and to where? There isn't a lib directory in Apache root. Regards Garry
Apache::Language STORE needs a language
Problem solved: >I am using the latest version of Apache::Language >I noticed that the Apache::Language.pod says that the PlainFile format is: >phrase-id:lang-type > >While the PlainFile.pod says: >lang-tag:phrase-id > >The first one seems to work. > It works like Apache::Language::PlainFile describes: (lang-tag:phrase-id). > >Also I am getting the following error: >warn] [Apache::Language (111)] STORE needs a language specification to work >for each phrase looked up. > >After these messages I always get the dreaded: >child pid 12280 exit signal Segmentation fault (11) > My problems was that I did not have the negotiation_module loaded and Options +MultiViews specified in the httd.conf file.
Re: Help with configuration - Linux/Mandrake 7.2
If it doesn't use mod_perl, what *does* it do? Display the source? Give a 404? Perhpas you need to do "Alias /perl /var/www/perl" , with a slash. Officially, I loathe Apache configuration, so I often try to stay ignorant of its intricacies. =) [EMAIL PROTECTED] (Rich Feather) wrote: >I'm trying to get my Apache Web Server to read *.pl files using mod_perl >(standard Linux-Mandrake 7.2). Under perl, it works fine and, indeed, in >httpd-perl.conf, it shows > >Alias perl /var/www/perl > >SetHandler perl-script >PerlHandler Apache::Registry >PerlSendHeader On >Options ExecCGI -Indexes > > >Also, I've tried up the following > > >SetHandler perl-script >PerlHandler Apache::Registry >PerlSendHeader On >Options ExecCGI -Indexes > > >and/or > > >SetHandler perl-script >PerlHandler Apache::Registry >Options ExecCGI > > >Restarted after each change >/etc/rc.d/init.d/httpd restart > >but I cannot get the server to parse *.pl files using mod_perl. > >Any ideas? > >Thanks. > ------ Ken Williams Last Bastion of Euclidity [EMAIL PROTECTED]The Math Forum
Re: httpd takes 86 MB memory
Philip Mak wrote: > > Recently, my machine got an upgrade from 128 MB RAM to 386 MB RAM. > > The modperl enabled httpd process used to take up less than 10 MB each. > But now, after the memory upgrade it is suddenly taking up 86 MB. Here is > an excerpt from "top" (sorted by memory usage): > > PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND > 3746 tuxedo15 0 139M 128M 964 R 0 95.6 34.1 45:22 wusage > 7257 nobody 0 0 103M 86M 84944 S 0 0.0 22.9 0:00 httpd > 7253 nobody 0 0 102M 86M 85028 S 0 0.0 22.9 0:00 httpd > 7263 nobody 0 0 102M 86M 85032 S 0 0.3 22.9 0:00 httpd > > Does anyone have suggestions on how to find out the problem/fix it? > > The httpd.conf has not been modified in a month, and the memory upgrade > was done just three days ago. So, AFAIK the only thing on the machine that > has changed is the amount of RAM. Well, each process is only using a couple of MBs of real RAM. It looks like you're doing something in the parent process that's using up 85MB, so you should take a good look at your startup.pl. For info on interpreting the output of top: http://perl.apache.org/guide/performance.html#Measuring_the_Memory_of_the_Proc - Perrin
Re: Help with configuration - Linux/Mandrake 7.2
Yes. I've tried this, as well... No luck, though. On Sunday 18 February 2001 10:08, Jeff Beard wrote: > Maybe: > > > ... > > > I think there's some documentation on this issue as well. > > --Jeff > > On Sun, 18 Feb 2001, Rich Feather wrote: > > I'm trying to get my Apache Web Server to read *.pl files using mod_perl > > (standard Linux-Mandrake 7.2). Under perl, it works fine and, indeed, in > > httpd-perl.conf, it shows > > > > Alias perl /var/www/perl > > > > SetHandler perl-script > > PerlHandler Apache::Registry > > PerlSendHeader On > > Options ExecCGI -Indexes > > > > > > Also, I've tried up the following > > > > > > SetHandler perl-script > > PerlHandler Apache::Registry > > PerlSendHeader On > > Options ExecCGI -Indexes > > > > > > and/or > > > > > > SetHandler perl-script > > PerlHandler Apache::Registry > > Options ExecCGI > > > > > > Restarted after each change > > /etc/rc.d/init.d/httpd restart > > > > ...but I cannot get the server to parse *.pl files using mod_perl. > > > > Any ideas? > > > > Thanks. > > -- > Jeff Beard > ___ > Web: www.cyberxape.com > Email:jeff at cyberxape dot com > Earth:Boulder, CO, USA
Re: Help with configuration - Linux/Mandrake 7.2
Maybe: ... I think there's some documentation on this issue as well. --Jeff On Sun, 18 Feb 2001, Rich Feather wrote: > I'm trying to get my Apache Web Server to read *.pl files using mod_perl > (standard Linux-Mandrake 7.2). Under perl, it works fine and, indeed, in > httpd-perl.conf, it shows > > Alias perl /var/www/perl > > SetHandler perl-script > PerlHandler Apache::Registry > PerlSendHeader On > Options ExecCGI -Indexes > > > Also, I've tried up the following > > > SetHandler perl-script > PerlHandler Apache::Registry > PerlSendHeader On > Options ExecCGI -Indexes > > > and/or > > > SetHandler perl-script > PerlHandler Apache::Registry > Options ExecCGI > > > Restarted after each change > /etc/rc.d/init.d/httpd restart > > ...but I cannot get the server to parse *.pl files using mod_perl. > > Any ideas? > > Thanks. > -- Jeff Beard ___ Web:www.cyberxape.com Email: jeff at cyberxape dot com Earth: Boulder, CO, USA
Help with configuration - Linux/Mandrake 7.2
I'm trying to get my Apache Web Server to read *.pl files using mod_perl (standard Linux-Mandrake 7.2). Under perl, it works fine and, indeed, in httpd-perl.conf, it shows Alias perl /var/www/perl SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options ExecCGI -Indexes Also, I've tried up the following SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options ExecCGI -Indexes and/or SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI Restarted after each change /etc/rc.d/init.d/httpd restart ...but I cannot get the server to parse *.pl files using mod_perl. Any ideas? Thanks.
Re: httpd takes 86 MB memory
Hi Philip, That seems like too much memory per httpd. Does the memory usage grow overtime, or is it static? If it's static, then the BIG data structure(s) you're storing in RAM may need to go to disk. If it grows over time, maybe a data structure is unintentionally being treated as a global variable --- because the variable persists between requests the data structure may keep growing and growing. The solution may be to lexically declare the variable with 'my' so that it only survives for the scope in which it is declared. If there is no programming solution ... you can also set the MaxRequestsPerChild in httpd.conf so that after a certain number of requests the child dies and frees its memory. NIge Nigel Hamilton On Sun, 18 Feb 2001, Philip Mak wrote: > Recently, my machine got an upgrade from 128 MB RAM to 386 MB RAM. > > The modperl enabled httpd process used to take up less than 10 MB each. > But now, after the memory upgrade it is suddenly taking up 86 MB. Here is > an excerpt from "top" (sorted by memory usage): > > PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND > 3746 tuxedo15 0 139M 128M 964 R 0 95.6 34.1 45:22 wusage > 7257 nobody 0 0 103M 86M 84944 S 0 0.0 22.9 0:00 httpd > 7253 nobody 0 0 102M 86M 85028 S 0 0.0 22.9 0:00 httpd > 7263 nobody 0 0 102M 86M 85032 S 0 0.3 22.9 0:00 httpd > > Does anyone have suggestions on how to find out the problem/fix it? > > The httpd.conf has not been modified in a month, and the memory upgrade > was done just three days ago. So, AFAIK the only thing on the machine that > has changed is the amount of RAM. > > -Philip Mak ([EMAIL PROTECTED]) >