Re: [mp2] segfault when connect to database
Marc M. Adkins wrote: httpd2 2.0.47, mod_perl 1.99_09 -- httpd does segfault when I try to connect to the database (mysql or interbase). It faults somewhere in libnss_db.so. It works well if I remove libnss_db* from the system. I noticed a while back that when I use PostgreSQL/W2K/2.0.46/mp1.99_10 I get a segfault _when Apache shuts down_. I don't have it compiled such that I can do a backtrace. So it can't be fixed until we can see the backtrace and be able to reproduce it. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
PerlModule options?
Hi list, One questions for the braves ;-) As I understand, the directive PerlModule Foo::Bar loads the module but doesn't import the symbols since it is equivalent to the use Foo::Bar (). Therefore I should use use Foo::Bar in each program only to make the import. Is there other way to load the module and import the symobols specified in @EXPORT at mod_perl reloading time, without adding a special line in each and every script using them? Perhaps some options passed to PerlModule though adding (...) doesn't help since PerlModule expects a list of modules. Thanks a bunch, Lian Sebe, M.Sc. Freelance Analyst-Programmer www.programEz.net
Re: mod perl issues/ cpan won't make properly
Hello there, On Mon, 4 Aug 2003, Hodge, Jeff F (ECIII) wrote: Here's how I installed mod_perl/apache: cd apache_1.3.28 ./configure --enable-module=so cd mod_perl_1.28 I don't like the look of that. Please send *exactly* what you did. Have you got the mod_perl directory inside the apache directory? Your directories should be somethign like this: /dloads/apache_mod_perl/apache_1.3.28/ /dloads/apache_mod_perl/mod_perl-1.28/ perl Makefile.PL APACHE_SRC= /dloads/apache_mod_perl/apache_1.3.28/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/httpd_perl make make test make install What is the user that's running this? Don't do the first three steps as root, only do the 'make install' as root: % perl Makefile.PL APACHE_SRC= /dloads/apache_mod_perl/apache_1.3.28/src \ DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/httpd_perl % make % make test % su Password: # make install # exit % That backslash on the first line is important. If you've done everything as root and if you have the mod_perl directory inside the apache one, then it's best to remove the directories and start again. So using Cpan I tried to install the Bundle::Apache...which bombs out Don't worry about it for now, you don't need it for your mod_perl Apache. ALSO here is perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: [snip] ccversion='', gccversion='2.95.3 20010315 (SuSE)', [snip] gnulibc_version='2.2.5' [snip] Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Aug 2 2003 13:09:23 [snip] Looks like you compiled this Perl yourself using gcc 2.95.3 a couple of days ago, is that right? Did the Perl tests all pass OK? 73, Ged.
[mp2] Child process exited
Hello, I think I've made good steps towards getting my scripts to work (Apache/2.0.47 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0). However, now, when I try to reload one of the pages to test, IE tells me that "The exception unknown software exception (0xc0fd) occured in the application at location 0x2805caa2. Click on OK to terminate the program, Click on CANCEL to debug the program" (in a dialog box with the big red X). This is what I get in my error_log: [Tue Aug 05 11:10:58 2003] [notice] Parent: child process exited with status 3221225725 -- Restarting.[Tue Aug 05 11:11:00 2003] [notice] Parent: Created child process 1360 What could I be doing that would make one of the Apache processes crash? Does anyone have an idea, or should I post code? The same thing happens when I try to telnet into the webserver's port 80 and type "GET /filename.cgi HTTP/1.0". The specific CGI I want to test generates valid HTML if run from the command line. Any ideas? Thanks in advance, J-S ___Jean-Sébastien Guay [EMAIL PROTECTED]Software Developer, Hybride http://www.hybride.comPiedmont, Québec, Canada
RE: mod perl issues/ cpan won't make properly
Title: RE: mod perl issues/ cpan won't make properly First off...thanks for addressing my issues Here's how I installed mod_perl/apache: cd apache_1.3.28 ./configure --enable-module=so cd mod_perl_1.28 I don't like the look of that. Please send *exactly* what you did. Have you got the mod_perl directory inside the apache directory? Your directories should be somethign like this: /dloads/apache_mod_perl/apache_1.3.28/ /dloads/apache_mod_perl/mod_perl-1.28/ perl Makefile.PL APACHE_SRC= /dloads/apache_mod_perl/apache_1.3.28/src DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/httpd_perl make make test make install My directories look exactly like that. First I went to the apache directory and ran the configure to enable DSO. Then I went to the modperl directory and compiled mod perl with the apache with options outlined above What is the user that's running this? Don't do the first three steps as root, only do the 'make install' as root: Ok. I'll recompile them as another user. How does root user affect things? (appears to be a perl issue still see below) % perl Makefile.PL APACHE_SRC= /dloads/apache_mod_perl/apache_1.3.28/src \ DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/httpd_perl % make % make test % su Password: # make install # exit % That backslash on the first line is important. If you've done everything as root and if you have the mod_perl directory inside the apache one, then it's best to remove the directories and start again. So using Cpan I tried to install the Bundle::Apache...which bombs out Don't worry about it for now, you don't need it for your mod_perl Apache. I need Apache::request and DBD::mysql rsn, but I guess that is another issue all together...allthough I though it might be a sign that something else is fowl if they won't make. ALSO here is perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: [snip] ccversion='', gccversion='2.95.3 20010315 (SuSE)', [snip] gnulibc_version='2.2.5' [snip] Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Aug 2 2003 13:09:23 [snip] Looks like you compiled this Perl yourself using gcc 2.95.3 a couple of days ago, is that right? Did the Perl tests all pass OK? yes...seeing as I wasn't sure whether it passed everything...and the make all test wouldn't run again; then I repeated my build/install steps interesting. its failing a test; output: (I'm fairly sure this wasn't the result the other day): Failed 1 test script out of 667, 99.85% okay. ### Since not all tests were successful, you may want to run some of ### them individually and examine any diagnostic messages they produce. ### See the INSTALL document's section on make test. ### You have a good chance to get more information by running ### ./perl harness ### in the 't' directory since most (=80%) of the tests succeeded. ### You may have to set your dynamic library search path, ### LD_LIBRARY_PATH, to point to the build directory: ### setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness ### LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness ### export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness ### for csh-style shells, like tcsh; or for traditional/modern ### Bourne-style shells, like bash, ksh, and zsh, respectively. u=2.73 s=0.72 cu=193.21 cs=19.29 scripts=667 tests=68585 make[2]: *** [_test_tty] Error 1 make[2]: Leaving directory `/dloads/perl/perl-5.8.0' make[1]: *** [_test] Error 2 make[1]: Leaving directory `/dloads/perl/perl-5.8.0' make: *** [test] Error 2 73, Ged. btw - what is 73? Thank you, Jeff
Re: Multiple select
On Tue, 2003-08-05 at 12:34, Alan Rafagudinov wrote: Hello! I have the next html code: select name=sel_name multiple option Smth_1 ... option Smth_n /select User is able to select many values in the list, how can I get all of them in my mod_perl script? Use Apache::Request or CGI.pm. - Perrin
Re: Set-Cookie2
Stas Bekman [EMAIL PROTECTED] writes: Jie Gao wrote: [...] Sorry. Now let me ask a question that's related to mod_perl: does libapreq support Set-Cookie2? libapreq has its own list, see: http://httpd.apache.org/apreq/ AFAIK, apreq-2 (to be released soon) supports, Yup. I'm not sure about apreq-1. No, it doesn't. -- Joe Schaefer