Re: getting mod_perl configured on FreeBSD
Well i had the same problem on freebsd too. first goto mod_perl directory: perl Makefile.PL PREP_HTTPD=1 USE_APACI=1 then make make test and make install Goto your apache directory ./configure --prefix=/www --enable-shared=max --activate-modules=src/modules/perl/libperl.a --disable-shared=perl then make and make install. and voila your apache is configured as statically mod_perl and you have DSO enabled so you never need to recompile apache if you want to add optional modules. Good Luck and let me know if I can help you any more. Vincent Bruijnes At 21:21 14-7-00 -0400, you wrote: I have successfully gotten Apache/mod_perl to compile under Linux many a times. This is my first attempt at compiling it on FreeBSD and I am having problems. The problem is that when to do the "make test", apache never starts up. I had once run into this on Linux and that was because the .makepl_args.mod_perl was pointing to a non-existing layout file and I did not catch the error from the "perl Makefile.PL". But I have looked and look at the output of the "perl Makefile.PL" and see nothing wrong. I am going to post the output of "perl Makefile.PL", along with my .makepl_args.mod_perl and my layout file in hopes that one of you can find my error. Thanks output from "perl Makefile.PL" Will run tests as User: 'nobody' Group: 'wheel' Configuring for Apache, Version 1.3.12 + using installation path layout: maineville (/usr/src/apache.config.layout) + activated perl module (modules/perl/libperl.a) Creating Makefile Creating Configuration.apaci in src + enabling mod_so for DSO support + id: mod_perl/1.24 + id: Perl/5.00503 (freebsd) [perl] Creating Makefile in src + configured for FreeBSD 4.0 platform + setting C pre-processor to cc -E + checking for system header files + adding selected modules o rewrite_module uses ConfigStart/End enabling DBM support for mod_rewrite o dbm_auth_module uses ConfigStart/End o perl_module uses ConfigStart/End + mod_perl build type: DSO + setting up mod_perl build environment + adjusting Apache build environment ** Error: Cannot build mod_include with Perl support (USE_PERL_SSI) ** ** when mod_perl is compiled as DSO because of cross-module calls. ** ** Ignoring PERL_SSI flag now. ** + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in src/support Creating Makefile in src/os/unix Creating Makefile in src/ap Creating Makefile in src/main Creating Makefile in src/modules/standard Creating Makefile in src/modules/proxy Creating Makefile in src/modules/perl Reading Makefile.PL args from ../.makepl_args.mod_perl Will configure via APACI cp apaci/Makefile.libdir /usr/src/apache/src/modules/perl/Makefile.libdir cp apaci/Makefile.tmpl /usr/src/apache/src/modules/perl/Makefile.tmpl cp apaci/README /usr/src/apache/src/modules/perl/README cp apaci/configure /usr/src/apache/src/modules/perl/configure cp apaci/libperl.module /usr/src/apache/src/modules/perl/libperl.module cp apaci/mod_perl.config.sh /usr/src/apache/src/modules/perl/mod_perl.config.sh cp apaci/load_modules.pl.PL /usr/src/apache/src/modules/perl/load_modules.pl.PL cp apaci/find_source.PL /usr/src/apache/src/modules/perl/find_source.PL cp apaci/apxs_cflags.PL /usr/src/apache/src/modules/perl/apxs_cflags.PL cp apaci/mod_perl.exp /usr/src/apache/src/modules/perl/mod_perl.exp PerlDispatchHandler.enabled PerlChildInitHandlerenabled PerlChildExitHandlerenabled PerlPostReadRequestHandler..enabled PerlTransHandlerenabled PerlHeaderParserHandler.enabled PerlAccessHandler...enabled PerlAuthenHandler...enabled PerlAuthzHandlerenabled PerlTypeHandler.enabled PerlFixupHandlerenabled PerlHandler.enabled PerlLogHandler..enabled PerlInitHandler.enabled PerlCleanupHandler..enabled PerlRestartHandler..enabled PerlStackedHandlers.enabled PerlMethodHandlers..enabled PerlDirectiveHandlers...enabled PerlTableApienabled PerlLogApi..enabled PerlUriApi..enabled PerlUtilApi.enabled PerlFileApi.enabled PerlConnectionApi...enabled PerlServerApi...enabled PerlSectionsenabled PerlSSI.enabled (cd /usr/src/apache CC="cc" ./configure --activate-module=src/modules/perl/libperl.a --disable-rule=EXPAT --with-layout=/usr/src/apache.config.layout:maineville --server-uid=wwwrun --server-gid=daemon --enable-module=most --enable-shared=max --prefix=/data01/maineville) Checking CGI.pm VERSION..ok Checking for LWP::UserAgent..ok Checking for HTML::HeadParserok '-ADD_MODULE' is not a known MakeMaker parameter n
testing perl_ssi
How can i do a simple test to check if perl_ssi which i compiled with modperl, works ? Sincerely Vincent Bruijnes [EMAIL PROTECTED]
Apache::ASP
I got this error always when running /site/eg/index.html /www/htdocs/site/eg/.htaccess: Invalid command 'PerlSetVar', perhaps mis-spelled or defined by a module not included in the server configuration. Is there a clue ? Sincerely Vincent Bruijnes [EMAIL PROTECTED]
Re: Apache::ASP
How do you mean with copy it to over to where my httpd resides? my apache resides in /www and where and what file should i place in /www/ ? btw i don't use DSO Sincerely Vincent Bruijnes At 00:57 6-7-00 -0700, you wrote: Vincent Bruijnes wrote: I got this error always when running /site/eg/index.html /www/htdocs/site/eg/.htaccess: Invalid command 'PerlSetVar', perhaps mis-spelled or defined by a module not included in the server configuration. Is there a clue ? Install mod_perl, or make sure its active. If using DSO, make sure the module is built and commented in. If you haven't built mod_perl, build it, statically link it with Apache, and make sure you copy it over to where your httpd resides on disk ( common error ). If you have any questions about the above, be sure to read the guide http://perl.apache.org/guide -- Joshua _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Apache::ASP problems
Well the first lines of the error_log are strange for me. I still come closer to a correct apache modperl and asp. the /site/eg/index.html works only .asp files don't To check it yourself goto http://node1352c.a2000.nl/site/eg/index.html Thanks for all your help, once again. Sincerely Vincent Bruijnes [EMAIL PROTECTED] [Thu Jul 6 16:09:47 2000] [error] [asp] [34387] [debug] destroying - GlobalASA: Apache::ASP::GlobalASA=HASH(0x837392c); Request: Apache::ASP::Request=HASH(0x83962e8); Response: Apache::ASP::Response=HASH(0x839624c); Server: Apache::ASP::Server=HASH(0x839615c); basename: session.asp; compile_includes: 1; dbg: 2; debugs_output: ARRAY(0x812b848); errors_output: ARRAY(0x83b62d0); errs: 2; filename: /www/htdocs/site/eg/session.asp; global: /www/htdocs/site/eg//.; global_package: Apache::ASP::Demo; id: _www_htdocs_site_eg_session_aspxDYN; includes_dir: ARRAY(0x812b8f0); init_packages: ARRAY(0x83960d8); no_cache: ; no_session: ; no_state: ; package: Apache::ASP::Demo; r: Apache=SCALAR(0x837cc90); stat_inc: ; stat_inc_match: ; stat_scripts: 1; state_cache: ; state_db: ; state_dir: /tmp/asp_demo; state_manager: 10; state_serializer: ; subid: Apache::ASP::Demo::_www_htdocs_site_eg_session_aspxDYN; unique_packages: ; use_strict: ; xslt: ; [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] RUN ASP (v1.91) for /www/htdocs/site/eg/source.asp [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] GlobalASA package Apache::ASP::Demo [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] compiling global.asa Apache::ASP::Demo _www_htdocs_site_egglobal_asa - asp: Apache::ASP=HASH(0x837cc90); compiled: HASH(0x82e9610); exists: 1; id: _www_htdocs_site_egglobal_asa; mtime: 962892550; package: Apache::ASP::Demo; [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] global.asa routines - Application_OnEnd: 1; Application_OnStart: 1; Script_OnEnd: 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1; Session_OnStart: 1; [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [error] can't create group dir /tmp/asp_demo/server, /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 4298 [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [error] Can't tie to file /tmp/asp_demo/server/internal, 514, No such file or directory !! -- Make sure you have the permissions on the -- directory set correctly, and that your -- version of Data::Dumper is up to date. -- Also, make sure you have set Global to -- to a good directory in the config file., /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 4374 [Thu Jul 6 16:13:54 2000] [error] Can't bless non-reference value at /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 4540. Apache::ASP::State::TIEHASH('Apache::ASP::State', 'Apache::ASP=HASH(0x837cc90)', 'internal', 'server', 514) called at /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 637 Apache::ASP::new('Apache=SCALAR(0x813c3c0)') called at /usr/local/lib/perl5/site_perl/5.005/Apache/ASP.pm line 142 Apache::ASP::handler('Apache=SCALAR(0x813c3c0)') called at /dev/null line 0 eval {...} called at /dev/null line 0 [Thu Jul 6 16:13:54 2000] [error] [asp] [34386] [debug] state internal locks: 0, unlocks: 0 [Thu Jul 6 16:13:56 2000] [error] [asp] [34386] [debug] destroying - GlobalASA: Apache::ASP::GlobalASA=HASH(0x83a0df8); Request: Apache::ASP::Request=HASH(0x83a0fb4); Response: Apache::ASP::Response=HASH(0x812b83c); Server: Apache::ASP::Server=HASH(0x83b2e4c); basename: source.asp; compile_includes: 1; dbg: 2; debugs_output: ARRAY(0x833de70); errors_output: ARRAY(0x82e94a8); errs: 2; filename: /www/htdocs/site/eg/source.asp; global: /www/htdocs/site/eg//.; global_package: Apache::ASP::Demo; id: _www_htdocs_site_eg_source_aspxDYN; includes_dir: ARRAY(0x83a0d5c); init_packages: ARRAY(0x83a0c6c); no_cache: ; no_session: ; no_state: ; package: Apache::ASP::Demo; r: Apache=SCALAR(0x813c3c0); stat_inc: ; stat_inc_match: ; stat_scripts: 1; state_cache: ; state_db: ; state_dir: /tmp/asp_demo; state_manager: 10; state_serializer: ; subid: Apache::ASP::Demo::_www_htdocs_site_eg_source_aspxDYN; unique_packages: ; use_strict: ; xslt: ; [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] RUN ASP (v1.91) for /www/htdocs/site/eg/cgi.htm [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] GlobalASA package Apache::ASP::Demo [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] compiling global.asa Apache::ASP::Demo _www_htdocs_site_egglobal_asa - asp: Apache::ASP=HASH(0x83a0e58); compiled: HASH(0x82e9610); exists: 1; id: _www_htdocs_site_egglobal_asa; mtime: 962892550; package: Apache::ASP::Demo; [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] global.asa routines - Application_OnEnd: 1; Application_OnStart: 1; Script_OnEnd: 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1; Session_OnStart: 1; [Thu Jul 6 16:14:22 2000] [error] [asp] [34386] [debug] start time [Thu
possible?
Dear mod_perl users. Is it possible to have an apache with --enable-shared=max and mod_perl statically linked? If yes please tell me how to do, i need mod_perl statically cause otherwise my Apache::ASP won't work. Sincerely Vincent Bruijnes [EMAIL PROTECTED]