Re: Custom Log files Under MP2
Specifically, I'd like to log certain image file requests (all files with .jpg, .gif, and .png extensions) to a custom log, image_log, logging IP, file, time, status, bytes, referer, cookies, etc. I care about speed here. Would you suggest a native logging http://www.modperlcookbook.org/chapters/ch16.pdf or take this route http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler If the former, would you have any sample config code to illustrate? Thanks! -TO --- Geoffrey Young [EMAIL PROTECTED] wrote: Tofu Optimist wrote: I would like to append a small line of log information to a file on certain apache2 requests. For this application, I am very concerned about speed, so i'm looking for fast simple solutions. if speed is the concern, just stick to apache's native logging mechanism. see recipe 16.5, Conditional Logging in the mod_perl developer's cookbook: http://www.modperlcookbook.org/chapters/ch16.pdf in mod_perl 2.0, it's still $r-subprocess_env(), but you need to load APR::Table first. HTH --Geoff -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
post max and MP2
Hello -- I'm moving a module from MP1 to MP2. What is the MP2 equivalent of this code? Thanks! code my $q = Apache::Request-new($r, POST_MAX = 10 * 1024, DISABLE_UPLOADS = 1); $q-no_cache(1); /code __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html
post max and MP2
Hello -- I'm moving a module from MP1 to MP2. What is the MP2 equivalent of this code? Thanks! code my $q = Apache::Request-new($r, POST_MAX = 10 * 1024, DISABLE_UPLOADS = 1); $q-no_cache(1); /code __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html
self_url MP2 w/o CGI
Hi folks -- I'm using MP2, and I am trying to avoid loading CGI for 2 reasons: (1) To save memory. (2) When I do load CGI, it fails at the require Apache (line 161), and I'd prefer not to edit CGI on my server. Uck. Given I'm not loading CGI, how can I determine self_url() in MP2? I tried something like this code my $self_uri = APR::URI-parse($r-pool, $r-uri)-unparse; $r-headers_out-set(Location = $self_uri . r2=1); return Apache::REDIRECT; /code but this gives me a partial URL, not the full expansion. Thanks for any assistance. -TO __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html
Custom Log files Under MP2
I would like to append a small line of log information to a file on certain apache2 requests. For this application, I am very concerned about speed, so i'm looking for fast simple solutions. I could stuff the information in the error log as per http://perl.apache.org/docs/2.0/api/Apache/Log.html, and parse it out later off-line, but I'd prefer to reserve the error log for errors. I could stuff the information in the access log, and likewise pull out the data later off-line: how might I get data to the access_log? The most natural place to append the information would be a dedicated file. I've never written to a file from mod_perl, and don't know the correct idiom (flock? etc?) to do so. I'd appreciate any pointers to recipes, modules, etc. to show me the correct (fast, reliable) way to append to a file under MP2. Thanks! :) __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html
Ah, success.
Hi folks. It is Saturday evening, 2 Aug 03, 9pm local time, and I just got my modperl 2 and apache 2 running on my dev box, built from source, and just ran my first handler successfully. Hurrah!! I started on this wild adventure last Wednesday evening, so it took me around 3.5 days, working on and off. Thanks to the good folks on this list for helping me out, especially ged perrin for their patience and insightful posts. I wanted to summarize what I learned, in case it helps someone else trying to do the same thing. CAUTION: I am a linux and apache and mod-perl NEWBIE; please dont take the following as gospel, I could be (and likely am) wrong. But hopefully my points below will at least raise helpful issues. At times I had trouble as my knowledge was so rudimentary I couldn't read between the lines in the docs and in the posts. (For example, why do the docs casually say make make test make install, when in fact you have to su over to root before the install step? g) So here are my notes on this process: * START CLEAN. Before starting, get rid of any and all old perls and apaches on the system. I had several instances of both due my installation fumblings -- I opted to reinstall Red Hat 9 to start fresh. If you do this, make sure you ask RH to install all the programming tools on my first reinstall, I opted for the server configuration, which didnt give me all the compiling tools needed, and so had to reinstall it again. Useful tools are updatedb and locate, and rpm e. Took me a while to realize I could use wget to pull down .tar.gz sources via http; not knowing about wget, I was trying to get everything through ftp and that was a drag. * SEARCH IS YOUR FRIEND. I really liked the interface and search function at http://www.gossamer-threads.com/archive/mod_perl_C1/. Amazing resource. And searching for key terms or error messages on Google (main) and Google groups gives a good a sense of what might be going on. * MOD_PERL 2 IS STILL YOUNG. I didnt realize going into this that at this point (2 Aug 03) Mod Perl 2 is still pre-release. Ack! My ISP runs Apache 2 so decided to install mod-perl 2, so I wanted AP2 and MP2 on my dev machine to match my ISP setup. (Funny he got MP2 running in a few hours, vs. my 3.5 days but then again, this was also my introduction to linux, apache, etc.) * DONT DO EVERYTHING AS ROOT. Build and test all packages as non-root, then su to root to make install. Dont make and make test as root. I did and ran into troubles and had to start again. * IF PERL DOESNT PASS 100% OF ITS TESTS, STOP. Build perl 5.8.x first, and make sure it passes every test. Do not continue, do not pass go, do not collect $200 until all the tests run. I had to use EXPORT LANG=en_us to get around the UTF bug in Perl 5.8.0. * CPAN IS YOUR FRIEND. After building a successful perl 5.8.0, I used CPAN to install (in this order) CGI, LWP, Bundle::LWP, HTML::Parser. Now, I didnt get 100% clean installs on the last two, and (in violation of the previous rule above) continued on with my fingers crossed. * DONT MIX APACHE 1 AND APACHE 2 DOCS. Without realizing it, I was bouncing between the docs at the mod_perl site for 1.0 and 2.0. I didnt realize how different the two packages are. Stay in one world or the other. The apache install went easily, following the instructions online and in Stas excellent book, practical mod_perl. * ONE ERROR. The mod_perl install went smoothly too, following the instructions online. I did get one error i: filter/in_bbs_msg..server side has failed (response code: 404),see t/logs/error_log for more details but again I foolishly forged on ignoring it. Will this come back to haunt me? I hope not. Anyone want to tell me what this means? * DONT MIX MODPERL1 AND MODPERL2 DOCS. I read Stas book, Practical mod_perl, and really found it useful and well-written. But I thought the whole book was about mod-perl technically it isnt. Most of the book is about MP1, and Chaps 24 and 25 are about MP2. My handlers were wrong, my httpd.conf was wrong I was trying to run MP1 stuff on MP2. I made the same mistake reading ModPerl Developers Cookbook. The fault was mine MP 1 and MP 2 are quite different. I just didnt know this going into this process. * READ PRACTICAL MODPERL CHAP 23 GETTING HELP AND ONLINE RESOURCES FIRST. I noticed this chapter late in the game. Read it first. Those are my tidbits of advice. Good luck to you if you are a newcomer, and thanks to the veterans for providing all this great information, advice, and encouragement -- A __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
handler help
Hi. I need some help with handlers. I'm a linux newbie. I freshly installed RH 9. I built perl 5.8.0 from source. As non-root, I downloaded source for Apache 1.3.28 and mod_perl 1.28 and built them, using the instructions here http://perl.apache.org/docs/1.0/guide/install.html#A_Summary_of_a_Basic_mod_perl_Installation I've also been using Stas' book, Practical Mod Perl, and the mod_perl developer's cookbook. The only change I made to the A_Summary_of_a_Basic_mod_perl_Installation was using SU to root for the make install for mod_perl. The resulting Apache runs fine. The resuling mod_perl runs cgi-scripts fine. At times I'm running two servers on the same box, one listening to port 80 and one listening to port 8080. I turned off the ssl piece of both servers, as they were colliding on port (I think) 443. I'm not sure if this 2 server issue or the turning ssl is relevant to my problem. Now I'm trying to write my first mod_perl handler: PerlModule Apache::HandlerTest Location /handlertest SetHandler perl-script PerlHandler Apache::HandlerTest /Location package Apache::HandlerTest; # File is called Apache/HandlerTest.pm # Path: /usr/lib/perl5/site_perl/5.8.0/Apache/HandlerTest.pm sub handler { my $r = shift; # Apache session object $r-content_type('text/html'); $r-send_http_header; $r-print( Hello, world. ); } It dies with an Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request Here's the end of the log [Thu Jul 31 18:34:08 2003] [error] [client 192.168.1.2] Can't locate object method content_type via package Apache::RequestRec at /usr/lib/perl5/site_perl/5.8.0/Apache/HandlerTest.pm line 6.! [Thu Jul 31 18:34:08 2003] [error] [client 192.168.1.2] File does not exist: /var/www/error As the problem seesm related to finding things, I tried making the handler simpler by using no functions sub handler { print HTTP/1.0 200 OK\n; print Content-Type: text/html\n\n; print htmlbodyHello/body/html; return 200; } This didn't work either -- [Thu Jul 31 18:42:57 2003] [error] [client 192.168.1.2] Can't locate object method PRINT via package Apache::RequestRec at /usr/lib/perl5/site_perl/5.8.0/Apache/HandlerTest.pm line 13.! [Thu Jul 31 18:42:57 2003] [error] [client 192.168.1.2] File does not exist: /var/www/error I guess the print is really a call to $r-print() (Practical Mod_perl p 238). This newcoming to mod-perl seeks any help on next steps. RKG __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Skipped Tests (was: handler help)
Hi -- I'm following up on a previous message (below), sorry to break the thread in two. In my first post, I was wondering my handler didn't work. I said make test worked fine for mod_perl. Well, maybe. Here's the output. [EMAIL PROTECTED]:~/source/mod_perl-1.28 make test (cd ../apache_1.3.28 PERL5LIB=/home/aprk/source/mod_perl-1.28/lib: make) make[1]: Entering directory `/home/aprk/source/apache_1.3.28' === src make[2]: Entering directory `/home/aprk/source/apache_1.3.28' make[3]: Entering directory `/home/aprk/source/apache_1.3.28/src' === src/regex make[4]: Nothing to be done for `all'. === src/regex === src/os/unix make[4]: Nothing to be done for `all'. === src/os/unix === src/ap make[4]: Nothing to be done for `all'. === src/ap === src/main make[4]: Nothing to be done for `all'. === src/main === src/lib === src/lib === src/modules === src/modules/standard make[5]: Nothing to be done for `all'. === src/modules/standard === src/modules/perl make[5]: Nothing to be done for `all'. === src/modules/perl === src/modules cc -c -I. -I/usr/local/lib/perl5/5.8.0/i686-linux/CORE -I./os/unix -I./include -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `./apaci` modules.c cc -c -I. -I/usr/local/lib/perl5/5.8.0/i686-linux/CORE -I./os/unix -I./include -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `./apaci` buildmark.c cc -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DUSE_HSREGEX -DNO_DL_NEEDED -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm `./apaci`\ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/perl/libperl.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lm -lcrypt -rdynamic -L/usr/local/lib /usr/local/lib/perl5/5.8.0/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.8.0/i686-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt -lutil make[3]: Leaving directory `/home/aprk/source/apache_1.3.28/src' make[2]: Leaving directory `/home/aprk/source/apache_1.3.28' make[2]: Entering directory `/home/aprk/source/apache_1.3.28' === src/support make[3]: Entering directory `/home/aprk/source/apache_1.3.28/src/support' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/aprk/source/apache_1.3.28/src/support' === src/support make[2]: Leaving directory `/home/aprk/source/apache_1.3.28' === src make[1]: Leaving directory `/home/aprk/source/apache_1.3.28' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Apache' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Apache' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Connection' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Connection' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Constants' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Constants' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/File' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/File' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Leak' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Leak' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Log' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Log' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/ModuleConfig' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/ModuleConfig' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/PerlRunXS' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/PerlRunXS' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Server' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Server' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Symbol' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Symbol' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Table' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Table' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/URI' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/URI' make[1]: Entering directory `/home/aprk/source/mod_perl-1.28/Util' make[1]: Leaving directory `/home/aprk/source/mod_perl-1.28/Util' cp t/conf/mod_perl_srm.conf t/conf/srm.conf ../apache_1.3.28/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t httpd listening on port 8529 will write error_log to: t/logs/error_log letting apache warm up...\c done /usr/local/bin/perl t/TEST 0 modules/actions...ok modules/cgi...ok modules/constants.ok modules/cookieskipped all
Re: Skipped Tests (was: handler help)
Exactly like it said in http://perl.apache.org/docs/1.0/guide/install.html#A_Summary_of_a_Basic_mod_perl_Installation % cd /usr/src % lwp-download http://www.apache.org/dist/httpd/apache_1.3.xx.tar.gz % lwp-download http://perl.apache.org/dist/mod_perl-1.xx.tar.gz % tar xzvf apache_1.3.xx.tar.gz % tar xzvf mod_perl-1.xx.tar.gz % cd mod_perl-1.xx % perl Makefile.PL APACHE_SRC=../apache_1.3.xx/src \ DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 % make make test make install % cd ../apache_1.3.xx % make install --- Ged Haywood [EMAIL PROTECTED] wrote: Hi there, On Fri, 1 Aug 2003, Tofu Optimist wrote: sorry to break the thread in two. :( Why did it skip 6 tests? How did you do the perl Makefile.PL step? 73, Ged. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Re: Skipped Tests (was: handler help)
Ged -- Sorry I wasn't fully explicit, it is still early in the morning: So your non-root user has write permission in /usr/src? H... Rather than /usr/src, I put in /home/aprk % make make test make install This can't work, you need to be root to make install. Yes, you are correct. make make test as non-root, then install as root. (Odd, isn't it, the docs at http://perl.apache.org/docs/1.0/guide/install.html#A_Summary_of_a_Basic_mod_perl_Installation don't make this explicit?) PS: Did you build your own Perl? Yes, 5.8.0 Have you cleaned up any old Apaches and mod_perls? (RH9 comes with Apache2, you probably want to get rid of that:). Excellent point. No. There are probably hordes of perls and hpptds and mod_perls running amok on the box throwing wild parties; I don't know. I think my next step should be to start over fresh. Again. As a newbie, may I ask 4 basic questions: [1] How do I find *everything* on the box related to perl / apache / mod_perl, both 1 and 2, both the RH install and from my own ftp / tar / make fumblings? [2] How do I uninstall everything from [1], so I can start fresh? [3] I'd prefer to use modperl 2 and apache 2, as that is what my ISP is using. And I think I'd prefer to use RH rpm to install them, as again, that is what my ISP did. (Want my dev box to match the outside box as much as possible). This newsgroup keeps mentioning build from sources, will I be going astray trying the rpm route? [4] Is a full uninstall enough, or should I reinstall RH itself? Many thanks for your generosity explaining these mysteries to a newcomer. -- A __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Re: Skipped Tests (was: handler help)
Thanks Ged. [4] Is a full uninstall enough, or should I reinstall RH itself? No, don't reinstall the entire OS. Get used to what your system feels like and eventually you'll know what to leave alone and what to change. Well, I opted to reinstall everything, starting with a fresh RH9. Then I removed all the relevant RH9 RPMS: [EMAIL PROTECTED] root]# rpm -e mod_ssl [EMAIL PROTECTED] root]# rpm -e mod_python [EMAIL PROTECTED] root]# rpm -e pho [EMAIL PROTECTED] root]# rpm -e php-ldap [EMAIL PROTECTED] root]# rpm -e php-imap [EMAIL PROTECTED] root]# rpm -e php [EMAIL PROTECTED] root]# rpm -e redhat-config-httpd [EMAIL PROTECTED] root]# rpm -e webalizer [EMAIL PROTECTED] root]# rpm -e mod_perl [EMAIL PROTECTED] root]# rpm -e httpd (I had to take out mod_ssl, mod_python, etc so as to free up dependencies.) MY QUESTION: Now I want to remove perl, too: [EMAIL PROTECTED] root]# rpm -e perl error: Failed dependencies: perl is needed by (installed) logwatch-4.3.1-2 perl is needed by (installed) w3m-0.3.2.2-5 perl = 0:5.002 is needed by (installed) perl-Filter-1.29-3 perl = 0:5.00503 is needed by (installed) perl-DateManip-5.40-30 perl = 0:5.000 is needed by (installed) perl-DateManip-5.40-30 perl = 0:5.00503 is needed by (installed) perl-HTML-Tagset-3.03-28 perl = 1:5 is needed by (installed) perl-HTML-Tagset-3.03-28 perl = 5.6.0 is needed by (installed) perl-HTML-Parser-3.26-17 perl = 0:5.004 is needed by (installed) perl-HTML-Parser-3.26-17 perl = 0:5.00503 is needed by (installed) perl-Parse-Yapp-1.05-30 perl = 0:5.004 is needed by (installed) perl-Parse-Yapp-1.05-30 perl = 0:5.00503 is needed by (installed) perl-URI-1.21-7 perl = 0:5.00503 is needed by (installed) perl-libwww-perl-5.65-6 perl = 0:5.002 is needed by (installed) perl-libwww-perl-5.65-6 perl = 0:5.004 is needed by (installed) perl-libwww-perl-5.65-6 perl = 0:5.005 is needed by (installed) perl-libwww-perl-5.65-6 perl = 2:5.8.0 is needed by (installed) perl-XML-Parser-2.31-15 perl = 0:5.004 is needed by (installed) perl-XML-Parser-2.31-15 perl = 5.6.0 is needed by (installed) perl-libxml-perl-0.07-28 perl = 0:5.005 is needed by (installed) perl-libxml-perl-0.07-28 perl = 5.6.0 is needed by (installed) perl-XML-Dumper-0.4-25 perl = 5.6.0 is needed by (installed) perl-XML-Encoding-1.01-23 perl = 0:5.005 is needed by (installed) perl-XML-Encoding-1.01-23 perl = 0:5.00503 is needed by (installed) perl-libxml-enno-1.02-29 perl = 5.6.0 is needed by (installed) perl-XML-Grove-0.46alpha-25 perl = 0:5.005 is needed by (installed) perl-XML-Grove-0.46alpha-25 perl = 0:5.004 is needed by (installed) perl-XML-Twig-3.09-3 perl = 5.6.1 is needed by (installed) foomatic-2.0.2-15 perl is needed by (installed) redhat-config-printer-0.6.47-1 perl = 1:5 is needed by (installed) emacs-21.2-33 perl is needed by (installed) libgnomeprint22-2.2.1.1-3 perl is needed by (installed) docbook-dtds-1.0-17 perl is needed by (installed) libgnomeprint-1.116.0-6 perl is needed by (installed) desktop-printing-0.1.10-6 perl = 1:5 is needed by (installed) xscreensaver-4.07-2 perl is needed by (installed) autoconf-2.57-3 perl = 0:5.000 is needed by (installed) autoconf-2.57-3 perl = 0:5.005_03 is needed by (installed) autoconf-2.57-3 perl is needed by (installed) automake14-1.4p6-5.1 perl is needed by (installed) automake15-1.5-6 perl = 0:5.005 is needed by (installed) automake15-1.5-6 Now, in this forum I heard the importance of building perl with the same compiler that you use for httpd and mod_perl. Am I going to have problems following the MP 2.0 install instructions http://perl.apache.org/docs/2.0/user/install/install.html if I don't nuke the current perl first? Thanks. And this time I'll restrict my reading to the 2.0 install docs, rather than dipping back into the 1.0 docs in the middle of 2.0 install. (Doh!) Thanks for advice on this -- A Did you build your own Perl? Yes, 5.8.0 Good. You might want to try 5.8.1 soon, but I don't think that's a problem here. Have you cleaned up any old Apaches and mod_perls? No. There are probably hordes of perls and hpptds and mod_perls running amok on the box throwing wild parties; I don't know. Argh. The Apache2/modperl2 that comes with RH9 is junk. Get rid of it all. Use 'ps' to see what processes you have running and stop any httpd processes that you don't think you started. RH will start an Apache when it boots if you let it, I wish they wouldn't do that. Read 'man chkconfig'. Go into /etc/rc.d and look at the startup scripts. Use chkconfig to prevent Apache being started at boot so you can start it manually when you've built it. When you're
Re: Skipped Tests (was: handler help)
Ack!! My perl build failed. Here's what I did nuke the RPMS [EMAIL PROTECTED] root]# rpm -e mod_ssl [EMAIL PROTECTED] root]# rpm -e mod_python [EMAIL PROTECTED] root]# rpm -e pho [EMAIL PROTECTED] root]# rpm -e php-ldap [EMAIL PROTECTED] root]# rpm -e php-imap [EMAIL PROTECTED] root]# rpm -e php [EMAIL PROTECTED] root]# rpm -e redhat-config-httpd [EMAIL PROTECTED] root]# rpm -e webalizer [EMAIL PROTECTED] root]# rpm -e httpd [EMAIL PROTECTED] root]# rpm -e mod_perl download perl, apache, mod_perl ls -rw-rw-r--1 aprk aprk 6260081 Jul 7 11:09 httpd-2.0.47.tar.gz -rw-rw-r--1 aprk aprk 918029 Apr 27 22:53 mod_perl-2.0-current.tar.gz -rw---1 aprk aprk 4145152 Aug 1 16:48 perl-5.8.0.tar.gz unzip and untar them, then cd perl-5.8.0 ./Configure -des make make test Here's the failure Failed Test Stat Wstat Total Fail Failed List of Failed --- ../lib/Locale/Codes/t/all.t 20 2 10.00% 9-10 ../lib/Locale/Codes/t/languages.t 59 1 1.69% 22 42 tests and 406 subtests skipped. Failed 2/712 test scripts, 99.72% okay. 3/68552 subtests failed, 100.00% okay. Oh helpful gurus, any advice? With gratitude -- A __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Re: Skipped Tests (was: handler help)
I'm not TRYING to be difficult; I am clueless. :) Exactly HOW do I change the locale? And after I do that, I do my make make install again, yes? Many thanks! :) A __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
Re: Skipped Tests (was: handler help)
I am still here, trying to build mod_perl 2. Many thanks to everyone who offered help. To recap: I freshly installed RedHat 9 on a box, then used RPM to remove modules involving httpd. (See notes below). Then I built perl 5.8.0 from source, first doing a export LANG=C to address the UTF bug. The perl build worked. I did everything as non-root until the make install, which I did as root. I then built Apache 2.0.47 from source. Seemed to go OK (there was no make test step...) I did everything as non-root until the make install, which I did as root. Then as root I used CPAN to install Bundle::WWW, LWP, and HTML::Parser. Had some troubles, used the force option, and plowed ahead. (Maybe I should have stopped here at the first sign of trouble) As non-root, did cd mod_perl-1.99_09/ perl Makefile.PL MP_AP_PREFIX=$HOME/httpd/prefork MP_INST_APACHE2=1 make which went fine. make tests did not work -- below is the bottom of the output. Argh! Suggestions? - A PS Below the make test output below, I included a note file where I've been pasting commands I've run... in some places, it contains notes, rather than exact linux commands. == = BOTTOM OF FAILED make test == snip /usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \ t/TEST -clean *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -clean APACHE_USER= APACHE_GROUP= APACHE_PORT= APACHE= APXS= \ /usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \ t/TEST -verbose=0 *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -verbose=0 /home/aprk/httpd/prefork/bin/httpd -d /home/aprk/src/mod_perl-1.99_09/t -f /home/aprk/src/mod_perl-1.99_09/t/conf/httpd.conf -DAPACHE2 using Apache/2.0.47 (prefork MPM) waiting for server to start: ..[Fri Aug 01 22:34:36 2003] [info] 19 Apache:: modules loaded [Fri Aug 01 22:34:36 2003] [info] 3 APR:: modules loaded [Fri Aug 01 22:34:36 2003] [info] base server + 8 vhosts ready to run tests .. waiting for server to start: ok (waited 2 secs) server SAM:8529 started server SAM:8530 listening (TestProtocol::echo_filter) server SAM:8531 listening (TestProtocol::echo) server SAM:8532 listening (TestPreConnection::note) server SAM:8533 listening (TestFilter::in_str_msg) server SAM:8534 listening (TestFilter__both_str_con_add) server SAM:8535 listening (TestFilter::in_bbs_msg) server SAM:8536 listening (TestDirective::perlmodule) server SAM:8537 listening (TestDirective::perlrequire) server SAM:8538 listening (TestDirective::perlloadmodule4) server SAM:8539 listening (TestDirective::perlloadmodule5) server SAM:8540 listening (TestDirective::perlloadmodule3) server SAM:8541 listening (TestDirective::perlloadmodule6) apache/add_config..ok apache/cgihandler..ok apache/conftreeok apache/constants...ok apache/postok apache/readok apache/scanhdrsok apache/scanhdrs2...ok apache/send_cgi_header.ok apache/subprocess..ok apache/write...ok api/access.ok api/aplog..ok api/conn_rec...ok api/lookup_uri.ok api/lookup_uri2ok api/module.ok api/r_subclass.ok api/request_recok api/response...ok api/rutil..ok api/sendfile...ok api/server_rec.ok api/server_utilok api/uriok apr/base64.ok apr/constants..ok apr/date...ok apr/netlib.ok apr/os.ok apr/pool...ok apr/socket.ok apr/string.ok apr/table..ok apr/threadmutexskipped all skipped: Perl was not built with 'ithreads' enabled apr/util...ok apr/uuid...ok compat/apache..ok compat/apache_file.ok compat/apache_tableok compat/apache_uri..ok compat/apache_util.ok compat/conn_authen.ok compat/request.ok compat/request_bodyok compat/send_fd.ok directive/env..ok directive/perl.ok directive/perldo...ok directive/perlloadmodule...ok directive/perlloadmodule2..ok directive/perlloadmodule3..ok directive/perlloadmodule4..ok directive/perlloadmodule5..ok directive/perlloadmodule6..ok directive/perlmodule...ok directive/perlrequire..ok directive/pod..ok directive/setupenv.ok error/api..ok error/runtime..ok error/syntax...ok filter/both_str_con_addok filter/both_str_req_addok