Sunday, 14 October 2007
|
| Apache::Test - cannot find module 'mod_perl.c' Fred Moyer 06:48:00 |
| | I feel somewhat embarrassed to ask this question, but I've run into this issue intermittently and haven't been able to find a deterministic reason why this is happening. I've been hacking on the sameinterp changes for Apache::Reload and I can't get Apache::Test to load mod_perl.so during 'make test'. I've poked around the guts of Apache::Test, added debugging prints where appropriate, and still no luck.
Here's a summary of what's going on - hopefully I am doing something dumb which is obvious to everyone but me.
phred@harpua Apache-Test $ ls /home/phred/dev/sl/httpd2/modules/ httpd.exp mod_perl.so
phred@harpua Apache-Test $ perldoc -l mod_perl2.pm /home/phred/dev/perl/lib/site_perl/5.8.8/i686-linux/mod_perl2.pm
phred@harpua Apache-Test $ make test make[1]: Entering directory `/home/phred/dev/svn/modperl/Apache-Test/Apache-TestItSelf' make[1]: Leaving directory `/home/phred/dev/svn/modperl/Apache-Test/Apache-TestItSelf' /home/phred/dev/perl/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -clean setting ulimit to allow core files ulimit -c unlimited; /home/phred/dev/perl/bin/perl /home/phred/dev/svn/modperl/Apache-Test/t/TEST -clean APACHE_TEST_GROUP= APACHE_TEST_HTTPD=/home/phred/dev/sl/httpd2/bin/httpd APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS=/home/phred/dev/sl/httpd2/bin/apxs \ /home/phred/dev/perl/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -bugreport -verbose=0 setting ulimit to allow core files ulimit -c unlimited; /home/phred/dev/perl/bin/perl /home/phred/dev/svn/modperl/Apache-Test/t/TEST -bugreport -verbose=0 looking for module mod_mime.so looking for module mod_alias.so /home/phred/dev/sl/httpd2/bin/httpd -d /home/phred/dev/svn/modperl/Apache-Test/t -f /home/phred/dev/svn/modperl/Apache-Test/t/conf/httpd.conf -D APACHE2 using Apache/2.2.4 (prefork MPM) waiting 60 seconds for server to start: ok (waited 0 secs) server localhost.localdomain:8529 started adding source lib /home/phred/dev/svn/modperl/Apache-Test/lib to @INC adding source lib /home/phred/dev/svn/modperl/Apache-Test/lib to @INC adding source lib /home/phred/dev/svn/modperl/Apache-Test/lib to @INC adding source lib /home/phred/dev/svn/modperl/Apache-Test/lib to @INC t/alltest/all............skipped all skipped: testing all.t t/alltest2/all...........skipped all skipped: testing more than one all.t t/bad_coding.............ok
t/cookies................skipped all skipped: cannot find one of cgi or cgid t/more/all...............skipped all skipped: cannot find module 'mod_perl.c' t/next_available_port....skipped all skipped: cannot find one of cgi or cgid, cannot find module 'mod_env.c' t/ping...................ok
t/redirect...............skipped all skipped: cannot find module 'mod_alias.c' t/request................ok
t/sameinterp.............skipped all skipped: cannot find module 'mod_perl.c' All tests successful, 7 tests skipped. Files=10, Tests=13, 4 wallclock secs ( 3.73 cusr + 0.41 csys = 4.14 CPU)
|
| | 2 answer | Add comment |
Saturday, 13 October 2007
|
| possible pnotes refcounting bug ? Torsten Foertsch 10:48:25 |
| | Hi,
this is a snippet from modperl_util.c:modperl_pnotes()
if (key) { STRLEN len; char *k = SvPV(key, len);
if (val) { retval = *hv_store(*pnotes, k, len, SvREFCNT_inc(val), 0); } else if (hv_exists(*pnotes, k, len)) { retval = *hv_fetch(*pnotes, k, len, FALSE); } } else { retval = newRV_inc((SV *)*pnotes); }
return retval ? SvREFCNT_inc(retval) : &PL_sv_undef;
I am wondering whether the REFCNT is always right. *pnotes is a HV. If the function is called without a key argument the else branch newRV_inc increments the REFCNT of the HV, right? Then the return statement in the last line increments it again? Am I wrong?
Torsten
|
| | 4 answer | Add comment |
Thursday, 11 October 2007
|
| [suggestion] Change branching instructions to use svnmerge Philippe M. Chiasson 19:26:43 |
| | In preparing for creating a branch for Torsten's threading work, I looked at our BRANCHING document, and it's associated script build/svn.remerge.
Instead, I'd like to push forward a great svn merge tool, svnmerge[1]
It's nice, simple, and makes managing branches a breeze. I've been using it at $work, and it's very nice. I am volounteering to update the BRANCHING document to reflect how to use svnmerge instead, but for the curious, it's something like:
$ trunk/> svnmerge avail 1234: Added foo bar 1245: Delete baz $ trunk/> svnmerge merge -r 1234, 1245 $ trunk/> svn ci -m'merged bla bla from branch' $ trunk/> svnmerge avail $ trunk/>
It basically keeps track of what has been merged and where, as well as what's available for merging. I hate to say it, but somewhat like Perforce for those in the know
1: http://www.orcaware.com/svn/wiki/Svnmerge.py
------------------------------------------------------------------------ Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
|
| | 3 answer | Add comment |
Wednesday, 10 October 2007
|
| svn write access Torsten Foertsch 23:36:19 |
| | Hi,
I have been working now for some time on that threading / interpreter stuff. The whole patch is quite big by now. Would it be possible to create a new branch in the svn for that and give me write permission? Or simply create a new branch where the stuff can be checked in by someone else?
Thanks, Torsten
|
| | 1 answer | Add comment |
|
| xs maps Torsten Foertsch 15:47:54 |
| | Hi,
can someone shed some light on the first characters in *_structures.map files? For example in
<apr_bucket_type_t> < name - num_func ... </apr_bucket_type_t>
<apr_bucket>
link < type ... </apr_bucket>
<apr_bucket_brigade> ~ pool ... </apr_bucket_brigade> ... <apr_uri_t> & scheme hostinfo ... - dns_resolved </apr_uri_t>
What do these [ $%><~-?&!] mean?
$ perl -MData::Dumper -ne '/^(.)\s/ and $h{$1}++; END{print Dumper(\%h)}' *_structures.map $VAR1 = { '$' => 10, ' ' => 134, '%' => 6, '#' => 6, '>' => 24, '~' => 14, '-' => 48, '?' => 2, '&' => 14, '<' => 81, '!' => 12 };
Torsten
|
| | 2 answer | Add comment |
Monday, 8 October 2007
|
| Re: Apache2::SizeLimit & Linux::Smaps on x86_64 Torsten Foertsch 10:23:39 |
| | On Sunday 07 October 2007 23:29, Max Kanat-Alexander wrote:
So it looks like it works fine for what smem is doing, but it somehow doesn't work right for Apache2::SizeLimit. In your modperl environment "use warnings FATAL=>qw/all/" is active. Hence, the portable warning is turned into a portable error. That's all.
Torsten
|
| | Add comment |
Sunday, 7 October 2007
|
| Re: mod_rewrite is working strangely while using mod_perl Geoffrey Young 18:59:46 |
| |
Marco Bretschneider wrote:
Hi, I reported a bug that seems to be related to mod_rewrite of apache. It turns out, that the problem only occurs while using mod_perl. Note, that everything else is working fine with mod_perl. Anyway I'm not quite sure where this bug belongs to (mod_perl or mod_rewrite). I was asked to report a bug to your list too. Please have a look at please explicitly add
+SetupEnv
to your PerlOptions under /folder
fwiw, I just added a test for this to the mod_perl svn sources - it's not an .htaccess-based test but it does show env variables coming through.
for the most part, the env communication between mod_rewrite and anyone else (mod_perl, mod_cgi, whomever) is pretty simple and clear - mod_rewrite populates the subprocess_env table, then mod_cgi or mod_perl calls a core apache API to populate %ENV at content-generation time.
so, I'd like you to try a few things...
first, please verify that this is not a problem with mod_cgi as well. that is, take your same setup, but use
SetHandler cgi-script
for your test and see if the problem persists. if mod_cgi does the right thing then I'll look into it further.
--Geoff
|
| | 2 answer | Add comment |
Friday, 5 October 2007
|
| Segmentation fault Grant 11:59:48 |
| | I'm getting some entries like this in my error_log:
[Tue Sep 28 06:57:40 2004] [notice] child pid 25997 exit signal Segmentation fault (11)
Can anyone give me any advice on where to start with this?
- Grant
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 51 answer | Add comment |
Monday, 1 October 2007
|
| Please Help Guest 11:24:21 |
| | Greetings, I'm trying to get SSL working on Apache 1.3 on a Sun box - but everytime I run the config test it tells either something misspelled - which it isn't i've checked that - or that the module isn't loaded but in the httpd.conf it is define <IfModule mod_ssl.c> Include conf/ssl.conf </IfModule>
can anyone give me any advice? THanks, Bobbie
|
| | 116 answers | Add comment |
Sunday, 30 September 2007
|
| Seeking (Mod)Perl Wisdom Torsten Foertsch 10:07:57 |
| | Hi,
the a pointer to current interpreter is somehow written to the Perl interpreter itself by this macro:
#ifndef HvPMROOT # if MP_PERL_VERSION_AT_LEAST(5, 9, 5) #define MP_THX_INTERP_SET(thx, interp) \ ((XPVMG*)SvANY(*Perl_Imodglobal_ptr(thx)))->xmg_u.xmg_magic = (MAGIC*)interp # else #define MP_THX_INTERP_SET(thx, interp) \ ((XPVMG*)SvANY(*Perl_Imodglobal_ptr(thx)))->xmg_magic = (MAGIC*)interp # endif #else #define MP_THX_INTERP_SET(thx, interp) \ HvPMROOT(*Perl_Imodglobal_ptr(thx)) = (PMOP*)interp #endif
What is HvPMROOT and what is Perl_Imodglobal_ptr? Are these normal Perl variables that can also be accessed from Perl level? If not why are here special variables used? Can that not be something like $Modperl::CurrentInterpreter or so?
Torsten
|
| | 1 answer | Add comment |
Thursday, 27 September 2007
|
| Help ! Kaveh Ghahremani 23:06:49 |
| | I have put together Apache 2.0.35, and the Tomcat 4.0.3 and JBoss 3.0RC1 package and tried to integrate them. Everything seems to be working well and JBoss/Tomcat starts with no errors, and Apache gives a Syntax OK when I do a configtest.
But when I start Apache, I get the following error in the JBoss log which seems to be related to the Tomcat engine:
16:04:08,933 INFO [Server] JBoss (MX MicroKernel) [3.0.0RC1 Date:200204150356] Started in 0m:41s:199ms 16:05:01,361 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:32791 to /127.0.0.1:8008 16:05:01,388 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:32792 to /127.0.0.1:8008 16:05:01,392 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:32793 to /127.0.0.1:8008 16:05:01,397 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:32794 to /127.0.0.1:8008 16:05:01,399 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConnector] Connection from /127.0.0.1:32795 to /127.0.0.1:8008 16:05:01,431 INFO [Engine] WarpHost[kaveman.ath.cx]: Installing web application at context path /examples from URL file:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/catalina/webapps/examples 16:05:01,449 INFO [Engine] WebappLoader[/examples]: Deploying class repositories to work directory /usr/local/jboss-3.0.0RC1_tomcat-4.0.3/catalina/work/kaveman.ath.cx/exam ples 16:05:01,466 INFO [Engine] StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 16:05:01,468 INFO [Engine] StandardManager[/examples]: Seeding of random number generator has been completed 16:05:01,611 INFO [Engine] ContextConfig[/examples]: Added certificates -> request attribute Valve 16:05:01,612 INFO [Engine] ContextConfig[/examples]: Configured an authenticator for method FORM 16:05:01,636 ERROR [Engine] StandardContext[/examples]: Error configuring application listener of class listeners.ContextListener java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla ssLoader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader .java:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1243) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j ava:3142) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3378 ) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpC onfigurationHandler.java:313) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpC onfigurationHandler.java:117) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.jav a:189) at java.lang.Thread.run(Thread.java:536) 16:05:01,643 ERROR [Engine] StandardContext[/examples]: Error configuring application listener of class listeners.SessionListener java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla ssLoader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader .java:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1243) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j ava:3142) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3378 ) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.apache.catalina.core.StandardHost.install(StandardHost.java:714) at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(WarpC onfigurationHandler.java:313) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpC onfigurationHandler.java:117) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.jav a:189) at java.lang.Thread.run(Thread.java:536) 16:05:01,644 INFO [Engine] StandardContext[/examples]: Skipped installing application listeners due to previous error(s) 16:05:01,645 INFO [Engine] StandardContext[/examples]: Context startup failed due to previous errors 16:05:01,692 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 16:05:01,693 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 16:05:01,693 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 16:05:01,694 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 16:05:01,695 ERROR [Engine] [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0)
Can anyone help me with this ?
Thanks in advance
|
| | 538 answers | Add comment |
|
| What is PERL_SET_CONTEXT for? Torsten Foertsch 16:28:35 |
| | Hi,
in modperl_callback.c I have found this piece of code:
if (r || c) { interp = modperl_interp_select(r, c, s); aTHX = interp->perl; } else { /* Child{Init,Exit}, OpenLogs */ aTHX = scfg->mip->parent->perl; PERL_SET_CONTEXT(aTHX); }
"man perlembed" says:
Note the calls to PERL_SET_CONTEXT(). These are necessary to initialБ ize the global state that tracks which interpreter is the "current" one on the particular process or thread that may be running it. It should always be used if you have more than one interpreter and are making perl API calls on both interpreters in an interleaved fashion.
PERL_SET_CONTEXT(interp) should also be called whenever "interp" is used by a thread that did not create it (using either perl_alloc(), or the more esoteric perl_clone()).
So, is it an error not to call PERL_SET_CONTEXT in the if-branch?
Shouldn't PERL_SET_CONTEXT be called every time an interpreter is selected?
Thanks, Torsten
|
| | 2 answer | Add comment |
|
| Re: mod_auth_ldap vs mod_ldap (was: Re: authz / authn
and mod_auth_ldap) Justin Erenkrantz 11:32:00 |
| | --On Wednesday, January 22, 2003 8:54 AM +0200 Graham Leggett <minfrin@sharp.fm> wrote:
mod_ldap is a connection pool and query cache, and can be reused by> other apache modules that require ldap, such as a potential> DAV-ldap module, or a proxy_ldap module, so no - I'd say a> combination would be a bad idea. I've got to think that perhaps that connection pooling and query caching code is a better fit in apr-util than in httpd. I don't see a reason why that must be in httpd. If we had it in apr-util, it'd be easier for APR apps to write solid LDAP code.
In fact, I thought that was the original plan. I recall that some people weren't too comfortable with the pooling code in APR-util. But, I still think it makes sense... -- justin
|
| | 3 answer | Add comment |
Tuesday, 25 September 2007
|
| [Fwd: Re: Apache::Reload crash patch] Matt Sergeant 12:57:14 |
| | FYI.
-------- Original Message -------- Subject: Re: Apache::Reload crash patch Resent-Date: Mon, 24 Sep 2007 07:28:58 -0400 Resent-From: Liam Bryan <liam@richard-group.com> Resent-To: matt@sergeant.org Date: Mon, 23 Apr 2007 08:10:06 -0400 From: Liam Bryan <liam@richard-group.com> To: Liam Bryan <liam@richard-group.com>
Matt:
I haven't heard back from you yet with regards to this aspect of Apache::Reload. I was wondering if you had had a chance to review it. Thanks!
On Mar 15, 2007, at 08:36, Liam Bryan wrote:
Matt: At our company, we use the Apache::Reload module in most of our production installations, since we will often need to make adjustments without a restart of Apache. We manage multiple sites; and put site-specific customizations into separate .pm files. But, if one of these custom modules throws a compile error, then Apache::Reload will crash on line 158: Compilation failed in require at /Library/Perl/5.8.7/darwin-2level/ Unfortunately, this error is thrown in Apache, and thus crashes every site we're managing, not just the specific customized site. We found that by wrapping the particular error with an eval{} and then trapping $@, we could prevent this error from cascading across all of our managed sites. Here's what we've customized it to be: eval {require $key;}; warn("Apache::Reload: FAILED $package:\n\t$@") if $@; The eval{} does add some overhead, but a fairly negligible amount. If you'd like more detail, feel free to ask me. Thanks! Liam Bryan The Richard Group, Inc. liam@richard-group.com 703.584.5804 Liam Bryan The Richard Group, Inc. liam@richard-group.com http://richard-group.com 703.584.5804
|
| | 2 answer | Add comment |
Monday, 3 September 2007
|
| Please help! :) Julie Ann 12:08:02 |
| | I was using dk3.com's discussion board ( a modified version of php) when they switched to Apache. Not only can I not access my old boards (neither can the forum members) I also cannot create any new ones.
cabin.board.dk3.com beachouse.board.dk3.com loft.board.dk3.com castle.board.dk3.com
Is this just a matter of waiting for dk3 to bring up all my content, or is there anything I can do? Or should I start searching for new boards? There was no warning whatsoever.
Thanks guys!
Julie
__________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 158 answers | Add comment |
Sunday, 26 August 2007
|
| Problems building mod_perl-2.0.3 on Win32 with VC8 Steve Hay 00:11:08 |
| | I'm trying to build mod_perl-2.0.3 on Win32 with VC8 but I can't get the server to start up with mod_perl loaded. It starts up fine without it.
I've built perl-5.8.8 together with a series of patches that add support for building it with VC8. (perl-5.9.5 would work just as well since it already includes them, but I want something more "stable" than that.) That works OK and passes all tests.
I've then built httpd-2.2.4 together with two patches that add support for building that with VC8 (these are revisions 416160 and 495126 from svn.apache.org). That also works OK, and the server starts up and shows the "It works!" page.
Next up I installed apxs-0.6 and built mod_perl-2.0.3 as follows:
perl Configure.pl --with-apache2=C:/apache2.2 --with-apache-prog=httpd.exe perl Makefile.PL MP_AP_PREFIX=C:/apache2.2 nmake
That went off without a hitch, but when I come to run "nmake test" I find that the server doesn't start up. It loads perl58.dll OK, but won't load mod_perl.so. My httpd.conf file is the default except for a change to the ServerName directive plus the addition of these two lines:
LoadFile C:\perl5\bin\perl58.dll LoadModule perl_module modules/mod_perl.so
When I ran "depends mod_perl.so" I found that httpd's libapr*.dll's could not be found, so I added C:\apache2.2\bin to my PATH and tried again. Now "depends mod_perl.so" shows no dependencies are missing but the server still won't start up. Here's the output from running "httpd -t -e debug":
[Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module actions_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module alias_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module asis_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module auth_basic_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module authn_default_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module authn_file_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module authz_default_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module authz_groupfile_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module authz_host_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module authz_user_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module autoindex_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module cgi_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module dir_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module env_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module imagemap_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module include_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module isapi_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module log_config_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module mime_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module negotiation_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module setenvif_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(246): loaded module userdir_module [Wed Aug 22 11:21:49 2007] [debug] mod_so.c(325): loaded file C:\\perl5\\bin\\perl58.dll httpd: Syntax error on line 116 of C:/apache2.2/conf/httpd.conf: Cannot load C:/apache2.2/modules/mod_perl.so into server: The specified module could not be found.
I'm now at a loss as to what the problem is. Any ideas?
I then thought that I'd try building the latest 2.2.x snapshot instead (httpd_20070822041638.tar.gz), just in case I've missed some other relevant changes for building with VC8. That works fine (the server starts up without mod_perl), but now I can't build mod_perl-2.0.3 against it: I get the following error when the build reaches Apache2::Access:
link -out:..\..\..\blib\arch\auto\Apache2\Access\Access.dll [...] Access.obj : error LNK2019: unresolved external symbol _ap_requires referenced in function _mpxs_ap_requires ..\..\..\blib\arch\auto\Apache2\Access\Access.dll : fatal error LNK1120: 1 unresolved externals
Sure enough, ap_requires() has been removed from server/core.c in the current httpd source. I tried mod_perl from svn, but that still calls ap_requires().
Any straws to clutch at would be gratefully appreciated. We're currently in the process of ditching our old compiler (VC6) and I really need to get mod_perl-2 working with VC8!
|
| | 11 answers | Add comment |
Tuesday, 14 August 2007
|
| Simple perl question Israel Brewster 23:35:43 |
| | I don't know if what I am trying to do here is even possible (sane?) but I thought I'd ask. I am running Apache 1.3.29 on an OpenBSD 4.0 system, with Apache chrooted to /var/www. I have a perl script CGI (it has the .cgi extention, not .pl, but is actually a perl script) that I need to run. Currently, the script is written to run using the system perl interpreter, with the first line of the script being #!/ usr/bin/perl This obviously doesn't work, since when it runs as a CGI it is chrooted to /var/www, and can not see /usr/bin. Now I would think that Apache should be able to run this script using the perl module, which I have installed, but I can't seem to get it to work. Could someone point me to something that tells me how to properly enable/run perl scripts in Apache? I looked at mod_perl website, but all it says is to add a code block like the following:
Alias /perl/ /home/httpd/perl/ PerlModule Apache::Registry <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI allow from all PerlSendHeader On </Location>
which just gives me an 'Invalid command 'PerlModule' This would imply to me that mod_perl isn't being loaded, in spite of being installed, but that leaves me needing to know how to load the perl module. Adding a line like LoadModule mod_perl /usr/local/lib/mod_perl.so (which is the correct path to the mod_perl.so file) just gives me a "Can't locate API module structure `mod_perl' in file /usr/local/lib/ mod_perl.so: Unable to resolve symbol" What am I missing here? How can I get Apache to run perl scripts? Thanks for any assistance that can be provided
----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service INC. 5245 Airport Industrial Rd Fairbanks, AK 99709 -----------------------------------------------
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 24 answer | Add comment |
Tuesday, 7 August 2007
|
| Apache2::Reload - SameInterp refactoring Guest 21:25:31 |
| | Hi all,
I was hacking on getting the Apache2::Reload distro independent today and have identified a few things that seem like they are coupled to this release.
TestCommon::SameInterp is used by t/modules/reload.t, but currently resides in t/lib/TestCommon.
There's a note in SameInterp which follows:
META: consider merging those into Apache::TestRequest (or add a new module, e.g. Apache::TestRequestSameInterp)
Considering that I need SameInterp to run t/modules/reload.t, I think that this new module idea is a great one. Here are some suggested moves to make this happen by moving it out of the modperl repo and into Apache::Test. It's not all working yet on my setup but I wanted to run this by the group to get some feedback on the general direction here.
A + Apache-Test/t/response/TestApache2/sameinterp.pm A + Apache-Test/lib/Apache/TestRequestSameInterp.pm A Apache-Test/t/apache2/all.t A Apache-Test/t/apache2/sameinterp.t D t/modperl/sameinterp.t D t/response/TestModperl/sameinterp.pm
Index: t/apr/pool_lifetime.t =================================================================== --- t/apr/pool_lifetime.t (revision 560637) +++ t/apr/pool_lifetime.t (working copy) @@ -4,7 +4,7 @@ use Apache::Test; use Apache::TestUtil; use Apache::TestRequest; -use TestCommon::SameInterp; +use Apache::TestRequestSameInterp;
plan tests => 2, need 'HTML::HeadParser';
Index: t/modules/reload.t =================================================================== --- t/modules/reload.t (revision 560637) +++ t/modules/reload.t (working copy) @@ -4,10 +4,9 @@ use Apache::Test; use Apache::TestUtil; use Apache::TestRequest; +use Apache::TestRequestSameInterp; use File::Spec::Functions qw(catfile);
-use TestCommon::SameInterp; - plan tests => 3, need 'HTML::HeadParser';
my $test_file = catfile Apache::Test::vars("serverroot"), Index: t/modperl/cookie2.t =================================================================== --- t/modperl/cookie2.t (revision 560637) +++ t/modperl/cookie2.t (working copy) @@ -14,7 +14,7 @@ use Apache::Test; use Apache::TestUtil; use Apache::TestRequest; -use TestCommon::SameInterp; +use Apache::TestRequestSameInterp;
plan tests => 3, need 'HTML::HeadParser';
Index: t/modperl/cookie.t =================================================================== --- t/modperl/cookie.t (revision 560637) +++ t/modperl/cookie.t (working copy) @@ -19,9 +19,8 @@ use Apache::Test; use Apache::TestUtil; use Apache::TestRequest; +use Apache::TestRequestSameInterp;
-use TestCommon::SameInterp; - plan tests => 3, need 'HTML::HeadParser';
my $module = 'TestModperl::cookie';
... probably half a dozen other modules which require this change also
|
| | 2 answer | Add comment |
Friday, 3 August 2007
|
| modperl_interp_pool_select Torsten Foertsch 22:54:56 |
| | Hi,
is it valid to say that modperl_interp_pool_select is called only at request time and hence the passed pool is allways the request pool?
I have run the test suite and in the few occasions this function is called it is the request pool. But that does not mean that it allways is.
Torsten
|
| | 1 answer | Add comment |
Thursday, 26 July 2007
|
| Help needed Karthik 11:57:33 |
| | Hi, I need to know how to start a cgi/perl/exe from apache under user privelage rather than NT AUTHORITY\SYSTEM on Windows 2000. At present when I start my perl program it shows the owner as NT AUTHORITY\SYSTEM and not the user
karthik
|
| | 154 answer | Add comment |
Tuesday, 24 July 2007
Friday, 13 July 2007
|
| [Fwd: MP2: Patch to fix dynamic loading under OpenBSD (Was: Patches
for two problems under OpenBSD) Geoffrey Young 23:42:38 |
| |
-------- Original Message -------- Subject: MP2: Patch to fix dynamic loading under OpenBSD (Was: Patches for two problems under OpenBSD) Date: Sun, 10 Jun 2007 20:38:53 +0200 From: Simon Bertrang <janus@errornet.de> To: modperl@perl.apache.org References: <20070609182229.GD2049@codefish>
On Sat, Jun 09, 2007 at 08:22:30PM +0200, Simon Bertrang wrote:
Hi, when porting libapreq2 to OpenBSD we noticed a problem with a workaround that doesn't apply anymore ( APR.pm): $OpenBSD: patch-xs_APR_APR_APR_pm,v 1.1 2007/06/09 16:02:04 martynas Exp $ --- xs/APR/APR/ APR.pm.o rig Mon Nov 20 01:31:02 2006 +++ xs/APR/APR/ APR.pm Sat Jun 9 18:10:04 2007 @@ -23,7 +23,7 @@ our @ISA = qw(DynaLoader); # XXX: see xs/ModPerl/Const/ Const.pm for issues of using 0x01 use Config (); use constant DL_GLOBAL => - ( $Config::Config{dlsrc} eq 'dl_dlopen.xs' && $^O ne 'openbsd' ) ? 0x01 : 0x0; + ( $Config::Config{dlsrc} eq 'dl_dlopen.xs' ) ? 0x01 : 0x0; sub dl_load_flags { DL_GLOBAL } unless (defined &APR::XSLoader::BOOTSTRAP) { Here's a diff against svn. The second thing from my previous mail is fixed already as told by Jonathan Vanasco.
Regards, Simon
Index: xs/APR/APR/APR.pm =================================================================== --- xs/APR/APR/APR.pm (revision 545917) +++ xs/APR/APR/APR.pm (working copy) @@ -23,7 +23,7 @@ # XXX: see xs/ModPerl/Const/Const.pm for issues of using 0x01 use Config (); use constant DL_GLOBAL => - ( $Config::Config{dlsrc} eq 'dl_dlopen.xs' && $^O ne 'openbsd' ) ? 0x01 : 0x0; + ( $Config::Config{dlsrc} eq 'dl_dlopen.xs' ) ? 0x01 : 0x0; sub dl_load_flags { DL_GLOBAL }
unless (defined &APR::XSLoader::BOOTSTRAP) {
|
| | 2 answer | Add comment |
Wednesday, 11 July 2007
|
| [PATCH] Check AV* is not NULL before calling av_undef() Steve Hay 22:29:14 |
| | The attached patch stops mod_perl-1.x from calling av_undef() on a NULL AV*.
This fixes some horrible nastiness when using bleadperl, which no longer returns early from av_undef() in the case that the AV* is NULL as of perl change #26513.
Would someone please be kind enough to take a quick look and +1 it if looks OK before I commit?
(mod_perl-2.x seems not to use av_undef() anywhere, so no similar change will be required there.)
--
Index: src/modules/perl/mod_perl.c =================================================================== --- src/modules/perl/mod_perl.c (revision 553245) +++ src/modules/perl/mod_perl.c (working copy) @@ -277,13 +277,17 @@ mp_request_rec = 0; - av_undef(orig_inc); - SvREFCNT_dec((SV*)orig_inc); - orig_inc = Nullav; + if (orig_inc != Nullav) { + av_undef(orig_inc); + SvREFCNT_dec((SV*)orig_inc); + orig_inc = Nullav; + } - av_undef(cleanup_av); - SvREFCNT_dec((SV*)cleanup_av); - cleanup_av = Nullav; + if (cleanup_av != Nullav) { + av_undef(cleanup_av); + SvREFCNT_dec((SV*)cleanup_av); + cleanup_av = Nullav; + } #ifdef PERL_STACKED_HANDLERS hv_undef(stacked_handlers); @@ -1159,9 +1163,11 @@ perl_clear_env(); /* reset @INC */ - av_undef(GvAV(incgv)); - SvREFCNT_dec(GvAV(incgv)); - GvAV(incgv) = Nullav; + if (GvAV(incgv) != Nullav) { + av_undef(GvAV(incgv)); + SvREFCNT_dec(GvAV(incgv)); + GvAV(incgv) = Nullav; + } GvAV(incgv) = av_copy_array(orig_inc); /* reset $/ */
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org |
| | 4 answer | Add comment |
Wednesday, 4 July 2007
|
| httpd works, no errors but can not get html page in browser Mark 00:28:38 |
| | Hi,
I have just installed httpd-2.0.45 with no options in ./configure
Only a few changes made in the default httpd.conf: User wwwrun Group nogroup ServerName 192.168.1.193:80
I use Linux, SuSE 6.2 (original) but upgraded the kernel to 2.4.20.
Output error_log: after starting httpd: [Tue Jun 03 22:26:15 2003] [notice] Apache/2.0.45 (Unix) configured -- resuming normal operations
Output access_log 127.0.0.1 - - [03/Jun/2003:22:09:09 +0200] "GET / HTTP/1.0" 200 1968 192.168.1.193 - - [03/Jun/2003:22:09:32 +0200] "GET / HTTP/1.0" 200 1968
but i don't get any thing on either my browser on 192.168.1.193 or even on the server using lynx: Looking up localhost first. Looking up localhost. Making HTTP connection to localhost. Sending HTTP request. HTTP request sent; waiting for response. Alert!: Unexpected network read error; connection aborted. Can't Access `http://localhost/' Alert!: Unable to access document.
lynx: Can't access startfile (same if i use the 192.1.168.193 instead of localhost)
Has anyone got an idea what this can be? I'm boggled....
Thanks & Cheers Mark
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org
|
| | 3 answer | Add comment |
Thursday, 28 June 2007
|
| Rental/Sale Latest VoipSWITCH 2.0.0.879+All Modules+Training+Support From Solution4VOIP Guest 02:52:12 |
| | Dear Friends:
Want to setup VOIP company, a business under your own brand name? We have complete solution to launche VOIP (VOice Over Internet Protocol) company. All support comes included.
Softswitch is the main element of the platform, which merges the functionality of the following VOIP architecture’s elements.
H323 switch
H323 gatekeeper
SIP Proxy
SIP registrar
Each of the described elements can operate simultaneously with the others. Moreover, the clients, regardless of the protocol, or the way they transfer connections, can connect between one another. This option allows connecting the networks, which because of the differences in implemented protocols or dialects inside the particular protocol, cannot directly transfer connection between one another. Implementing Solution4VOIP as a central traffic controller also introduces a number of additional management, supervision and network security facilitations.
The main characteristics of the softswitch include:
· Simultaneous and transparent support of SIP and H323 protocols (sip?h323 and h323?sip translator
· Possibility of implementing various types of proxy (e.g. RTP-proxy or signaling proxy), possibility of choosing proxy for each prefix defined in dialing plan.
· Advanced routing and rating system
· Full internetworking with most commercially available switches, softswitches, session border controllers and VOIP gateways.
· VOIP equipment support
· NAT support both for SIP and h323 equipment
· Calling to sip devices behind NAT (without the necessity of configuring NAT)
· Calling among users registered to softswitch, support for dynamic IP addresses
· Authentication of VOIP equipment
o by IP address
o by ANI
o by h323id
o by the pair of login/password (according to the SIP standard)
· Flexible routing
· Individual, integrated billing system
· Managing pre-paid and post-paid accounts
· Setting up users in the VSConfig program
· Managing users, blocking, setting limits
· Generating the groups of users and managing lots
· Creating and managing tariffs, the possibility of attributing a tariff to an individual user
· Data stored in the MSSQL or MySQL database
· Graphic management interface (presentation of the statistical data, billing information, managing clients’ accounts, generating PIN, managing the tariffs, dialing plan and others)
· Graphic interface presenting the current traffic in the real time, number of the logged in clients, with the division into different types of services, presentation of logs and others
· Web interface for clients – presentation of the connections history, possibility of exporting to the file, presentation of the current account status, possibility of making payments online and others
· Easy to set up architecture
· Automatic software re-start facilities in case of system failure
· Scalability for new telecommunication services by enabling additional modules
Advantages of managing the system:
· Simplify the management processes and network configuration changes of VoIP equipment
· Unify equipment supporting different protocols (or dialects of one protocol)
· Manage concentration and routing processes of VoIP traffic
· Centralize authorization and billing tasks of VoIP calls in one point
· Hide the network structure from third parties, if necessary
· Utilize possibility of implementing value-added services such as: calling card and DID calling card system, IPPBX, SMS/ANI/PIN/DID callback system.
STANDARD APPLICATIONS
Central point of your VOIP network
Main benefits:
Management of authorization rules of VoIP-gateways
Setting up call routing rules
Provisioning of compatibility for H323 and SIP- equipment of various vendors
Security and load planning of VoIP-traffic by using optional RTP-proxying
Access to the statistical data (ASR, PDD and others)
Transparent interface of the billing system
Network security
When using RTP-proxying SoftSwitch provides a single entry point for VoIP traffic.Both for clients and carriers there is only one IP address available.
Integration of equipment with support of different protocols
One of the most important features of RSF1000 is its ability to support widely accepted signaling IP-protocols - SIP and H323. The system provides transparent converging of one protocol into another, thus allowing performing calls from one type of equipment to another.
SCALABILITY
Through launching subsequent modules, it is very convenient for a provider to extend the range of services offered. Available modules:
IVR for calling cards
Web/SMS/ANI callback (with IVR)
Reseller’s module
Online shop
CallShop
SPECIFICATIONS
Supported protocols
1 H.323 v.2 (H.245 v7, H225 v4) with/without FAST START 2 SIP (RFC 3261) 3 proxying of RTP/RTCP streams 4 Signalling proxy 5 Support of T38 (SIP, H323) 6 Transparent conversion of SIP to H323 and vice versa
Support of the Devices Behind the NAT
1 SIP-devices 2 H323-devices
Authentication
1 by IP address – SIP and H323 2 by H323ID – h323 terminals/gateways 3 by ANI (calling party number) – SIP and H323 4 by login and password- SIP equipment 5 by login and password – HearLink pc to phone/web to phone dialer (included in the package) 6 gatekeeper registration based on aliases
Intelligent routing
1 based on prefixes (the possibility of defining prefixes differentiating individual users) 2 based on accessibility of the VOIP gateway 3 based on priorities when choosing a gateway 4 depending on available voice codecs 5 depending on prefixes specified in the tariff of an individual client
Phone Numbers Translation
1 Deletion of the set number of digits from the called party number 2 Addition of the set number of digits to the called party number 3 Deletion of the set number of digits from the caller number 4 Addition of the set number of digits to the caller number 5 Virtual prefixes (for differentiation of the dialing plans)
Information for the Billing System
1 Real-time, built in billing system 2 Storage in SQL database (MSSQL or MYSQL) 3 pre-paid and post-paid accounts 4 Payments history 5 CDR – examining the logs of the calls carried out from the VSCConfig level, possibility of filtering data according to the set parameters, possibility of exporting data to the file (html, excel, txt, or csv type), presenting the CDR on the WWW pages available for clients
System Management and Control Features
1 Graphic User Interface for managing the overall functionality of the system 2 Visual presentation of current connections along with the information on their status 3 The number of statistical data presenting the information on the traffic intensity with its various parameters e.g. ASR, PDD. Possibility of limiting the number of data presented by using available filters e.g. only incoming traffic from the particular client, traffic directed to the particular gateway, or prefix etc. 4 Visual presentation of logged in clients and their current status, with the division into types of services e.g. gatekeeper users, SIP users, pc2phone, callback.
Operating Systems 1 Windows 2000, 2003, XP
------------------------------------------------------------ -----
Contact us if you are interested.
Thank you, Solution4voip.com VOIP Solution Provider Solution for Voice Over Internet Protocol (VOIP)
Email: salesATsolution4voipDOTcom MSN: SalesATsolution4voipDOTcom, SupportATsolution4voipDOTcom Phone: +1800 7816433
|
| | Add comment |
|