Re: [cpan #3861] Custom t/conf/httpd.conf.in is ignored

2003-10-01 Thread Stas Bekman
This message about Apache-Test was sent to you by guest <> via rt.cpan.org
Full context and any attached attachments can be found at:
https://rt.cpan.org/Ticket/Display.html?id=3861 >
After getting past the hurdle of notifying A::Test of the path to my 
httpd daemon, I now get the following error when testing:

-
waiting for server to start: .Syntax error on line 10 of 
/root/.cpan/build/Apache-Test-1.03/t/conf/httpd.conf:
Cannot load /usr/lib/apache/1.3/mod_log_config.so into server: 
/usr/lib/apache/1.3/mod_log_config.so: undefined symbol: ap_hook_status
!!!
server has died with status 1 (t/logs/error_log wasn't created, start 
the server in the debug mode)
-

Apparently my server needs to be configured for DSO support and have its 
modules compiled as DSO's. None of the docs mentioned these requirements 
and it is a surprising one given the fickleness of running mod_perl as a 
DSO (which is why all of my modules are compiled into the daemon).
No, as mentioned in the other followup. it inherits the httpd.conf settings 
from your global httpd.conf.

Anyhow, I saw in the README that I could create a custom httpd.conf file 
to use for testing. I copied the default t/conf/httpd.conf to 
t/conf/httpd.conf.in and removed the calls to LoadModule. I even deleted 
the original t/conf/httpd.conf file. However, my changes in the 
httpd.conf.in file were ignored when the new httpd.conf file was 
generated. Apparently the test is not using this file as its source for 
generating the httpd.conf file.

Thanks,
William

--
__
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


Re: [Fwd: [cpan #3861] Custom t/conf/httpd.conf.in is ignored]

2003-10-01 Thread Stas Bekman

This message about Apache-Test was sent to you by guest <> via rt.cpan.org
Full context and any attached attachments can be found at:
https://rt.cpan.org/Ticket/Display.html?id=3861 >
Actually, reviewing the httpd.conf file further, it appears that my
httpd.conf.in file is being used. However, the following lines are being
appended to the top of the file (which is why I am getting an error
starting the server):
-
LoadModule config_log_module "/usr/lib/apache/1.3/mod_log_config.so"
LoadModule mime_magic_module "/usr/lib/apache/1.3/mod_mime_magic.so"
LoadModule mime_module "/usr/lib/apache/1.3/mod_mime.so"
LoadModule negotiation_module "/usr/lib/apache/1.3/mod_negotiation.so"
LoadModule status_module "/usr/lib/apache/1.3/mod_status.so"
LoadModule autoindex_module "/usr/lib/apache/1.3/mod_autoindex.so"
LoadModule dir_module "/usr/lib/apache/1.3/mod_dir.so"
LoadModule cgi_module "/usr/lib/apache/1.3/mod_cgi.so"
LoadModule userdir_module "/usr/lib/apache/1.3/mod_userdir.so"
LoadModule alias_module "/usr/lib/apache/1.3/mod_alias.so"
LoadModule rewrite_module "/usr/lib/apache/1.3/mod_rewrite.so"
LoadModule access_module "/usr/lib/apache/1.3/mod_access.so"
LoadModule auth_module "/usr/lib/apache/1.3/mod_auth.so"
LoadModule expires_module "/usr/lib/apache/1.3/mod_expires.so"
LoadModule unique_id_module "/usr/lib/apache/1.3/mod_unique_id.so"
LoadModule setenvif_module "/usr/lib/apache/1.3/mod_setenvif.so"
Usernobody
Groupnogroup
ServerName localhost
Port 8529
-
Where are these getting set and how can I override them?
They are inherited from your httpd.conf installed system-wide. You probably 
have a stale one. Once you remove it it won't inherit them any longer.

__
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


Re: [cpan #3860] make test is unable to locate httpd in PATH

2003-10-01 Thread Stas Bekman

This message about Apache-Test was sent to you by guest <> via rt.cpan.org
Full context and any attached attachments can be found at:
https://rt.cpan.org/Ticket/Display.html?id=3860 >
While trying to install Apache::Test on a Perl 5.6.1 Linux system, I am 
getting the following error:

!!! no test server configured, please specify an httpd or an apxs other 
than /usr/bin/apxs or put either in your PATH. For example:
t/TEST -httpd /path/to/bin/httpd

I placed the path to the httpd daemon in my PATH environment as 
recommended, but I continue to receive the above error. I tracked this 
error message back to Apache::TestRun which checks the value of httpd 
from the configuration. This gets set in 
Apache::TestConfig::configure_httpd.

My debugging showed that this subroutine is only checking the /usr/sbin 
directory for the httpd file. Either I have something wrong with my 
setup or the configure_httpd subroutine is broken. BTW, I am using Bash 
as my shell.

I was able to get past this hurdle by running the test suite using 
t/TEST -httpd /usr/local/apache/bin/httpd
Yup, it's still in flux and the error message should be improved. Glad to see 
that you've figure how to do it. We are working on improving things on that 
front and will provide an interactive question/answer setup in the future 
releases of Apache-Test. Thanks for bearing with us.

__
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


Re: removing httpd -X from 1.3 environment

2003-10-01 Thread Geoffrey Young

+1
apache-1.3 tests fails the same way for me.
I did successfully run Apache::Peek tests with your patch under 1.3.
cool.  I'll commit it tomorrow then.
thanks for following up :)
--Geoff