Re: Carp and Apache

2005-11-11 Thread DAve

Danny Howard wrote:

Dave,

Yes.


Yes both apache servers have the same IP in httpd.conf? or Yes I am 
completely off base in my understanding?


Not certain I can go this route right now anyway as I do not have enough 
test boxes to setup a trial. There seems to be a shortage of good docs 
on using CARP outside of using it with PF.


Thanks,

DAve



The trick with CARP is that it is an IP-level heartbeat, so if you are
running Apache, you want to carp up after you start apache, and carp
down before you stop Apache.


From some test boxes, web0:

ifconfig_fxp1=inet 192.168.1.210 netmask 255.255.255.0
defaultrouter=192.168.1.1
cloned_interfaces=carp0 carp1

Then, web0 application config file:
export CARP_PASS=mekmitasdigoat
# MASTER
export CARP_carp0_IP=192.168.1.206
export CARP_carp0_VHID=1
# SLAVE
export CARP_carp1_IP=192.168.1.207
export CARP_carp1_VHID=2
export CARP_carp1_SKEW=100

Next, the Application control script:
# CARP
carp_ifs=`ifconfig -l | tr ' ' '\n' | grep carp`

# Set up CARP
for carp_if in $carp_ifs; do
eval   carp_ip=\$CARP_${carp_if}_IP
eval carp_vhid=\$CARP_${carp_if}_VHID
eval carp_skew=\$CARP_${carp_if}_SKEW

if [ -n $carp_vhid ]; then
carp_vhid=vhid $carp_vhid
fi
if [ -n $carp_skew ]; then
carp_skew=advskew $carp_skew
fi

if [ -n ${carp_ip} -a -n ${carp_vhid} ]; then
ifconfig $carp_if pass $CARP_PASS $carp_vhid $carp_skew 
$carp_ip
ifconfig $carp_if down
else
echo WARNING: $carp_if but missing CARP_${carp_if}_IP or 
CARP_${carp_if}_VHID!
fi
done

[... later ...]
if [ $status -eq 0 ]; then
  echo Apache successfully ${cmd}ed
  echo Ready to CARP UP!
  if [ -n ${carp_ifs} ]; then
for carp_if in $carp_ifs; do
eval   carp_ip=\$CARP_${carp_if}_IP
eval carp_vhid=\$CARP_${carp_if}_VHID
if [ -n ${carp_ip} -a -n ${carp_vhid} ]; then
ifconfig $carp_if up
fi
done
sysctl net.inet.carp.preempt=1
  fi
else
  echo Apache failed to $cmd
  exit 2
fi


Okay, so that's really quite a mess, but basically:
* Set cloned_interfaces in rc.conf to create carpn at boot.
* One IP alias and VHID per CARP IP.
* Set up the backup server with higher advskew.
* For availability, teach you apachectl script to ifconfig the carp
  interfaces, ifconfig down, start apache, ifconfig up, and ifconfig
  down before stopping / restarting apache.

Cheers,
-danny



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


PHP 4.4.0-4.4.1 apache module include() problem

2005-11-04 Thread Max Belushkin
Dear all,

  I've just updated from PHP 4.4.0 to PHP 4.4.1 (on FreeBSD 5.1-RELEASE, 
Apache 2.0.55). And now for a lot of scripts (the only common thing between 
them is that they connect to mysql) I have the following strange behaviour:
after apache startup (prefork mode), everything works fine for 3-4 requests. 
After that, the following error starts appearing at random, more and more 
often as time goes by:
Cannot redeclare mmquery() (previously declared in /home/test/func_base.php:9) 
in /home/test/func_base.php on line 9

  At this point, mysql sockets start stacking as well, they do not get closed 
(netstat -ta shows more and more with each above error message).

  Now, func_base.php is included with include_once. I tried even changing it 
to if (!$inc_done) include_once(func_base.php); and setting $inc_done=1 
in func_base.php - the exact same behaviour persists.

  This was not the case with PHP 4.4.0 just 2 hours ago.

  I've searched google, have seen similar questions but related to older PHP 
versions, but no reasonable solutions.

  I would be most grateful for any pointers...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PHP 4.4.0-4.4.1 apache module include() problem

2005-11-04 Thread Garrett Cooper
Max Belushkin wrote:

Dear all,

  I've just updated from PHP 4.4.0 to PHP 4.4.1 (on FreeBSD 5.1-RELEASE, 
Apache 2.0.55). And now for a lot of scripts (the only common thing between 
them is that they connect to mysql) I have the following strange behaviour:
after apache startup (prefork mode), everything works fine for 3-4 requests. 
After that, the following error starts appearing at random, more and more 
often as time goes by:
Cannot redeclare mmquery() (previously declared in /home/test/func_base.php:9) 
in /home/test/func_base.php on line 9

  At this point, mysql sockets start stacking as well, they do not get closed 
(netstat -ta shows more and more with each above error message).

  Now, func_base.php is included with include_once. I tried even changing it 
to if (!$inc_done) include_once(func_base.php); and setting $inc_done=1 
in func_base.php - the exact same behaviour persists.

  This was not the case with PHP 4.4.0 just 2 hours ago.

  I've searched google, have seen similar questions but related to older PHP 
versions, but no reasonable solutions.

  I would be most grateful for any pointers...
  

The web dev for our dept upgraded some software for a wiki to the
latest version because of PHP version changes, so what you may need to
do is change/upgrade any affected php software that accesses MySQL.
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Carp and Apache

2005-11-04 Thread Danny Howard
Dave,

Yes.

The trick with CARP is that it is an IP-level heartbeat, so if you are
running Apache, you want to carp up after you start apache, and carp
down before you stop Apache.

From some test boxes, web0:
ifconfig_fxp1=inet 192.168.1.210 netmask 255.255.255.0
defaultrouter=192.168.1.1
cloned_interfaces=carp0 carp1

Then, web0 application config file:
export CARP_PASS=mekmitasdigoat
# MASTER
export CARP_carp0_IP=192.168.1.206
export CARP_carp0_VHID=1
# SLAVE
export CARP_carp1_IP=192.168.1.207
export CARP_carp1_VHID=2
export CARP_carp1_SKEW=100

Next, the Application control script:
# CARP
carp_ifs=`ifconfig -l | tr ' ' '\n' | grep carp`

# Set up CARP
for carp_if in $carp_ifs; do
eval   carp_ip=\$CARP_${carp_if}_IP
eval carp_vhid=\$CARP_${carp_if}_VHID
eval carp_skew=\$CARP_${carp_if}_SKEW

if [ -n $carp_vhid ]; then
carp_vhid=vhid $carp_vhid
fi
if [ -n $carp_skew ]; then
carp_skew=advskew $carp_skew
fi

if [ -n ${carp_ip} -a -n ${carp_vhid} ]; then
ifconfig $carp_if pass $CARP_PASS $carp_vhid $carp_skew 
$carp_ip
ifconfig $carp_if down
else
echo WARNING: $carp_if but missing CARP_${carp_if}_IP or 
CARP_${carp_if}_VHID!
fi
done

[... later ...]
if [ $status -eq 0 ]; then
  echo Apache successfully ${cmd}ed
  echo Ready to CARP UP!
  if [ -n ${carp_ifs} ]; then
for carp_if in $carp_ifs; do
eval   carp_ip=\$CARP_${carp_if}_IP
eval carp_vhid=\$CARP_${carp_if}_VHID
if [ -n ${carp_ip} -a -n ${carp_vhid} ]; then
ifconfig $carp_if up
fi
done
sysctl net.inet.carp.preempt=1
  fi
else
  echo Apache failed to $cmd
  exit 2
fi


Okay, so that's really quite a mess, but basically:
* Set cloned_interfaces in rc.conf to create carpn at boot.
* One IP alias and VHID per CARP IP.
* Set up the backup server with higher advskew.
* For availability, teach you apachectl script to ifconfig the carp
  interfaces, ifconfig down, start apache, ifconfig up, and ifconfig
  down before stopping / restarting apache.

Cheers,
-danny

-- 
http://dannyman.toldme.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apache + PHP : Exec format error

2005-11-03 Thread Thomas Linton
I can't get the package WebCalendar-1.0.0 to work; I always get following
error in /var/log/httpd-error.log

(8)Exec format error: exec of
'/usr/local/www/data-dist/WebCalendar/index.php'

If I put #!/usr/local/bin/php at the beginning of the index.php it works,
however I would like to use the apache module php4_module instead of php as
CGI.

I'm running 5.4-STABLE with the pkg apache-2.0.54_4 and php4-4.4.0 (Apache
Module and CLI).
The httpd.conf includes the line LoadModule php4_module
libexec/apache2/libphp4.so.

Any ideas?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache::DBI Problems

2005-10-28 Thread Philip M. Gollucci

Cody Holland wrote:

I'm having some major issues with perl site I'm trying to get working.
I'm running FreeBSD 5.4 stable using Apache 2.0.55 and perl 5.8.7.  The
error I'm getting is:
Can't locate object method connect_on_init via package Apache::DBI
(perhaps you forgot to load Apache::DBI?)

Make sure you use version 0.9901 in my CPAN dir.


--
END

What doesn't kill us can only make us stronger.
Nothing is impossible.

Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
  http://www.liquidityservicesinc.com
   http://www.liquidation.com
   http://www.uksurplus.com
   http://www.govliquidation.com
   http://www.gowholesale.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apache::DBI Problems

2005-10-27 Thread Cody Holland
I'm having some major issues with perl site I'm trying to get working.
I'm running FreeBSD 5.4 stable using Apache 2.0.55 and perl 5.8.7.  The
error I'm getting is:
Can't locate object method connect_on_init via package Apache::DBI
(perhaps you forgot to load Apache::DBI?)

I do have 
LoadModule perl_module libexec/apache2/mod_perl.so
PerlModule Apache::DBI
in my httpd.conf file.  I'm pretty new to perl and have no idea what
I've done wrong.  Any help would greatly be appreciated.  If you need
more info from me, don't hesitate to ask.

Thanks,
Cody
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache::DBI Problems

2005-10-27 Thread Vladimir Tsvetkov
 I'm having some major issues with perl site I'm trying to get working.
 I'm running FreeBSD 5.4 stable using Apache 2.0.55 and perl 5.8.7.  The
 error I'm getting is:
 Can't locate object method connect_on_init via package Apache::DBI
 (perhaps you forgot to load Apache::DBI?)

 I do have
 LoadModule perl_module libexec/apache2/mod_perl.so
 PerlModule Apache::DBI
 in my httpd.conf file.  I'm pretty new to perl and have no idea what
 I've done wrong.  Any help would greatly be appreciated.  If you need
 more info from me, don't hesitate to ask.

Maybe you should inspect the Perl script you're trying to run, and you
should look for the following Perl statement:

use Apache::DBI;

I think it's also good to read the documentation for the Apache::DBI
module in CPAN:
http://search.cpan.org/~pgollucci/Apache-DBI-0.9901/DBI.pm
You could also try to add

PerlModule Apache::DBI  # this comes before all other modules using DBI

to start.pl. You should pay attention to the comment!!!
THIS MODULE SHOULD BE LOADED BEFORE ALL OTHER MODULES USING DBI.

What can you do next if you had configured everything correctly and
the Perl scripts are OK?
Maybe you just dont't have the Apache::DBI module installed on your
machine, and you should download it and install it then:

% perl -MCPAN -e shell

install Apache::DBI

Best Regards,
CASIUS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Carp and Apache

2005-10-24 Thread DAve

Good afternoon,

This might be a stupid question, but that never stopped me before ;^) 
I've been watching CARP and now that it is in 5.4 I would like to give 
it a try but I am not able to find much information outside of using it 
with PF.


I am curious how apache should be setup. Where httpd.conf requires an IP 
for named based hosting, should the httpd.conf contain the IP of the 
interface or the IP configured with CARP? I believe the carp interface 
is configured directly on top of the physical interface.


That question in mind, am I completely off track here? I currently have

ifconfig_em0=inet 10.0.240.140 netmask 255.255.255.0
ifconfig_em1=inet 10.0.241.140 netmask 255.255.255.0
ifconfig_em1_alias0=inet 10.0.241.143 netmask 0x
ifconfig_em1_alias1=inet 10.0.241.144 netmask 0x
ifconfig_em1_alias2=inet 10.0.241.145 netmask 0x
ifconfig_em1_alias3=inet 10.0.241.146 netmask 0x
defaultrouter=10.0.241.1

So from what I have read, simply adding the below should get me setup, 
providing that this is the rc.conf from the master


ifconfig carp0 create
ifconfig carp0 vhid 1 pass sdf899734h 10.0.241.140/24
ifconfig carp1 create
ifconfig carp1 vhid 1 pass sdf899734h 10.0.241.143/24
ifconfig carp2 create
ifconfig carp2 vhid 1 pass sdf899734h 10.0.241.144/24
ifconfig carp3 create
ifconfig carp3 vhid 1 pass sdf899734h 10.0.241.145/24
ifconfig carp4 create
ifconfig carp4 vhid 1 pass sdf899734h 10.0.241.146/24

Thanks,

DAve


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apache log rotation

2005-10-19 Thread Olivier Nicole
Hi,

If one install Apache from the ports, the logs go in /var/log, namely
in:

ssl_request_log
httpd-access.log
ssl_engine_log
httpd-error.log

Is there a clean way to rotate these logs a la newsyslog?

I know I can use newsyslog to rotate them, but then how to notify
Apache to use the new log files? I don't expect a signal HUP sent to
httpd would be enough.

Best regards,

Olivier


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache log rotation

2005-10-19 Thread Jonathan Chen
On Wed, Oct 19, 2005 at 03:54:15PM +0700, Olivier Nicole wrote:

[...]
 Is there a clean way to rotate these logs a la newsyslog?
 
 I know I can use newsyslog to rotate them, but then how to notify
 Apache to use the new log files? I don't expect a signal HUP sent to
 httpd would be enough.

It is. All you need to make sure that only the last line has the HUP
to the httpd, as newsyslog works from top to bottom. eg:

/var/log/apache/httpd-access.log644  12*$M1D0 BN
/var/log/apache/httpd-error.log 644  12*$M1D0 B   /var/run/httpd.pid

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
   Lots of folks confuse bad management with destiny
 - Kin Hubbard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache log rotation

2005-10-19 Thread Rob Pitt

Sending HUP is fine.

Olivier Nicole wrote:


Hi,

If one install Apache from the ports, the logs go in /var/log, namely
in:

ssl_request_log
httpd-access.log
ssl_engine_log
httpd-error.log

Is there a clean way to rotate these logs a la newsyslog?

I know I can use newsyslog to rotate them, but then how to notify
Apache to use the new log files? I don't expect a signal HUP sent to
httpd would be enough.

Best regards,

Olivier


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache log rotation

2005-10-19 Thread Nicolas Blais
On October 19, 2005 04:54 am, Olivier Nicole wrote:
 Hi,

 If one install Apache from the ports, the logs go in /var/log, namely
 in:

 ssl_request_log
 httpd-access.log
 ssl_engine_log
 httpd-error.log

 Is there a clean way to rotate these logs a la newsyslog?

 I know I can use newsyslog to rotate them, but then how to notify
 Apache to use the new log files? I don't expect a signal HUP sent to
 httpd would be enough.

 Best regards,

 Olivier


I use ports/sysutils/cronolog/ which does a great job transparently.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Oct 15 12:09:14 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpHDhINjG4hf.pgp
Description: PGP signature


Re: Apache log rotation

2005-10-19 Thread Garance A Drosehn

At 10:00 PM +1300 10/19/05, Jonathan Chen wrote:

On Wed, Oct 19, 2005 at 03:54:15PM +0700, Olivier Nicole wrote:

[...]

 Is there a clean way to rotate these logs a la newsyslog?

 I know I can use newsyslog to rotate them, but then how to notify
 Apache to use the new log files? I don't expect a signal HUP sent to
 httpd would be enough.


It is. All you need to make sure that only the last line has the HUP
to the httpd, as newsyslog works from top to bottom. eg:

/var/log/apache/httpd-access.log644  12*$M1D0 BN
/var/log/apache/httpd-error.log 644  12*$M1D0 B 
/var/run/httpd.pid


*ALL* lines should include the HUP request.  In the above example
you are rotating at an explicit time, but many people also depend
on the size of the file.  If they do depend on the size of the
file, then the above trick will not always work.

It used to be that you had to do some trick like the above to avoid
sending multiple HUP's to the process.  I changed that so that the
same process can be specified on many log files, and newsyslog will
first rotate all files which need rotating, and then send a single
signal to the process.  So now there is no problem caused by
specifying the same process on multiple entries in newsyslog.conf .

--
Garance Alistair Drosehn =  [EMAIL PROTECTED]
Senior Systems Programmer   or   [EMAIL PROTECTED]
Rensselaer Polytechnic Institute; Troy, NY;  USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


re: Enabling cgi scripts in apache

2005-10-06 Thread Garrett Cooper

On Oct 5, 2005, at 9:41 PM, Glenn Dawson wrote:



At 09:31 PM 10/5/2005, Garrett Cooper wrote:



Hi,
Just having problems again enabling cgi script execution in
apache. The script exists, it's the right set of permissions, and the
perl interpreter is reference correctly, as well as the following
line in the httpd.conf file:

AddHandler cgi-script .cgi




Without being able to see the config, the name of the script, the  
contents of the script,  or the directory it's in, the simple stuff  
comes to mind.


Does the AddHandler directive actually apply to the directory that  
contains the script?


Does the script end in .cgi ?

What shows up in your apache error log?

What error shows up in the browser when you try to browse to the  
script?


-Glenn



Ah, yes... should have explained more in that regard.
The server serves the file exacting as written and doesn't  
display the result that I want on the server (which is the script  
doing something for that matter).
All that I have really changed from the defaults is the  
AddHandler section, so Apache just doesn't know how to serve CGI  
files, although mod-cgi is loaded properly I think.
Just go to http://wongle.mine.nu for the script since it's a  
part of the main page.

-Garrett

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Enabling cgi scripts in apache

2005-10-05 Thread Garrett Cooper

Hi,
Just having problems again enabling cgi script execution in  
apache. The script exists, it's the right set of permissions, and the  
perl interpreter is reference correctly, as well as the following  
line in the httpd.conf file:


AddHandler cgi-script .cgi

I also restarted the server, so I'm not sure what I'm missing  
out on. Any ideas?

Versions:

[EMAIL PROTECTED] perl --version

This is perl, v5.8.6 built for i386-freebsd-64int
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic  
License or the

GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access  
to the
Internet, point your browser at http://www.perl.org/, the Perl Home  
Page.


[EMAIL PROTECTED] httpd -v
Server version: Apache/1.3.33 (Unix)
Server built:   Apr  4 2005 01:29:24

Thanks for the help in advance!
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Enabling cgi scripts in apache

2005-10-05 Thread Glenn Dawson

At 09:31 PM 10/5/2005, Garrett Cooper wrote:

Hi,
Just having problems again enabling cgi script execution in
apache. The script exists, it's the right set of permissions, and the
perl interpreter is reference correctly, as well as the following
line in the httpd.conf file:

AddHandler cgi-script .cgi


Without being able to see the config, the name of the script, the 
contents of the script,  or the directory it's in, the simple stuff 
comes to mind.


Does the AddHandler directive actually apply to the directory that 
contains the script?


Does the script end in .cgi ?

What shows up in your apache error log?

What error shows up in the browser when you try to browse to the script?

-Glenn


I also restarted the server, so I'm not sure what I'm missing
out on. Any ideas?
Versions:

[EMAIL PROTECTED] perl --version

This is perl, v5.8.6 built for i386-freebsd-64int
(with 2 registered patches, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic
License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access
to the
Internet, point your browser at http://www.perl.org/, the Perl Home
Page.

[EMAIL PROTECTED] httpd -v
Server version: Apache/1.3.33 (Unix)
Server built:   Apr  4 2005 01:29:24

Thanks for the help in advance!
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Accessing Apache

2005-10-02 Thread amcinroy
Dear support, I am trying to setup intrusion detection with snort, acid,
mysql and freebsd. I am using as a guide Hack #59 from Dru Lavigne's BSD
Hacks book. Everything is installed and working up to the point where I try
to access my webpage. When I type in http://localhost/snort/acid_main.php I
receive the message: an error occurred while loading the page. Could not
connect to localhost. I think it is a user or password related error and
have tried adding users to the mysql database with no success. Any help for
this newb would be much appreciated.


Alan McInroy


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Accessing Apache

2005-10-02 Thread Kevin Kinsey

amcinroy wrote:


Dear support, I am trying to setup intrusion detection with snort, acid,
mysql and freebsd. I am using as a guide Hack #59 from Dru Lavigne's BSD
Hacks book. Everything is installed and working up to the point where I try
to access my webpage. When I type in http://localhost/snort/acid_main.php I
receive the message: an error occurred while loading the page. Could not
connect to localhost. I think it is a user or password related error and
have tried adding users to the mysql database with no success. Any help for
this newb would be much appreciated.


Alan McInroy

 




Hi, Alan!

This isn't support, per se --- it's a mailing list.  But, it's the
primary option ;-)

Are you sure Apache is running?  Sorry for what may seem
like a dumb question, but the error message you quote is
exactly what you see, on many browsers, when httpd is not
running.

To check is Apache is running, try:

$ps -aux | grep httpd

You should see multiple lines (Maybe 4, 5, or more) that
show an httpd process is listening.

Another way to go about this would be to run `netstat -anf inet`,
and looking for a entry mentioning port 80 and LISTEN.

If you can verify that Apache is indeed running, then I might
test resolution of the localhost name.  But, it's much more
likely that you can resolve localhost fine, but Apache isn't
listening on port 80.

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


activating KQUEUE on apache 2_0_54_4

2005-09-23 Thread Dimitar Vasilev
Hi!
I apply the KQUEUE patch for apache 2.0.54_4 - make
WITH_KQUEUE_SUPPORT=yes install
but after that top -U www shows that it uses select().
Anyone knows how to activate apache to use kqueue in config file or
somewhere else?
Regards,
--
Димитър Василев
Dimitar Vassilev

GnuPG key ID: 0x4B8DB525
Keyserver: pgp.mit.edu
Key fingerprint: D88A 3B92 DED5 917E 341E D62F 8C51 5FC4 4B8D B525
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Debugging Apache with mod_auth_pam2 on 5.4

2005-09-21 Thread Brian J. McGovern
All,
I'm having a bit of an issue getting mod_auth_pam2 from the ports
collection working with the apache2 port.

I've installed the module, uncommented the config lines in httpd.conf,
and set up a .htaccess file in the virtual server's top-level data directory...

AuthName BXBLIT
AuthType Basic
require valid-user
AuthPAM_Enabled On
AuthPAM_FallThrough Off


I also set up /etc/pam.d/httpd

authrequiredpam_unix.so debug
account requiredpam_unix.so debug


The only logging I seem to be able to get is via the apache error
log, where I see:

[Wed Sep 21 15:53:13 2005] [error] [client 161.44.65.27] PAM: user '' - 
not authenticated: authentication error


for each login attempt. I'm not seeing anything at all in messages,
auth.log, etc, so I'm not even sure if apache is doing the right things.

Everything else is pretty much at install configuration. Any suggestions on
things I may want to change (e.g. syslog.conf) to start to peel the edges up
on the black box, and get a look at whats going on inside?



-Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: php --with apache error log

2005-09-08 Thread Chris St Denis
Looks like you are mixing debug and non-debug builds of php.

Do a port update to make sure your makefile is clean.
Deinstall php and all of the modules. 
Reinstall php
Reinstall the modules.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vizion
Sent: Wednesday, September 07, 2005 10:32 AM
To: Kevin Kinsey
Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
Subject: Re: php --with apache error log

On Wednesday 07 September 2005 08:54,  the author Kevin Kinsey contributed
to 
the dialogue on-
 Re: php --with apache error log: 

Vizion wrote:
I tried changing to :
extension_dir = //usr/local/lib/php/20041030
but that made no difference --still got the same error:
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open
quot;/usr/local/lib/php/20041030-debug/xml.soquot;

Puzzled

david

I suspect that a call to phpinfo() would reveal that you
built a debug build?  Never having done this myself, I
can't say exactly what you'd want to do to fix it; however,
an obvious kluge would be to create the directory
it seems to want to have, and copy the object files to it.

Kevin Kinsey
I am sure you are right -- maybe there is something odd in the Makefile.. I 
wonder if the debug build version of xml.so and pcre.so are identical?

Umph..

I will change the directories,as you suggest.. and see what happens - in the

meantime I will make a bug report

david
-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V
Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after

completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: php --with apache error log

2005-09-07 Thread Kevin Kinsey

Vizion wrote:


I tried changing to :
extension_dir = //usr/local/lib/php/20041030
but that made no difference --still got the same error:
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot;


Puzzled

david
 




I suspect that a call to phpinfo() would reveal that you
built a debug build?  Never having done this myself, I
can't say exactly what you'd want to do to fix it; however,
an obvious kluge would be to create the directory
it seems to want to have, and copy the object files to it.

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: php --with apache error log

2005-09-07 Thread Vizion
On Wednesday 07 September 2005 08:54,  the author Kevin Kinsey contributed to 
the dialogue on-
 Re: php --with apache error log: 

Vizion wrote:
I tried changing to :
extension_dir = //usr/local/lib/php/20041030
but that made no difference --still got the same error:
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open
quot;/usr/local/lib/php/20041030-debug/xml.soquot;

Puzzled

david

I suspect that a call to phpinfo() would reveal that you
built a debug build?  Never having done this myself, I
can't say exactly what you'd want to do to fix it; however,
an obvious kluge would be to create the directory
it seems to want to have, and copy the object files to it.

Kevin Kinsey
I am sure you are right -- maybe there is something odd in the Makefile.. I 
wonder if the debug build version of xml.so and pcre.so are identical?

Umph..

I will change the directories,as you suggest.. and see what happens - in the 
meantime I will make a bug report

david
-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


php --with apache error log

2005-09-06 Thread Vizion
Hi
It seems that php is looking for a directory 20041030-debug when there is only 
a directory 20041030.

Here is the output from http-error.log

Is this a config error?

Does anyone know foe to fix the problem?

Help appreciated

david

Quote from log:
-
[Tue Sep 06 14:26:20 2005] [notice] Apache/2.0.54 (FreeBSD) PHP/5.0.4 
configured -- resuming normal operations
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot;
[Tue Sep 06 14:42:11 2005] [notice] caught SIGTERM, shutting down
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot;
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot; in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot; in Unknown on line 0



-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: php --with apache error log

2005-09-06 Thread Kevin Kinsey

Vizion wrote:


Hi
It seems that php is looking for a directory 20041030-debug when there is only 
a directory 20041030.


Here is the output from http-error.log

Is this a config error?

Does anyone know foe to fix the problem?

Help appreciated

david

Quote from log:
-
[Tue Sep 06 14:26:20 2005] [notice] Apache/2.0.54 (FreeBSD) PHP/5.0.4 
configured -- resuming normal operations
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
 


snip

Try adjusting the value for extension_dir in the appropriate
php.ini file.

Note that this has moved, I think, from /usr/local/lib/php/php.ini
to /usr/local/etc/php.ini for most installations.

HTH,

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: php --with apache error log

2005-09-06 Thread Vizion
On Tuesday 06 September 2005 15:22,  the author Kevin Kinsey contributed to 
the dialogue on-
 Re: php --with apache error log: 

Vizion wrote:
Hi
It seems that php is looking for a directory 20041030-debug when there is
 only a directory 20041030.

Here is the output from http-error.log

Is this a config error?

Does anyone know foe to fix the problem?

Help appreciated

david

Quote from log:
-
[Tue Sep 06 14:26:20 2005] [notice] Apache/2.0.54 (FreeBSD) PHP/5.0.4
configured -- resuming normal operations
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open

snip

Try adjusting the value for extension_dir in the appropriate
php.ini file.

Note that this has moved, I think, from /usr/local/lib/php/php.ini
to /usr/local/etc/php.ini for most installations.
That you very much

The line extension dir line in the php.ini is:

extension_dir = ./

What value should this have?

How come it is looking for:
20041030-debug
in the first place when extension_dir is ./?
Where does it get that value from?

The directory  /usr/local/lib/php/20041030

dns1# cd /usr/local/lib/php/20041030
dns1# ls -l
total 130
-r--r--r--  1 root  wheel  89839 Sep  3 18:50 pcre.so
-r--r--r--  1 root  wheel  40993 Sep  3 18:51 xml.so

Thanks again

david



-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: php --with apache error log

2005-09-06 Thread Vizion
On Tuesday 06 September 2005 15:40,  the author Vizion contributed to the 
dialogue on-
 Re: php --with apache error log: 

On Tuesday 06 September 2005 15:22,  the author Kevin Kinsey contributed to
the dialogue on-

 Re: php --with apache error log:
Vizion wrote:
Hi
It seems that php is looking for a directory 20041030-debug when there is
 only a directory 20041030.

Here is the output from http-error.log

Is this a config error?

Does anyone know foe to fix the problem?

Help appreciated

david

Quote from log:
-
[Tue Sep 06 14:26:20 2005] [notice] Apache/2.0.54 (FreeBSD) PHP/5.0.4
configured -- resuming normal operations
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open

snip

Try adjusting the value for extension_dir in the appropriate
php.ini file.

Note that this has moved, I think, from /usr/local/lib/php/php.ini
to /usr/local/etc/php.ini for most installations.

That you very much

The line extension dir line in the php.ini is:

extension_dir = ./

What value should this have?

How come it is looking for:
20041030-debug
in the first place when extension_dir is ./?
Where does it get that value from?

The directory  /usr/local/lib/php/20041030

dns1# cd /usr/local/lib/php/20041030
dns1# ls -l
total 130
-r--r--r--  1 root  wheel  89839 Sep  3 18:50 pcre.so
-r--r--r--  1 root  wheel  40993 Sep  3 18:51 xml.so

I tried changing to :
extension_dir = //usr/local/lib/php/20041030
but that made no difference --still got the same error:
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/pcre.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/pcre.soquot;
Unknown(0) : Warning - PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20041030-debug/xml.so' - Cannot open 
quot;/usr/local/lib/php/20041030-debug/xml.soquot;

Puzzled

david
-- 
40 yrs navigating and computing in blue waters.
English Owner  Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: the Installation package Apache Web Server Failure

2005-08-14 Thread Nils Vogels
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Mario Jose Canto Barea wrote:

i had installed FreeBSD 5.4
from CD's ( ISO i get with ftp from freebsd.org and
burned with nero 6 on windows)
but the Installation package Apache Web Server Failure

Install the ports tree collection from /stand/sysinstall and
afterwards type the following command:

cd /usr/ports/www/apache  make install clean

All done.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFC/vNnMzNX/a06Wq0RAihdAJ95zLgs5O4qpX/2GAGI5QHm9IGdEgCfXhdF
r+Re4efK/5sMWAQVXVvBsjI=
=8jr+
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


What versions of PHP / mysql / apache for Mambo?

2005-08-14 Thread Chris Ryan
Hi All


What versions of mysql server , apache and php should be run to use the
mambo cms on freeBSD 5.4?

What advantages of apache2 over 1.3?

Php 5 - more secure than php4? Other reasons?

Mysql server 4.0 / 4.1 / 5 ?

Thanks in advance

Chris


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


the Installation package Apache Web Server Failure

2005-08-13 Thread Mario Jose Canto Barea
i had installed FreeBSD 5.4
from CD's ( ISO i get with ftp from freebsd.org and
burned with nero 6 on windows)
but the Installation package Apache Web Server Failure

But the FreeBSD it is running

thanks for your help









___ 
Do You Yahoo!? 
La mejor conexión a Internet y b 2GB/b extra a tu correo por $100 al mes. 
http://net.yahoo.com.mx 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


which apache / php things to install?

2005-08-09 Thread bob self
I just installed FreeBSD 5.4-RELEASE and am installing a few 
applications. I need apache with php, but I see many php-related 
packages (with portupgrade -v php5-\*). So then I tried portupgrade -v 
php5, but now it wants to know whether I want to use apache2 instead of 
apache 1.3. I've been using 1.3 on another machine with no problems. Is 
2 now ok to use? I saw in /usr/ports that there is apache2, apache20, 
apache21. Which one of these should I install if I use apache2? What 
about the other php installation questions (debug and zend multibyte 
support)?


thanks,
bob

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: which apache / php things to install?

2005-08-09 Thread P.U.Kruppa

On Tue, 9 Aug 2005, bob self wrote:

I just installed FreeBSD 5.4-RELEASE and am installing a few applications. I 
need apache with php, but I see many php-related packages (with portupgrade 
-v php5-\*). So then I tried portupgrade -v php5, but now it wants to know 
whether I want to use apache2 instead of apache 1.3. I've been using 1.3 on 
another machine with no problems. Is 2 now ok to use? I saw in /usr/ports 
that there is apache2, apache20, apache21. Which one of these should I 
install if I use apache2? What about the other php installation questions 
(debug and zend multibyte support)?
From your questions I assume you want to run a small webserver 
for private/testing/experimenting purposes. apache21 is still 
beta but will do fine for you. You will have to enable apache2 
support in php5 then.

Everything else can be left with the default options.
Don't forget to add
apache2_enable=YES
to your /etc/rc.conf :-)

Regards,

Uli.






thanks,
bob

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]





*
* Peter Ulrich Kruppa - Wuppertal - Germany *
*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache problems

2005-08-05 Thread Philip M. Gollucci

Bryan Maynard wrote:
I know this isn't directly freebsd related, but this list has been good 
to me before.


I am running 5-STABLE. I installed Apache 2.1.4 using make install clean 
after updating my ports collection. Everything seemed to go fine. I 
then installed mod_php5 via make install clean. I added 192.168.1.102 
thereallm.org to my /etc/hosts file (I am testing this box before I 
send it out for co-located hosting). When I run apachectl start I get 
no errors - even with -e, but there's no pid for apache or httpd in top 
(via top | grep httpd or top | grep apache).

Whats in the error_log file ?

Me thinks it might be mod_uniquie_id complaining based on your setup.

HTH
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: Apache problems

2005-08-05 Thread Daniel Gerzo
Hello Philip,

Friday, August 5, 2005, 6:46:28 PM, you wrote about:

 Bryan Maynard wrote:
 I know this isn't directly freebsd related, but this list has been good
 to me before.
 
 I am running 5-STABLE. I installed Apache 2.1.4 using make install clean
 after updating my ports collection. Everything seemed to go fine. I
 then installed mod_php5 via make install clean. I added 192.168.1.102
 thereallm.org to my /etc/hosts file (I am testing this box before I
 send it out for co-located hosting). When I run apachectl start I get
 no errors - even with -e, but there's no pid for apache or httpd in top
 (via top | grep httpd or top | grep apache).
 Whats in the error_log file ?

 Me thinks it might be mod_uniquie_id complaining based on your setup.

 HTH

do you have apache21_enable=YES in your rc.conf?

-- 
Best Regards,

 DanGer, ICQ: 261701668  | e-mail protecting at: http://www.2pu.net/
 http://danger.rulez.sk  | proxy list at:http://www.proxy-web.com/
 | FreeBSD - The Power to Serve!

[ Man who scratches ass should not bite fingernails ]


Apache problems

2005-08-04 Thread Bryan Maynard
I know this isn't directly freebsd related, but this list has been good 
to me before.

I am running 5-STABLE. I installed Apache 2.1.4 using make install clean 
after updating my ports collection. Everything seemed to go fine. I 
then installed mod_php5 via make install clean. I added 192.168.1.102 
thereallm.org to my /etc/hosts file (I am testing this box before I 
send it out for co-located hosting). When I run apachectl start I get 
no errors - even with -e, but there's no pid for apache or httpd in top 
(via top | grep httpd or top | grep apache).

Thanks,

Bryan
-- 
Open Source: by the people, for the people.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache problems

2005-08-04 Thread Louis LeBlanc
On 08/04/05 10:26 AM, Bryan Maynard sat at the `puter and typed:
 I know this isn't directly freebsd related, but this list has been good 
 to me before.

I know exactly what you mean . . .

 I am running 5-STABLE. I installed Apache 2.1.4 using make install clean 
 after updating my ports collection. Everything seemed to go fine. I 
 then installed mod_php5 via make install clean. I added 192.168.1.102 
 thereallm.org to my /etc/hosts file (I am testing this box before I 
 send it out for co-located hosting). When I run apachectl start I get 
 no errors - even with -e, but there's no pid for apache or httpd in top 
 (via top | grep httpd or top | grep apache).

Try
ps -ax | grep httpd
to see if it's running.

If not, you should be able to start it with this:
/usr/local/etc/rc.d/apache2.sh start

BTW, none of my business, but you might want to consider sticking with
a RELEASE version of FreeBSD for production environments.  For the
most part, I'm sure STABLE is fine, but it can still have some minor
glitches that would be a pain to deal with in a remote system.

HTH
Lou
-- 
Louis LeBlanc  FreeBSD-at-keyslapper-DOT-net
Fully Funded Hobbyist,   KeySlapper Extrordinaire :)
Please send off-list email to: leblanc at keyslapper d.t net
Key fingerprint = C5E7 4762 F071 CE3B ED51  4FB8 AF85 A2FE 80C8 D9A2

Serocki's Stricture:
  Marriage is always a bachelor's last option.


pgpasr9jWjQ8A.pgp
Description: PGP signature


Re: Apache problems

2005-08-04 Thread Greg Barniskis

Bryan Maynard wrote:
I know this isn't directly freebsd related, but this list has been good 
to me before.


I am running 5-STABLE. I installed Apache 2.1.4 using make install clean 
after updating my ports collection. Everything seemed to go fine. I 
then installed mod_php5 via make install clean. I added 192.168.1.102 
thereallm.org to my /etc/hosts file (I am testing this box before I 
send it out for co-located hosting). When I run apachectl start I get 
no errors - even with -e, but there's no pid for apache or httpd in top 
(via top | grep httpd or top | grep apache).


Got apache2_enable=YES in /etc/rc.conf?

--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
gregb at scls.lib.wi.us, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cannot install p5-Apache-SubProcess on freeBSD 5.4

2005-07-21 Thread PK

hi

I cannot install p5-Apache-SubProcess on freeBSD 5.4 due to following errors:

# cd /usr/ports/www/p5-Apache-SubProcess
# make install clean
.
.
.
mod_perl.c:235: error: `array_header' undeclared (first use in this function)
mod_perl.c:235: error: (Each undeclared identifier is reported only once
mod_perl.c:235: error: for each function it appears in.)
mod_perl.c:235: error: `vars' undeclared (first use in this function)
mod_perl.c:235: error: syntax error before ')' token
mod_perl.c:242: error: structure has no member named `vars'
mod_perl.c:243: error: structure has no member named `vars'
mod_perl.c: At top level:
mod_perl.c:256: error: syntax error before pool
mod_perl.c:305: error: syntax error before pool
mod_perl.c: In function `mp_fake_request_rec':
mod_perl.c:307: error: `p' undeclared (first use in this function)
mod_perl.c:309: error: `s' undeclared (first use in this function)
mod_perl.c:311: error: `hook' undeclared (first use in this function)
mod_perl.c: At top level:
mod_perl.c:317: error: syntax error before pool
mod_perl.c: In function `perl_restart_handler':
mod_perl.c:321: error: `s' undeclared (first use in this function)
mod_perl.c:322: error: `p' undeclared (first use in this function)
mod_perl.c: At top level:
mod_perl.c:327: error: syntax error before pool
mod_perl.c: In function `perl_restart':
mod_perl.c:357: error: `s' undeclared (first use in this function)
mod_perl.c:357: error: `p' undeclared (first use in this function)
mod_perl.c: At top level:
mod_perl.c:420: error: syntax error before '*' token
mod_perl.c:420: error: syntax error before '*' token
mod_perl.c: In function `xs_dl_librefs':
mod_perl.c:425: error: `array_header' undeclared (first use in this function)
mod_perl.c:425: error: `arr' undeclared (first use in this function)
mod_perl.c:434: error: `p' undeclared (first use in this function)
mod_perl.c:447: warning: cast to pointer from integer of different size
mod_perl.c: At top level:
mod_perl.c:462: error: syntax error before '*' token
mod_perl.c: In function `unload_xs_so':
mod_perl.c:466: error: `librefs' undeclared (first use in this function)
mod_perl.c: In function `mp_dso_unload':
mod_perl.c:485: error: `array_header' undeclared (first use in this function)
mod_perl.c:485: error: `librefs' undeclared (first use in this function)
mod_perl.c:487: error: `pool' undeclared (first use in this function)
mod_perl.c:487: error: syntax error before ')' token
mod_perl.c: At top level:
mod_perl.c:554: error: syntax error before pool
mod_perl.c: In function `perl_module_init':
mod_perl.c:557: warning: passing arg 1 of `ap_add_version_component' from 
incompatible pointer type
mod_perl.c:557: error: too few arguments to function `ap_add_version_component'
mod_perl.c:565: warning: passing arg 1 of `ap_add_version_component' from 
incompatible pointer type
mod_perl.c:565: error: too few arguments to function `ap_add_version_component'
mod_perl.c:569: error: `s' undeclared (first use in this function)
mod_perl.c:569: error: `p' undeclared (first use in this function)
mod_perl.c: At top level:
mod_perl.c:594: error: syntax error before pool
mod_perl.c: In function `perl_startup':
mod_perl.c:599: error: `s' undeclared (first use in this function)
mod_perl.c:604: error: `server_argv0' undeclared (first use in this function)
mod_perl.c:642: error: `p' undeclared (first use in this function)
mod_perl.c:781: warning: passing arg 1 of `Perl_newSVpv' makes pointer from 
integer without a cast
mod_perl.c:782: warning: passing arg 1 of `Perl_newSVpv' makes pointer from 
integer without a cast
mod_perl.c:795: error: structure has no member named `PerlRequire'
mod_perl.c:796: error: structure has no member named `PerlRequire'
mod_perl.c:804: error: structure has no member named `PerlModule'
mod_perl.c:805: error: structure has no member named `PerlModule'
mod_perl.c:826: error: `null_cleanup' undeclared (first use in this function)
mod_perl.c: At top level:
mod_perl.c:927: error: syntax error before pool
mod_perl.c: In function `perl_child_exit_cleanup':
mod_perl.c:933: error: structure has no member named `pool'
mod_perl.c: At top level:
mod_perl.c:936: error: syntax error before pool
mod_perl.c: In function `perl_child_init':
mod_perl.c:940: error: `s' undeclared (first use in this function)
mod_perl.c:941: error: `p' undeclared (first use in this function)
mod_perl.c:946: error: structure has no member named `pool'
mod_perl.c:947: error: `null_cleanup' undeclared (first use in this function)
mod_perl.c: At top level:
mod_perl.c:956: error: syntax error before pool
mod_perl.c: In function `perl_child_exit':
mod_perl.c:960: error: `s' undeclared (first use in this function)
mod_perl.c:961: error: `p' undeclared (first use

Apache 1.3 FreeBsd Port missing mod_auth_digest

2005-07-14 Thread Chris Roos

Hi,

I'm not entirely convinced this is the right place for this question as 
it may be an Apache issue rather than FreeBsd/Port issue.  Either way, I 
thought I'd start here first.


I've been running Apache 1.3 from the ports on FreeBsd 5.3R for quite a 
while.  I've even been running it with mod_digest to provide some basic 
password protection.  Unfortunately mod_digest doesn't work with IE. 
This hasn't really been a problem until now.  Now that it is an issue 
I've been looking to enable mod_auth_digest in place of mod_digest as 
this should work with IE too.  The problem is that I cannot find any 
reference of it in my install or in any of the patches applied to the 
Apache 1.3 port; as far as I can tell mod_auth_digest is nowhere to be 
found on my install.  I've also been trying to google for similar 
reports of this problem but currently to no avail.


Does anyone have any information on this?  It could well be the case 
that I'm missing something obvious that I just don't know about so any 
pointers to other resources I might check would also be appreciated.


Thanks in advance,

Chris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 1.3 FreeBsd Port missing mod_auth_digest

2005-07-14 Thread Glenn Dawson

At 01:52 AM 7/14/2005, Chris Roos wrote:

Hi,

I'm not entirely convinced this is the right place for this question as it 
may be an Apache issue rather than FreeBsd/Port issue.  Either way, I 
thought I'd start here first.


I've been running Apache 1.3 from the ports on FreeBsd 5.3R for quite a 
while.  I've even been running it with mod_digest to provide some basic 
password protection.  Unfortunately mod_digest doesn't work with IE. This 
hasn't really been a problem until now.  Now that it is an issue I've been 
looking to enable mod_auth_digest in place of mod_digest as this should 
work with IE too.  The problem is that I cannot find any reference of it 
in my install or in any of the patches applied to the Apache 1.3 port; as 
far as I can tell mod_auth_digest is nowhere to be found on my 
install.  I've also been trying to google for similar reports of this 
problem but currently to no avail.


Does anyone have any information on this?  It could well be the case that 
I'm missing something obvious that I just don't know about so any pointers 
to other resources I might check would also be appreciated.


According to this: http://httpd.apache.org/docs/mod/mod_auth_digest.html
if you have 1.3.8 or later the files required are included with the rest of 
apache.  They also list it as experimental.


Building it into apache should be as easy as adding the correct options to 
CONFIGURE_ARGS


-Glenn



Thanks in advance,

Chris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 1.3 FreeBsd Port missing mod_auth_digest

2005-07-14 Thread Chris Roos

Glenn Dawson wrote:

At 01:52 AM 7/14/2005, Chris Roos wrote:


Hi,

I'm not entirely convinced this is the right place for this question 
as it may be an Apache issue rather than FreeBsd/Port issue.  Either 
way, I thought I'd start here first.


I've been running Apache 1.3 from the ports on FreeBsd 5.3R for quite 
a while.  I've even been running it with mod_digest to provide some 
basic password protection.  Unfortunately mod_digest doesn't work with 
IE. This hasn't really been a problem until now.  Now that it is an 
issue I've been looking to enable mod_auth_digest in place of 
mod_digest as this should work with IE too.  The problem is that I 
cannot find any reference of it in my install or in any of the patches 
applied to the Apache 1.3 port; as far as I can tell mod_auth_digest 
is nowhere to be found on my install.  I've also been trying to google 
for similar reports of this problem but currently to no avail.


Does anyone have any information on this?  It could well be the case 
that I'm missing something obvious that I just don't know about so any 
pointers to other resources I might check would also be appreciated.



According to this: http://httpd.apache.org/docs/mod/mod_auth_digest.html
if you have 1.3.8 or later the files required are included with the rest 
of apache.  They also list it as experimental.


Building it into apache should be as easy as adding the correct options 
to CONFIGURE_ARGS


-Glenn

Ok.  I had already seen the apache page detailing the fact that it 
should already be available in the Apache distribution since 1.3.8, 
which is why I was confused when I couldn't find it.  The problem I have 
now is how would I find out what options are available to be added to 
CONFIGURE_ARGS?  Is this something I would find somewhere in the ports 
info or in the Apache docs?


Thanks for your help,

Chris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 1.3 FreeBsd Port missing mod_auth_digest

2005-07-14 Thread Glenn Dawson

At 04:47 AM 7/14/2005, Chris Roos wrote:

Glenn Dawson wrote:

At 01:52 AM 7/14/2005, Chris Roos wrote:


Hi,

I'm not entirely convinced this is the right place for this question as 
it may be an Apache issue rather than FreeBsd/Port issue.  Either way, I 
thought I'd start here first.


I've been running Apache 1.3 from the ports on FreeBsd 5.3R for quite a 
while.  I've even been running it with mod_digest to provide some basic 
password protection.  Unfortunately mod_digest doesn't work with IE. 
This hasn't really been a problem until now.  Now that it is an issue 
I've been looking to enable mod_auth_digest in place of mod_digest as 
this should work with IE too.  The problem is that I cannot find any 
reference of it in my install or in any of the patches applied to the 
Apache 1.3 port; as far as I can tell mod_auth_digest is nowhere to be 
found on my install.  I've also been trying to google for similar 
reports of this problem but currently to no avail.


Does anyone have any information on this?  It could well be the case 
that I'm missing something obvious that I just don't know about so any 
pointers to other resources I might check would also be appreciated.


According to this: http://httpd.apache.org/docs/mod/mod_auth_digest.html
if you have 1.3.8 or later the files required are included with the rest 
of apache.  They also list it as experimental.
Building it into apache should be as easy as adding the correct options 
to CONFIGURE_ARGS

-Glenn
Ok.  I had already seen the apache page detailing the fact that it should 
already be available in the Apache distribution since 1.3.8, which is why 
I was confused when I couldn't find it.  The problem I have now is how 
would I find out what options are available to be added to 
CONFIGURE_ARGS?  Is this something I would find somewhere in the ports 
info or in the Apache docs?


You can do make extract in the dir for the port.  Then you can go to the 
work dir, find configure and do ./configure --help

That will give you a list of available options.

-Glenn



Thanks for your help,

Chris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 1.3 FreeBsd Port missing mod_auth_digest

2005-07-14 Thread Chris Roos

Glenn Dawson wrote:

At 04:47 AM 7/14/2005, Chris Roos wrote:


Glenn Dawson wrote:


snip


Ok.  I had already seen the apache page detailing the fact that it 
should already be available in the Apache distribution since 1.3.8, 
which is why I was confused when I couldn't find it.  The problem I 
have now is how would I find out what options are available to be 
added to CONFIGURE_ARGS?  Is this something I would find somewhere in 
the ports info or in the Apache docs?



You can do make extract in the dir for the port.  Then you can go to the 
work dir, find configure and do ./configure --help

That will give you a list of available options.

That's great thanks Glenn.  I think I've spotted the option I need and 
the source file (mod_auth_digest.c) certainly appears in the work directory.


Cheers,

Chris


-Glenn



Thanks for your help,

Chris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]








___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


switching apache ti apache-ssl quick

2005-07-12 Thread dick
I want to change my apache webserver to a ssl-version.
Do I deinstall everything first? PHP, MySQL, phpBB2, mod_security and apache? Or
is there a way to make the switch easier than that?

Will just a reinstall of apache itself suffice?

Thxs



This message was sent using IMP, the Internet Messaging Program.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mod_security install Apache 2, port dependencies problem

2005-07-10 Thread Todd Suits
   I installed Apache mod_security on my Apache 2 httpd.  Since this
my ports dependencies are off.  It appears mod_security is only for
Apache 1.3x according to make depends  How do I solve the ports
problem or where do I find mod_security for Apache 2.  Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apache-ssl and mod_mysql mod_php4

2005-07-09 Thread Graham North
Do the mysql and php4 modules integrate with apache-ssl. as with regular 
apache_1.3.33   ??


I installed apache-ssl instead of apache on a whim - SSL works and I can 
use the server for secure or regular port 80 http, however nowhere can I 
find info that explicitly indicates the compatability of mysql and php4 
for this Apache variant.


Can someone give me some assurance before I install the ports.

Thanks,  Graham/

--
Kindness can be infectious - try it.

Graham North
Vancouver, BC
www.soleado.ca


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.11/44 - Release Date: 7/8/2005
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

RE: apache-ssl and mod_mysql mod_php4

2005-07-09 Thread Joe Wood
Yes, it works fine; I installed apache mod_ssl (1.3.33) and installed both
mysql4 and php4 from ports without a single issue.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Graham North
Sent: Saturday, July 09, 2005 7:31 PM
To: questions freebsd
Subject: apache-ssl and mod_mysql  mod_php4

Do the mysql and php4 modules integrate with apache-ssl. as with regular 
apache_1.3.33   ??

I installed apache-ssl instead of apache on a whim - SSL works and I can 
use the server for secure or regular port 80 http, however nowhere can I 
find info that explicitly indicates the compatability of mysql and php4 
for this Apache variant.

Can someone give me some assurance before I install the ports.

Thanks,  Graham/

-- 
Kindness can be infectious - try it.

Graham North
Vancouver, BC
www.soleado.ca



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache-ssl and mod_mysql mod_php4

2005-07-09 Thread Graham North

Hi Joe - thank you for this information/confirmation.
Cheers,  Graham/


Joe Wood wrote:


Yes, it works fine; I installed apache mod_ssl (1.3.33) and installed both
mysql4 and php4 from ports without a single issue.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Graham North
Sent: Saturday, July 09, 2005 7:31 PM
To: questions freebsd
Subject: apache-ssl and mod_mysql  mod_php4

Do the mysql and php4 modules integrate with apache-ssl. as with regular 
apache_1.3.33   ??


I installed apache-ssl instead of apache on a whim - SSL works and I can 
use the server for secure or regular port 80 http, however nowhere can I 
find info that explicitly indicates the compatability of mysql and php4 
for this Apache variant.


Can someone give me some assurance before I install the ports.

Thanks,  Graham/

 



--
Kindness can be infectious - try it.

Graham North
Vancouver, BC
www.soleado.ca


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.11/44 - Release Date: 7/8/2005
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Problem updating apache 2.1.x via port

2005-07-06 Thread bsd

I have a problem updating my apache port.

Compile seem to be ok and then install goes wrong.

Any idea how to fix that ?



===  Installing for apache-2.1.4
===   apache-2.1.4 depends on file: /usr/local/lib/libcrypto.so.3  
- found

===   apache-2.1.4 depends on file: /usr/local/bin/perl5.8.7 - found
===   apache-2.1.4 depends on shared library: expat.5 - found
===   apache-2.1.4 depends on shared library: iconv.3 - found
===   Generating temporary packing list
===  Checking if www/apache21 already installed
Making install in srclib
Making install in pcre
Making install in os
Making install in unix
Making install in server
Making install in mpm
Making install in prefork
find: /usr/local/include/apr-1/apr.h: No such file or directory
find: /usr/local/include/apr-1/apr_allocator.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_anylock.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_atomic.h: No such file or directory
find: /usr/local/include/apr-1/apr_base64.h: No such file or directory
find: /usr/local/include/apr-1/apr_buckets.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_date.h: No such file or directory
find: /usr/local/include/apr-1/apr_dbm.h: No such file or directory
find: /usr/local/include/apr-1/apr_dso.h: No such file or directory
find: /usr/local/include/apr-1/apr_env.h: No such file or directory
find: /usr/local/include/apr-1/apr_errno.h: No such file or directory
find: /usr/local/include/apr-1/apr_file_info.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_file_io.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_fnmatch.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_general.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_getopt.h: No such file or directory
find: /usr/local/include/apr-1/apr_global_mutex.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_hash.h: No such file or directory
find: /usr/local/include/apr-1/apr_hooks.h: No such file or directory
find: /usr/local/include/apr-1/apr_inherit.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_ldap.h: No such file or directory
find: /usr/local/include/apr-1/apr_ldap_init.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_ldap_option.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_ldap_url.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_lib.h: No such file or directory
find: /usr/local/include/apr-1/apr_md4.h: No such file or directory
find: /usr/local/include/apr-1/apr_md5.h: No such file or directory
find: /usr/local/include/apr-1/apr_mmap.h: No such file or directory
find: /usr/local/include/apr-1/apr_network_io.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_optional.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_optional_hooks.h: No such file  
or directory

find: /usr/local/include/apr-1/apr_poll.h: No such file or directory
find: /usr/local/include/apr-1/apr_pools.h: No such file or directory
find: /usr/local/include/apr-1/apr_portable.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_proc_mutex.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_queue.h: No such file or directory
find: /usr/local/include/apr-1/apr_random.h: No such file or directory
find: /usr/local/include/apr-1/apr_reslist.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_ring.h: No such file or directory
find: /usr/local/include/apr-1/apr_rmm.h: No such file or directory
find: /usr/local/include/apr-1/apr_sdbm.h: No such file or directory
find: /usr/local/include/apr-1/apr_sha1.h: No such file or directory
find: /usr/local/include/apr-1/apr_shm.h: No such file or directory
find: /usr/local/include/apr-1/apr_signal.h: No such file or directory
find: /usr/local/include/apr-1/apr_strings.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_strmatch.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_support.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_tables.h: No such file or directory
find: /usr/local/include/apr-1/apr_thread_cond.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_thread_mutex.h: No such file or  
directory
find: /usr/local/include/apr-1/apr_thread_rwlock.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_time.h: No such file or directory
find: /usr/local/include/apr-1/apr_uri.h: No such file or directory
find: /usr/local/include/apr-1/apr_user.h: No such file or directory
find: /usr/local/include/apr-1/apr_uuid.h: No such file or directory
find: /usr/local/include/apr-1/apr_version.h: No such file or  
directory

find: /usr/local/include/apr-1/apr_want.h: No such file or directory
find: /usr/local/include/apr-1/apr_xlate.h: No such file or directory
find: /usr/local/include/apr-1/apr_xml.h: No such file or directory
find: /usr/local/include/apr-1/apu.h: No such file

Re: Problem updating apache 2.1.x via port

2005-07-06 Thread Hornet
On 7/6/05, bsd [EMAIL PROTECTED] wrote:
 I have a problem updating my apache port.
 
 Compile seem to be ok and then install goes wrong.
 
 Any idea how to fix that ?
 
 
  ===  Installing for apache-2.1.4
  ===   apache-2.1.4 depends on file: /usr/local/lib/libcrypto.so.3
  - found
  ===   apache-2.1.4 depends on file: /usr/local/bin/perl5.8.7 - found
  ===   apache-2.1.4 depends on shared library: expat.5 - found
  ===   apache-2.1.4 depends on shared library: iconv.3 - found
  ===   Generating temporary packing list
  ===  Checking if www/apache21 already installed
  Making install in srclib
  Making install in pcre
  Making install in os
  Making install in unix
  Making install in server
  Making install in mpm
  Making install in prefork
  find: /usr/local/include/apr-1/apr.h: No such file or directory
  find: /usr/local/include/apr-1/apr_allocator.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_anylock.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_atomic.h: No such file or directory
  find: /usr/local/include/apr-1/apr_base64.h: No such file or directory
  find: /usr/local/include/apr-1/apr_buckets.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_date.h: No such file or directory
  find: /usr/local/include/apr-1/apr_dbm.h: No such file or directory
  find: /usr/local/include/apr-1/apr_dso.h: No such file or directory
  find: /usr/local/include/apr-1/apr_env.h: No such file or directory
  find: /usr/local/include/apr-1/apr_errno.h: No such file or directory
  find: /usr/local/include/apr-1/apr_file_info.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_file_io.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_fnmatch.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_general.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_getopt.h: No such file or directory
  find: /usr/local/include/apr-1/apr_global_mutex.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_hash.h: No such file or directory
  find: /usr/local/include/apr-1/apr_hooks.h: No such file or directory
  find: /usr/local/include/apr-1/apr_inherit.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_ldap.h: No such file or directory
  find: /usr/local/include/apr-1/apr_ldap_init.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_ldap_option.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_ldap_url.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_lib.h: No such file or directory
  find: /usr/local/include/apr-1/apr_md4.h: No such file or directory
  find: /usr/local/include/apr-1/apr_md5.h: No such file or directory
  find: /usr/local/include/apr-1/apr_mmap.h: No such file or directory
  find: /usr/local/include/apr-1/apr_network_io.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_optional.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_optional_hooks.h: No such file
  or directory
  find: /usr/local/include/apr-1/apr_poll.h: No such file or directory
  find: /usr/local/include/apr-1/apr_pools.h: No such file or directory
  find: /usr/local/include/apr-1/apr_portable.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_proc_mutex.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_queue.h: No such file or directory
  find: /usr/local/include/apr-1/apr_random.h: No such file or directory
  find: /usr/local/include/apr-1/apr_reslist.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_ring.h: No such file or directory
  find: /usr/local/include/apr-1/apr_rmm.h: No such file or directory
  find: /usr/local/include/apr-1/apr_sdbm.h: No such file or directory
  find: /usr/local/include/apr-1/apr_sha1.h: No such file or directory
  find: /usr/local/include/apr-1/apr_shm.h: No such file or directory
  find: /usr/local/include/apr-1/apr_signal.h: No such file or directory
  find: /usr/local/include/apr-1/apr_strings.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_strmatch.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_support.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_tables.h: No such file or directory
  find: /usr/local/include/apr-1/apr_thread_cond.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_thread_mutex.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_thread_rwlock.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_time.h: No such file or directory
  find: /usr/local/include/apr-1/apr_uri.h: No such file or directory
  find: /usr/local/include/apr-1/apr_user.h: No such file or directory
  find: /usr/local/include/apr-1/apr_uuid.h: No such file or directory
  find: /usr/local/include/apr-1/apr_version.h: No such file or
  directory
  find: /usr/local/include/apr-1/apr_want.h: No such file or directory
  find: /usr/local

Apache 2 SSL Error

2005-07-05 Thread Todd Suits
I set up a FreeBSD 4.11 jail to learn how to setup SSL on Apache 2
correctly. I installed Apache 2.0.54 from ports. I generated SSL certs
just for testing purposes. I'm not able to get any response at all
from the server on SSL unless I set the Listen :443 directive in the
httpd.conf as where I think it is supposed to be set in ssl.conf.  I
get the following error in httpd-error.log:

[Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
method in request \x80g\x01\x03

As this is just temporary and for testing purposes I have posted the
configs online as they are quite big and this is a work in progress,
see links below.

http://www.beerdrinka.com/httpd.conf

http://www.beerdrinka.com/ssl.conf

I keep re-reading the apache docs but there is just something I am
missing.  As a note I have also tried this in a non-jail environment
on 5.3 p16 and get the same error results.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 SSL Error

2005-07-05 Thread Andrew L. Gould
On Tuesday 05 July 2005 11:01 am, Todd Suits wrote:
 I set up a FreeBSD 4.11 jail to learn how to setup SSL on Apache 2
 correctly. I installed Apache 2.0.54 from ports. I generated SSL
 certs just for testing purposes. I'm not able to get any response at
 all from the server on SSL unless I set the Listen :443 directive in
 the httpd.conf as where I think it is supposed to be set in ssl.conf.
  I get the following error in httpd-error.log:

 [Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
 method in request \x80g\x01\x03

 As this is just temporary and for testing purposes I have posted the
 configs online as they are quite big and this is a work in progress,
 see links below.

 http://www.beerdrinka.com/httpd.conf

 http://www.beerdrinka.com/ssl.conf

 I keep re-reading the apache docs but there is just something I am
 missing.  As a note I have also tried this in a non-jail environment
 on 5.3 p16 and get the same error results.

When trying to use SSL, are you using a URL with http://; or 
https://;?

Andrew Gould
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 SSL Error

2005-07-05 Thread Todd Suits
https://  is what im trying to use.  http:// just brings my normal
index.html page.

On 7/5/05, Andrew L. Gould [EMAIL PROTECTED] wrote:
 On Tuesday 05 July 2005 11:01 am, Todd Suits wrote:
  I set up a FreeBSD 4.11 jail to learn how to setup SSL on Apache 2
  correctly. I installed Apache 2.0.54 from ports. I generated SSL
  certs just for testing purposes. I'm not able to get any response at
  all from the server on SSL unless I set the Listen :443 directive in
  the httpd.conf as where I think it is supposed to be set in ssl.conf.
   I get the following error in httpd-error.log:
 
  [Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
  method in request \x80g\x01\x03
 
  As this is just temporary and for testing purposes I have posted the
  configs online as they are quite big and this is a work in progress,
  see links below.
 
  http://www.beerdrinka.com/httpd.conf
 
  http://www.beerdrinka.com/ssl.conf
 
  I keep re-reading the apache docs but there is just something I am
  missing.  As a note I have also tried this in a non-jail environment
  on 5.3 p16 and get the same error results.
 
 When trying to use SSL, are you using a URL with http://; or
 https://;?
 
 Andrew Gould

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 SSL Error

2005-07-05 Thread [EMAIL PROTECTED]
On Tue, 5 Jul 2005 14:21:03 -0400
Todd Suits [EMAIL PROTECTED] wrote:

 https://  is what im trying to use.  http:// just brings my normal
 index.html page.
---cut---
I get the following error in httpd-error.log:
  
   [Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
   method in request \x80g\x01\x03

are you using a hardware-router or something ?
if so, did you open the 443 port on that router and set up
portforwarding to port 443 ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 SSL Error

2005-07-05 Thread Todd Suits
I have no problem accessing other https sites and there is not a
router, the jail is set up on a dedicated server in a data center
where serives like this are provided.

On 7/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 On Tue, 5 Jul 2005 14:21:03 -0400
 Todd Suits [EMAIL PROTECTED] wrote:
 
  https://  is what im trying to use.  http:// just brings my normal
  index.html page.
 ---cut---
 I get the following error in httpd-error.log:
   
[Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
method in request \x80g\x01\x03
 
 are you using a hardware-router or something ?
 if so, did you open the 443 port on that router and set up
 portforwarding to port 443 ?
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 SSL Error

2005-07-05 Thread Todd Suits
As an update the command: $ openssl s_client -connect localhost:443
-state -debug  from the Apache documents, produces the following
output:

killians# openssl s_client -connect localhost:443 -state -debug
CONNECTED(0003)
SSL_connect:before/connect initialization
write to 0809A500 [080B1000] (142 bytes = 142 (0x8E))
 - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00   ..c... ..9..
0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0   8..5
0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00   ..3..2../.f.
0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00   .c..
0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40   b..a...@
0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00   ..e..d..`...
0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 b3 46   ...F
0070 - 18 14 e5 bd de 65 4e 39-1c 60 c4 c2 81 f5 bb 8a   .eN9.`..
0080 - 68 00 e0 db 23 c8 ad c2-44 23 81 83 51 93 h...#...D#..Q.
SSL_connect:SSLv2/v3 write client hello A
read from 0809A500 [080B7000] (7 bytes = 7 (0x7))
 - 3c 21 44 4f 43 54 59  !DOCTY
SSL_connect:error in SSLv2/v3 read server hello A
50689:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:/usr/s   
rc/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:475:

I'm just not sure how to deal with it.


On 7/5/05, Todd Suits [EMAIL PROTECTED] wrote:
 I have no problem accessing other https sites and there is not a
 router, the jail is set up on a dedicated server in a data center
 where serives like this are provided.
 
 On 7/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  On Tue, 5 Jul 2005 14:21:03 -0400
  Todd Suits [EMAIL PROTECTED] wrote:
 
   https://  is what im trying to use.  http:// just brings my normal
   index.html page.
  ---cut---
  I get the following error in httpd-error.log:

 [Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
 method in request \x80g\x01\x03
 
  are you using a hardware-router or something ?
  if so, did you open the 443 port on that router and set up
  portforwarding to port 443 ?
 
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 SSL Error

2005-07-05 Thread Todd Suits
Sorry for all the responses but Googling has brought up possible
problems or questions.  I am starting Apache with
/usr/local/sbin/apachectl startssl is this correct for the FreeBSD
compiled version?

On 7/5/05, Todd Suits [EMAIL PROTECTED] wrote:
 As an update the command: $ openssl s_client -connect localhost:443
 -state -debug  from the Apache documents, produces the following
 output:
 
 killians# openssl s_client -connect localhost:443 -state -debug
 CONNECTED(0003)
 SSL_connect:before/connect initialization
 write to 0809A500 [080B1000] (142 bytes = 142 (0x8E))
  - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00   ..c... ..9..
 0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0   8..5
 0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00   ..3..2../.f.
 0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00   .c..
 0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40   b..a...@
 0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00   ..e..d..`...
 0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 b3 46   ...F
 0070 - 18 14 e5 bd de 65 4e 39-1c 60 c4 c2 81 f5 bb 8a   .eN9.`..
 0080 - 68 00 e0 db 23 c8 ad c2-44 23 81 83 51 93 h...#...D#..Q.
 SSL_connect:SSLv2/v3 write client hello A
 read from 0809A500 [080B7000] (7 bytes = 7 (0x7))
  - 3c 21 44 4f 43 54 59  !DOCTY
 SSL_connect:error in SSLv2/v3 read server hello A
 50689:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
 protocol:/usr/s
 rc/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:475:
 
 I'm just not sure how to deal with it.
 
 
 On 7/5/05, Todd Suits [EMAIL PROTECTED] wrote:
  I have no problem accessing other https sites and there is not a
  router, the jail is set up on a dedicated server in a data center
  where serives like this are provided.
 
  On 7/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   On Tue, 5 Jul 2005 14:21:03 -0400
   Todd Suits [EMAIL PROTECTED] wrote:
  
https://  is what im trying to use.  http:// just brings my normal
index.html page.
   ---cut---
   I get the following error in httpd-error.log:
 
  [Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
  method in request \x80g\x01\x03
  
   are you using a hardware-router or something ?
   if so, did you open the 443 port on that router and set up
   portforwarding to port 443 ?
  
  
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 SSL Error

2005-07-05 Thread jdyke




Todd Suits wrote:

Sorry for all the responses but Googling has brought up possible
problems or questions.  I am starting Apache with
/usr/local/sbin/apachectl startssl is this correct for the FreeBSD
compiled version?

you don't *have to* use that, you can just use /usr/local/etc/rc.d/apache.sh and 
make sure that apache2ssl_enable=YES in /etc/rc.conf


to my knowledge, which may be lacking, you should be able to execute apaches 
start script as well.


if you run `ps -waux | grep httpd` from the prompt do you see httpd listed with 
-DSSL ??  the errors about 'invalid method' lead me to believe that you its only 
started as http not https.


what is in the error log as soon as you run /usr/local/sbin/apachectl startssl
and what does the above ps show.

jeff

On 7/5/05, Todd Suits [EMAIL PROTECTED] wrote:


As an update the command: $ openssl s_client -connect localhost:443
-state -debug  from the Apache documents, produces the following
output:

killians# openssl s_client -connect localhost:443 -state -debug
CONNECTED(0003)
SSL_connect:before/connect initialization
write to 0809A500 [080B1000] (142 bytes = 142 (0x8E))
 - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00   ..c... ..9..
0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0   8..5
0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00   ..3..2../.f.
0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00   .c..
0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40   b..a...@
0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00   ..e..d..`...
0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 b3 46   ...F
0070 - 18 14 e5 bd de 65 4e 39-1c 60 c4 c2 81 f5 bb 8a   .eN9.`..
0080 - 68 00 e0 db 23 c8 ad c2-44 23 81 83 51 93 h...#...D#..Q.
SSL_connect:SSLv2/v3 write client hello A
read from 0809A500 [080B7000] (7 bytes = 7 (0x7))
 - 3c 21 44 4f 43 54 59  !DOCTY
SSL_connect:error in SSLv2/v3 read server hello A
50689:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:/usr/s
rc/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:475:

I'm just not sure how to deal with it.


On 7/5/05, Todd Suits [EMAIL PROTECTED] wrote:


I have no problem accessing other https sites and there is not a
router, the jail is set up on a dedicated server in a data center
where serives like this are provided.

On 7/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


On Tue, 5 Jul 2005 14:21:03 -0400
Todd Suits [EMAIL PROTECTED] wrote:



https://  is what im trying to use.  http:// just brings my normal
index.html page.


---cut---


I get the following error in httpd-error.log:

[Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
method in request \x80g\x01\x03


are you using a hardware-router or something ?
if so, did you open the 443 port on that router and set up
portforwarding to port 443 ?





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache 2 SSL Error

2005-07-05 Thread Todd Suits
Jeff

You are correct!  I was not starting Apache with SSL.  I knew I had to
use the startssl command however I was using webmin for ease of
clicking start and stop and I had entered startssl in the wrong
box in the module config so therefor I was not starting Apache with
SSL.  Once I started with SSL there were a few error's I had to 
correct with the certificates I generated and in the ssl.conf but
starting it correctly was the problem.  Thank you.. I have spent many
hours trying to get this set up and was very frustrated over the whole
project.  Thanks again to everyone who took the time to reply.  This
list is a great resource and without everyones participation it would
not work.

 7/5/05, jdyke [EMAIL PROTECTED] wrote:
 
 
 
 Todd Suits wrote:
  Sorry for all the responses but Googling has brought up possible
  problems or questions.  I am starting Apache with
  /usr/local/sbin/apachectl startssl is this correct for the FreeBSD
  compiled version?
 
 you don't *have to* use that, you can just use /usr/local/etc/rc.d/apache.sh 
 and
 make sure that apache2ssl_enable=YES in /etc/rc.conf
 
 to my knowledge, which may be lacking, you should be able to execute apaches
 start script as well.
 
 if you run `ps -waux | grep httpd` from the prompt do you see httpd listed 
 with
 -DSSL ??  the errors about 'invalid method' lead me to believe that you its 
 only
 started as http not https.
 
 what is in the error log as soon as you run /usr/local/sbin/apachectl startssl
 and what does the above ps show.
 
 jeff
  On 7/5/05, Todd Suits [EMAIL PROTECTED] wrote:
 
 As an update the command: $ openssl s_client -connect localhost:443
 -state -debug  from the Apache documents, produces the following
 output:
 
 killians# openssl s_client -connect localhost:443 -state -debug
 CONNECTED(0003)
 SSL_connect:before/connect initialization
 write to 0809A500 [080B1000] (142 bytes = 142 (0x8E))
  - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00   ..c... ..9..
 0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0   8..5
 0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00   ..3..2../.f.
 0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00   .c..
 0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40   b..a...@
 0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00   ..e..d..`...
 0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 b3 46   ...F
 0070 - 18 14 e5 bd de 65 4e 39-1c 60 c4 c2 81 f5 bb 8a   .eN9.`..
 0080 - 68 00 e0 db 23 c8 ad c2-44 23 81 83 51 93 h...#...D#..Q.
 SSL_connect:SSLv2/v3 write client hello A
 read from 0809A500 [080B7000] (7 bytes = 7 (0x7))
  - 3c 21 44 4f 43 54 59  !DOCTY
 SSL_connect:error in SSLv2/v3 read server hello A
 50689:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
 protocol:/usr/s
 rc/secure/lib/libssl/../../../crypto/openssl/ssl/s23_clnt.c:475:
 
 I'm just not sure how to deal with it.
 
 
 On 7/5/05, Todd Suits [EMAIL PROTECTED] wrote:
 
 I have no problem accessing other https sites and there is not a
 router, the jail is set up on a dedicated server in a data center
 where serives like this are provided.
 
 On 7/5/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 On Tue, 5 Jul 2005 14:21:03 -0400
 Todd Suits [EMAIL PROTECTED] wrote:
 
 
 https://  is what im trying to use.  http:// just brings my normal
 index.html page.
 
 ---cut---
 
  I get the following error in httpd-error.log:
 
 [Tue Jul 05 10:15:28 2005] [error] [client 24.123.123.123] Invalid
 method in request \x80g\x01\x03
 
 are you using a hardware-router or something ?
 if so, did you open the 443 port on that router and set up
 portforwarding to port 443 ?
 
 
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Perl + apache problem

2005-07-01 Thread Greg Maruszeczka
Jack Raats wrote:
 I've a little question. After upgrading perl to 5.8.7. I'm getting an error 
 of Apache. It says
 
 Syntax error on line 239 of /usr/local/etc/apache/httpd.conf:
 Cannot load /usr/local/libexec/apache/libperl.so into server: Shared object 
 libperl.so not found, required by libperl.so
 
 After the upgrade I ran the perl-after-upgrade script. Do you have any clues?
 


How did you run the script? Did you use the -f option as specified on
the manpage? Please provide output from `perl-after-upgrade`.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing Apache 2 with custom options

2005-06-30 Thread Nicholas Henry
Thank you for your reply. I guess I was under the assumption that the
Apache port would come pre-configured with some options. So I didn't
want to do a configure and overwrite what is there. So can you
confirm that it isn't pre-configured anyway? Are any of the ports have
configurations set?

Cheers,
Nicholas

On 6/20/05, Alex Zbyslaw [EMAIL PROTECTED] wrote:
 Nicholas Henry wrote:
 
 FreeBSD 5.3-RELEASE (GENERIC) #0: Fri Nov  5 04:19:18 UTC 2004
 
 I have apache2 running which I installed from ports. All is running
 well. I would like to install the proxy module. As I'm relatively new
 to FreeBSD and Unix I'm not sure which is the best way to go. Is there
 a way to change the config options before doing a make. How do I do
 this so I add to the existing config options with out overwriting
 them. Can you do this with ports?
 
 
 I'm not quite sure what you are asking.
 
 If you are asking how do I get make to remember the configuration
 options I used last time then the easiest answer is to use
 sysutils/portupgrade and put your options into
 /usr/local/etc/pkgtools.conf (which is pretty self documenting when you
 edit it).  Some ports now put the options you used in
 /var/db/ports/{portname}/options, but apache2 doesn't seem to be one of
 them yet.  So if you didn't make a not of what you picked, you'll have
 to work them out all over again :-(
 
 If you are asking how to re-install apache2 without overwriting changes
 you made to httpd.conf, then the safest way is to make backup copies
 before deleting the package and reinstalling.  (Easy with portugrgade -f
 option).  Actually, I think the port is clever about this and won't
 remove the config file if you have changed it, but I'd make backups anyway.
 
 Personally, when installing a complex port like apache2, I always try to
 be generous about what modules etc I compile, and try to include stuff I
 *might* need even if I have no use for it yet.  Only experimental stuff
 gets left out.  Saves a lot of grief when you suddenly find a use for
 proxying :-)  Disk space is nearly always cheaper than time.
 
 --Alex
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing Apache 2 with custom options

2005-06-30 Thread Alex Zbyslaw

Nicholas Henry wrote:


Thank you for your reply. I guess I was under the assumption that the
Apache port would come pre-configured with some options. So I didn't
want to do a configure and overwrite what is there. So can you
confirm that it isn't pre-configured anyway? Are any of the ports have
configurations set?
 

I'm still not clear what you mean by pre-configured.  Do you mean 
comes with a standard configuration file for when it runs then, yes it 
does, though you will have to edit it to suit your needs.  Since you 
have the port installed, you must have done this.


If you mean does it pick some standard options at compile time, then 
yes, it probably does, but obviously it did not include the proxy module 
you wanted, so you will have to do something when you make apache2 to 
get it added.  If I remember correctly, if you just type make 
show-options and it will tell you what to do.


Many ports do have pre-defined, standard, compile-time options which 
they use.  Other ports will stop and ask you which of the many options 
you want to choose.  In both cases, *something* is picked as the 
default, but it may not be what you want.  Since your original question 
was about installing the proxy module, my suggestion was not just to add 
that, but also to look at the other modules *now* and add any you 
reasonably think you *might* need just to save installing all over again.


Apache is about the most complicated port, with respect to the 
compile-time options, that you may ever install.  There are so many 
bells, whistles, alternatives and other hoopla, that it makes sense to 
see what there is and try and take some informed guesstimates at which 
of those you want.  Get it right once and you can forget about it.


See my previous message for how to make sure that portupgrade will use 
the same options, if you ever need to remake the port.


Hope that helps,

--Alex



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing Apache 2 with custom options

2005-06-30 Thread Nicholas Henry
Thanks for your help, Alex. I found what I was looking for here:

http://lists.freebsd.org/pipermail/freebsd-questions/2004-January/031160.html

If was the:

# make WITH_EXTRA_MODULES

Cheers,
Nicholas

On 6/30/05, Alex Zbyslaw [EMAIL PROTECTED] wrote:
 Nicholas Henry wrote:
 
 Thank you for your reply. I guess I was under the assumption that the
 Apache port would come pre-configured with some options. So I didn't
 want to do a configure and overwrite what is there. So can you
 confirm that it isn't pre-configured anyway? Are any of the ports have
 configurations set?
 
 
 I'm still not clear what you mean by pre-configured.  Do you mean
 comes with a standard configuration file for when it runs then, yes it
 does, though you will have to edit it to suit your needs.  Since you
 have the port installed, you must have done this.
 
 If you mean does it pick some standard options at compile time, then
 yes, it probably does, but obviously it did not include the proxy module
 you wanted, so you will have to do something when you make apache2 to
 get it added.  If I remember correctly, if you just type make
 show-options and it will tell you what to do.
 
 Many ports do have pre-defined, standard, compile-time options which
 they use.  Other ports will stop and ask you which of the many options
 you want to choose.  In both cases, *something* is picked as the
 default, but it may not be what you want.  Since your original question
 was about installing the proxy module, my suggestion was not just to add
 that, but also to look at the other modules *now* and add any you
 reasonably think you *might* need just to save installing all over again.
 
 Apache is about the most complicated port, with respect to the
 compile-time options, that you may ever install.  There are so many
 bells, whistles, alternatives and other hoopla, that it makes sense to
 see what there is and try and take some informed guesstimates at which
 of those you want.  Get it right once and you can forget about it.
 
 See my previous message for how to make sure that portupgrade will use
 the same options, if you ever need to remake the port.
 
 Hope that helps,
 
 --Alex
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


jail and apache + php

2005-06-30 Thread Géczi Szabolcs

hi there,

i got a jail on fbsd 5.4, it seems to be ok, but after installing php4, 
my apache13 can't be started.

i got this error constantly:

httpd in free(): error: junk pointer, too high to make sense

without php the apache works well :/

any idea?

sz

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Perl + apache problem

2005-06-30 Thread Jack Raats
I've a little question. After upgrading perl to 5.8.7. I'm getting an error of 
Apache. It says

Syntax error on line 239 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/libexec/apache/libperl.so into server: Shared object 
libperl.so not found, required by libperl.so

After the upgrade I ran the perl-after-upgrade script. Do you have any clues?

Met vriendelijke groeten
Jack Raats
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apache 1.3.33 auto start in FreeBSD 5.3?

2005-06-28 Thread Xu Qiang
Hi, all: 

I compiled Apache 1.3.33 from src in my FreeBSD 5.3 machine. It works well. 
However, I want to let it run at the start-up time of the system. 

I added the line apache_enable=YES into /etc/rc.conf, and copied 
/usr/ports/www/apache13/files/apache.sh into /usr/local/etc/rc.d, and modified 
the line command=%%PREFIX%%/sbin/httpd to 
command=%%PREFIX%%/apache/bin/httpd. 

But it still doesn't work. 

Any help?

Regards,
Xu Qiang___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

RE: Apache 1.3.33 auto start in FreeBSD 5.3?

2005-06-28 Thread Xu Qiang
Xu Qiang wrote:
 I compiled Apache 1.3.33 from src in my FreeBSD 5.3 machine. It works
 well. However, I want to let it run at the start-up time of the
 system.  
 
 I added the line apache_enable=YES into /etc/rc.conf as
 /usr/ports/www/apache13/pkg-message said, and copied
 /usr/ports/www/apache13/files/apache.sh into /usr/local/etc/rc.d, and
 modified the line command=%%PREFIX%%/sbin/httpd to
 command=%%PREFIX%%/apache/bin/httpd.
 
 But it still doesn't work.

When I manually go to /usr/etc/rc.d, and run the script by ./apache.sh, it 
told me: 
.: Can't open %%RC_SUBR%%: No such file or directory

Btw, I can't find the command load_rc_config and run_rc_command in my 
machine. :(

looking forward to help, 

Regards,
Xu Qiang


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring Apache with DynDNS

2005-06-22 Thread xordos dos
On 6/19/05, Gerard Seibert [EMAIL PROTECTED] wrote:
 I am attempting to get Apache to work on my computer. My ISM only supplies
 me with a dynamic IP as well as blocking of port 80. I am using DynDNS to
 try and circumvent that situation.
Basically, DynDNS only give you a free internat hostname, nothing more.
So it won't help you resolve the 80 blocking issue.

Though I think it is rare an ISP will blocking 80 port, but if this is
the case,
you can modify apache configuration file to use different port number.

In httpd.conf file, find the line Listen 80 and replace 80 to
another number.(ex 81)
then in your browser, http://blahblah.dyndns.org:81/

Regards,
Xordos.

 
 My knowledge of how to accomplish this quite frankly stinks. Even using a
 copy of O'Reilly's Apache has not helped me much.
 
 If anyone has a similar type of setup, I would appreciate them contacting
 me directly. I can supply all of my configuration files for them to look
 at. I am probably just doing something really stupid but I lack the
 knowledge to figure it out on my own.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring Apache with DynDNS

2005-06-22 Thread Andrew L. Gould
On Sunday 19 June 2005 09:07 am, Gerard Seibert wrote:
 I am attempting to get Apache to work on my computer. My ISM only
 supplies me with a dynamic IP as well as blocking of port 80. I am
 using DynDNS to try and circumvent that situation.

 My knowledge of how to accomplish this quite frankly stinks. Even
 using a copy of O'Reilly's Apache has not helped me much.

 If anyone has a similar type of setup, I would appreciate them
 contacting me directly. I can supply all of my configuration files
 for them to look at. I am probably just doing something really stupid
 but I lack the knowledge to figure it out on my own.

 Thanks!

1.  Is your server updating DynDNS with your new IP address 
successfully?

2.  Take a look at DynDNS's MyWebHop service.  This service forwards 
port 80 to whatever port you choose.  That way, the redirection is 
transparent to people accessing your site.

3.  The only change in Apache configuration needed (relating to the port 
blocking issue) is to change the port the Apache listens on.  This is 
done in the httpd.conf file.  If you're not familiar with this file, 
you can get lots of good information at:

http://httpd.apache.org/

Best of luck,

Andrew Gould
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apache Logging output changed?

2005-06-21 Thread Noah
apache+mod_ssl-1.3.33+2.8.22
FreeBSD-4.11R3

This is really important for us to fix so I am asking again.

so I upgraded apache 1.3.33 from /usr/ports some about a month ago  and around
that time I stopped seeing POST log messages for my perl scripts ending up in
my server's access logs.  any clues why this is no longer being logged.  is
there some log granualrity configuration that is no longer default?

these POST messages stopped being logged around the time I upgraded.

--- snip ---

647.818.543.973 - - [14/Apr/2005:12:10:00 -0700] POST /Fakename.pl HTTP/1.1
405 323 http://www.fakedomainname.com/html/order.test.html; Mozilla/5.0
(Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
678.9188.843.973 - - [14/Apr/2005:14:02:10 -0700] POST /Fakename.pl HTTP/1.1
200 1974 http://www.fakedomainname.com.com/html/order.test.html; Mozilla/5.0
(Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

--- snip ---


clues please?

cheers,

Noha

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache Logging output changed?

2005-06-21 Thread Abu Khaled
On 6/21/05, Noah [EMAIL PROTECTED] wrote:
 apache+mod_ssl-1.3.33+2.8.22
 FreeBSD-4.11R3
 
 This is really important for us to fix so I am asking again.
 
 so I upgraded apache 1.3.33 from /usr/ports some about a month ago  and around
 that time I stopped seeing POST log messages for my perl scripts ending up in
 my server's access logs.  any clues why this is no longer being logged.  is
 there some log granualrity configuration that is no longer default?
 
 these POST messages stopped being logged around the time I upgraded.
 
 --- snip ---
 
 647.818.543.973 - - [14/Apr/2005:12:10:00 -0700] POST /Fakename.pl HTTP/1.1
 405 323 http://www.fakedomainname.com/html/order.test.html; Mozilla/5.0
 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 
 Firefox/1.0
 678.9188.843.973 - - [14/Apr/2005:14:02:10 -0700] POST /Fakename.pl HTTP/1.1
 200 1974 http://www.fakedomainname.com.com/html/order.test.html; Mozilla/5.0
 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 
 Firefox/1.0
 
 --- snip ---
 
 
 clues please?
 

What did you configure for the directive LogFormat/CustomLog?

-- 
Kind regards
Abu Khaled
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Installing Apache 2 with custom options

2005-06-20 Thread Nicholas Henry
FreeBSD 5.3-RELEASE (GENERIC) #0: Fri Nov  5 04:19:18 UTC 2004

I have apache2 running which I installed from ports. All is running
well. I would like to install the proxy module. As I'm relatively new
to FreeBSD and Unix I'm not sure which is the best way to go. Is there
a way to change the config options before doing a make. How do I do
this so I add to the existing config options with out overwriting
them. Can you do this with ports?

Any help would be much appreciated.

Cheers,
Nicholas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing Apache 2 with custom options

2005-06-20 Thread Alex Zbyslaw

Nicholas Henry wrote:


FreeBSD 5.3-RELEASE (GENERIC) #0: Fri Nov  5 04:19:18 UTC 2004

I have apache2 running which I installed from ports. All is running
well. I would like to install the proxy module. As I'm relatively new
to FreeBSD and Unix I'm not sure which is the best way to go. Is there
a way to change the config options before doing a make. How do I do
this so I add to the existing config options with out overwriting
them. Can you do this with ports?
 

I'm not quite sure what you are asking. 

If you are asking how do I get make to remember the configuration 
options I used last time then the easiest answer is to use 
sysutils/portupgrade and put your options into 
/usr/local/etc/pkgtools.conf (which is pretty self documenting when you 
edit it).  Some ports now put the options you used in 
/var/db/ports/{portname}/options, but apache2 doesn't seem to be one of 
them yet.  So if you didn't make a not of what you picked, you'll have 
to work them out all over again :-(


If you are asking how to re-install apache2 without overwriting changes 
you made to httpd.conf, then the safest way is to make backup copies 
before deleting the package and reinstalling.  (Easy with portugrgade -f 
option).  Actually, I think the port is clever about this and won't 
remove the config file if you have changed it, but I'd make backups anyway.


Personally, when installing a complex port like apache2, I always try to 
be generous about what modules etc I compile, and try to include stuff I 
*might* need even if I have no use for it yet.  Only experimental stuff 
gets left out.  Saves a lot of grief when you suddenly find a use for 
proxying :-)  Disk space is nearly always cheaper than time.


--Alex


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apache Logging output changed?

2005-06-20 Thread Noah

I know this off topic but the apache users mail list is slow in response to 
this question.  Anybody here 
can help me please?

apache+mod_ssl-1.3.33+2.8.22
FreeBSD-4.11R3


so I build apache 1.3.33 some about a month ago  and around that time I stopped 
seeing POST log 
messages for my perl scripts ending up in my server's access logs.  any clues 
why this is no longer 
being logged.  is there some log granualrity configuration that is no longer 
default?


clues please?

cheers,

Noha

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


apache Logging output changed?

2005-06-20 Thread Noah
apache+mod_ssl-1.3.33+2.8.22
FreeBSD-4.11R3


so I upgraded apache 1.3.33 from /usr/ports some about a month ago  and around
that time I stopped seeing POST log messages for my perl scripts ending up in
my server's access logs.  any clues why this is no longer being logged.  is
there some log granualrity configuration that is no longer default?

these POST messages stopped being logged around the time I upgraded.

--- snip ---

647.818.543.973 - - [14/Apr/2005:12:10:00 -0700] POST /Fakename.pl HTTP/1.1
405 323 http://www.fakedomainname.com/html/order.test.html; Mozilla/5.0
(Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
678.9188.843.973 - - [14/Apr/2005:14:02:10 -0700] POST /Fakename.pl HTTP/1.1
200 1974 http://www.fakedomainname.com.com/html/order.test.html; Mozilla/5.0
(Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

--- snip ---


clues please?

cheers,

Noha

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Configuring Apache with DynDNS

2005-06-19 Thread Gerard Seibert
I am attempting to get Apache to work on my computer. My ISM only supplies 
me with a dynamic IP as well as blocking of port 80. I am using DynDNS to 
try and circumvent that situation.


My knowledge of how to accomplish this quite frankly stinks. Even using a 
copy of O'Reilly's Apache has not helped me much.


If anyone has a similar type of setup, I would appreciate them contacting 
me directly. I can supply all of my configuration files for them to look 
at. I am probably just doing something really stupid but I lack the 
knowledge to figure it out on my own.


Thanks!

--
Gerard Seibert
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Installing Apache 2 with custom options

2005-06-19 Thread Nicholas Henry
FreeBSD 5.3-RELEASE (GENERIC) #0: Fri Nov  5 04:19:18 UTC 2004

I have apache2 running which I installed from ports. All is running
well. I would like to install the proxy module. As I'm relatively new
to FreeBSD and Unix I'm not sure which is the best way to go. Is there
a way to change the config options before doing a make. How do I do
this so I add to the existing config options with out overwriting
them. Can you do this with ports?

Any help would be much appreciated.

Cheers,
Nicholas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Apache logging?

2005-06-15 Thread Brian McCann
Anyone here know how to get Apache to log in GMT when the system clock
is in local time?  I can't imagine this being impossible...but I
can't seam to find it anywhere.

Thanks!
--Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache logging?

2005-06-15 Thread Jeff Wirth
 Anyone here know how to get Apache to log in GMT when the system clock
 is in local time?  I can't imagine this being impossible...but I

you didn't mention what version of apache...

1.3.* - http://httpd.apache.org/docs/logs.html#accesslog

[10/Oct/2000:13:55:36 -0700]  (%t)
The time that the server finished processing the request. The format is:

[day/month/year:hour:minute:second zone]
day = 2*digit
month = 3*letter
year = 4*digit
hour = 2*digit
minute = 2*digit
second = 2*digit
zone = (`+' | `-') 4*digit 

It is possible to have the time displayed in another format by
specifying %{format}t in the log format string, where format is as in
strftime(3) from the C standard library.

-jeff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache logging?

2005-06-15 Thread Brian McCann
On 6/15/05, Jeff Wirth [EMAIL PROTECTED] wrote:
  Anyone here know how to get Apache to log in GMT when the system clock
  is in local time?  I can't imagine this being impossible...but I
 
 you didn't mention what version of apache...
 
 1.3.* - http://httpd.apache.org/docs/logs.html#accesslog
 
 [10/Oct/2000:13:55:36 -0700]  (%t)
 The time that the server finished processing the request. The format is:
 
 [day/month/year:hour:minute:second zone]
 day = 2*digit
 month = 3*letter
 year = 4*digit
 hour = 2*digit
 minute = 2*digit
 second = 2*digit
 zone = (`+' | `-') 4*digit
 
 It is possible to have the time displayed in another format by
 specifying %{format}t in the log format string, where format is as in
 strftime(3) from the C standard library.
 
 -jeff
 

Thanks Jeff!  Just as I got your message I found a work around that
worked for me.  I set the TZ environment variable in the RC script to
me GMT and that did the trick.

Thanks!
--Brian
-- 
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Brian McCann
Systems  Network Administrator, K12USA

I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me.
-- Bill Murray, Ghostbusters
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: fresh port install off apache

2005-06-03 Thread Tony Shadwick
On a side note, the %PREFIX%/etc/rc.d scripts, when you look at them, are 
usually well commented as to what needs to be put in rc.conf to get a 
successful startup.  I'm now in the habit of reading over that for every 
new daemon port I install.


On Thu, 2 Jun 2005, fbsd_user wrote:



Read the comments at the end of the apache install. IN 5.4 there is
different way to start apache. It now needs some rc.conf statements


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Philip Wege
Sent: Thursday, June 02, 2005 6:07 PM
To: freebsd-questions@freebsd.org
Subject: fresh port install off apache


Hi

Did a fresh port install , added apache to rc.conf , apache says it
starts up but it just doesn't start up , anyone had this before ?

diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh stop
apache not running? (check /var/run/httpd.pid).



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


fresh port install off apache

2005-06-02 Thread Philip Wege
Hi

Did a fresh port install , added apache to rc.conf , apache says it
starts up but it just doesn't start up , anyone had this before ?

diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh stop
apache not running? (check /var/run/httpd.pid).



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: fresh port install off apache

2005-06-02 Thread fbsd_user

Read the comments at the end of the apache install. IN 5.4 there is
different way to start apache. It now needs some rc.conf statements


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Philip Wege
Sent: Thursday, June 02, 2005 6:07 PM
To: freebsd-questions@freebsd.org
Subject: fresh port install off apache


Hi

Did a fresh port install , added apache to rc.conf , apache says it
starts up but it just doesn't start up , anyone had this before ?

diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh stop
apache not running? (check /var/run/httpd.pid).



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fresh port install off apache

2005-06-02 Thread Lowell Gilbert
Philip Wege [EMAIL PROTECTED] writes:

 Hi
 
 Did a fresh port install , added apache to rc.conf , apache says it
 starts up but it just doesn't start up , anyone had this before ?
 
 diesel-electric# /usr/local/etc/rc.d/apache.sh start
 Starting apache.
 diesel-electric# /usr/local/etc/rc.d/apache.sh start
 Starting apache.
 diesel-electric# /usr/local/etc/rc.d/apache.sh stop
 apache not running? (check /var/run/httpd.pid).

What does the log say?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fresh port install off apache

2005-06-02 Thread =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?=

Philip Wege wrote:


Did a fresh port install , added apache to rc.conf , apache says it
starts up but it just doesn't start up , anyone had this before ?

diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh stop
apache not running? (check /var/run/httpd.pid).


Hello,

the output of

  tail /var/log/httpd-error.log

might be helpful. Show it.

Regards
Björn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: fresh port install off apache

2005-06-02 Thread Sergey S. Ropchan
Add line below to /etc/rc.conf:

apache_enable=YES


 Philip Wege wrote:

 Did a fresh port install , added apache to rc.conf , apache says it
 starts up but it just doesn't start up , anyone had this before ?
 
 diesel-electric# /usr/local/etc/rc.d/apache.sh start
 Starting apache.
 diesel-electric# /usr/local/etc/rc.d/apache.sh start
 Starting apache.
 diesel-electric# /usr/local/etc/rc.d/apache.sh stop
 apache not running? (check /var/run/httpd.pid).

 Hello,

 the output of

tail /var/log/httpd-error.log

 might be helpful. Show it.

 Regards
 Björn
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]



-- 
Best regards,
 Sergey S. Ropchan  mailto:[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fresh port install off apache

2005-06-02 Thread =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?=

Sergey S. Ropchan wrote:


Add line below to /etc/rc.conf:

apache_enable=YES


diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.


The string Starting apache. is a hint that the line 
apache_enable=YES exists in rc.conf.


Regards
Björn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fresh port install off apache

2005-06-02 Thread Foo Ji-Haw

You have to add the following line in rc.conf:
apache2_enable=YES



Philip Wege wrote:


Hi

Did a fresh port install , added apache to rc.conf , apache says it
starts up but it just doesn't start up , anyone had this before ?

diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh start
Starting apache.
diesel-electric# /usr/local/etc/rc.d/apache.sh stop
apache not running? (check /var/run/httpd.pid).



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: php/apache/ssl core dumps

2005-05-31 Thread patrick
Hi Ruben,

I have been experiencing the same thing, both by using the ports and
by building manually from source. I prefer to build from source, as I
find the ports tree to be a bit difficult to use when it comes to the
way it handles PHP stuff.

At any rate, I solved my problem by not building mod_ssl as a shared
module. Statically compiled, I no longer get the crashes. Perhaps the
ports tree has an option to build mod_ssl this way...

Patrick 


On 5/16/05, Ruben Bloemgarten [EMAIL PROTECTED] wrote:
 
 
 Hi all,
 
 
 
 I'm trying to get Apache to work with both ssl and php. However, when ssl
 apache and php are installed and the php module is set to be loaded into
 apache, apache core dumps (11). I'm using the latest ports tree. Also I've
 tried any number of combinations of mod_php, php-extensions,
 apache13-mod_ssl, apache13-ssl, apache then openssl etc etc. This problem
 has been discussed before but none of the solutions seem to be working.
 Could anyone help ?
 
 
 
 Thanks,
 
 
 
 Ruben
 
 
 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 05/13/2005
 
 
 
 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.11.10 - Release Date: 05/13/2005
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mod_auth_pam apache pam

2005-05-25 Thread Hexren
Hi,
I am trying to authentificate user against the system user database
using mod_auth_pam-1.1.1 on apache-1.3.33_1.

I get the following error in the apache error.log
(2)No such file or directory: access to /www.xxx.net/ failed for 
217.228.101.117, reason: authentication error

/etc/pam.d/httpd
#cat /etc/pam.d/httpd
auth   required   pam_unix.so debug
accountrequired   pam_unix.so debug

the relevant Directory directive from httpd.conf
  Directory /var/www/webalizer/www.xxx.net
AuthPAM_Enabled on
AllowOverride None
AuthName Web Statistics xxx
AuthType basic
require group test
   /Directory

imho the error has some connection to pam_unix.so, that is because
pam_permit.so works as it should (it permits everything).
Strangely no error shows up in my system message log. (where I log *.debug level
messages) despite the debug flag in /etc/pam.d/httpd.

After googling for a while and reading here and there I tried making
master.passd readable to the apache user (www) because some people
reported that they needed to do that with /etc/shadow on some linux
variants.

Somebody has an idea what I should test next or how I can solve my
problem ?

Kind Regards
Hexren

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_auth_pam apache pam

2005-05-25 Thread Ihsan Junaidi Ibrahim

Hexren wrote:

Hi,
I am trying to authentificate user against the system user database
using mod_auth_pam-1.1.1 on apache-1.3.33_1.

I get the following error in the apache error.log
(2)No such file or directory: access to /www.xxx.net/ failed for 217.228.101.117, 
reason: authentication error

/etc/pam.d/httpd
#cat /etc/pam.d/httpd
auth   required   pam_unix.so debug
accountrequired   pam_unix.so debug

the relevant Directory directive from httpd.conf
  Directory /var/www/webalizer/www.xxx.net
AuthPAM_Enabled on
AllowOverride None
AuthName Web Statistics xxx
AuthType basic
require group test
   /Directory

imho the error has some connection to pam_unix.so, that is because
pam_permit.so works as it should (it permits everything).
Strangely no error shows up in my system message log. (where I log *.debug level
messages) despite the debug flag in /etc/pam.d/httpd.



I've encountered the problem as well and have lived without it since; if
I recalled correctly from a previous reply on this list, pam_unix.so
uses getpwnam () to fetch the password information. It will only return
the password if the calling process has an UID of 0 (root). Since your
apache is running as user www, that should explain why the
authentication failed.

The only workaround is to have your apache runs as root or use a
different authentication back-end.

--
Thank you for your time,
Ihsan Junaidi Ibrahim,
http://ihsan.synthexp.net

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_auth_pam apache pam

2005-05-25 Thread Ihsan Junaidi Ibrahim

Ihsan Junaidi Ibrahim wrote:
  I've encountered the problem as well and have lived without it since; if

I recalled correctly from a previous reply on this list, pam_unix.so
uses getpwnam () to fetch the password information. It will only return
the password if the calling process has an UID of 0 (root). Since your
apache is running as user www, that should explain why the
authentication failed.

The only workaround is to have your apache runs as root or use a
different authentication back-end.



I forgot to add. Another suitable workaround is to use mod_auth_external 
(www/mod_auth_external) and pwauth (security/pwauth) to authenticate 
against but not limited to /etc/passwd. On a busy server, this may incur 
certain overhead but the important thing is that it does the job. It is 
more involving configuration-wise than mod_auth_pam but not by much.


I have it running for WebDAV as well as password protected directories 
on an installation.


--
Thank you for your time,
Ihsan Junaidi Ibrahim,
http://ihsan.synthexp.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: mod_auth_pam apache pam

2005-05-25 Thread Hexren
 Ihsan Junaidi Ibrahim wrote:
I've encountered the problem as well and have lived without it since; if
 I recalled correctly from a previous reply on this list, pam_unix.so
 uses getpwnam () to fetch the password information. It will only return
 the password if the calling process has an UID of 0 (root). Since your
 apache is running as user www, that should explain why the
 authentication failed.
 
 The only workaround is to have your apache runs as root or use a
 different authentication back-end.
 

 I forgot to add. Another suitable workaround is to use mod_auth_external 
 (www/mod_auth_external) and pwauth (security/pwauth) to authenticate 
 against but not limited to /etc/passwd. On a busy server, this may incur 
 certain overhead but the important thing is that it does the job. It is 
 more involving configuration-wise than mod_auth_pam but not by much.

 I have it running for WebDAV as well as password protected directories 
 on an installation.


-

I think I'll use mod_auth_external, in afterthought I was a bit narrow
minded to focus completly on mod_auth_pam instead of also looking for
other solutions. Thx for fixing that :-)

regards
Hexren

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.4 +apache (how to restart)

2005-05-20 Thread Tofik Suleymanov
fbsd_user wrote:
Thanks that worked
 

use 'apachectl graceful' in order to do a graceful restart
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


5.4 +apache (how to restart)

2005-05-19 Thread fbsd_user
Apache starts fine on boot, but need restart(ie: stop, start) to reload
changed httpd.conf.
How do I do this in 5.4?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: 5.4 +apache (how to restart)

2005-05-19 Thread Charles Lamb
Apachectl restart I believe


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of fbsd_user
Sent: Thursday, May 19, 2005 2:34 PM
To: [EMAIL PROTECTED] ORG
Subject: 5.4 +apache (how to restart)

Apache starts fine on boot, but need restart(ie: stop, start) to reload
changed httpd.conf.
How do I do this in 5.4?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.4 +apache (how to restart)

2005-05-19 Thread Julien Gabel
 Apache starts fine on boot, but need restart(ie: stop, start) to reload
 changed httpd.conf.
 How do I do this in 5.4?

If it was installed using the ports collection, you can do:
 # /usr/local/etc/rc.d/apache2.sh restart
 Or:
 # /usr/local/etc/rc.d/apache2.sh reload

-- 
-jpeg.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: 5.4 +apache (how to restart)

2005-05-19 Thread fbsd_user

Thanks that worked


-Original Message-
From: Charles Lamb [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 19, 2005 2:28 PM
To: [EMAIL PROTECTED]; '[EMAIL PROTECTED] ORG'
Subject: RE: 5.4 +apache (how to restart)


Apachectl restart I believe


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of fbsd_user
Sent: Thursday, May 19, 2005 2:34 PM
To: [EMAIL PROTECTED] ORG
Subject: 5.4 +apache (how to restart)

Apache starts fine on boot, but need restart(ie: stop, start) to
reload
changed httpd.conf.
How do I do this in 5.4?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache libraries/modules

2005-05-18 Thread Francisco Reyes
On Wed, 18 May 2005, Olivier Nicole wrote:
I build apache13-modssl with:
# nice make WITH_APACHE_SUEXEC=yes APACHE_SUEXEC_CALLER=httpd 
APACHE_SUEXEC_DOCROOT=/usr/local/apache/sites
APACHE_SUEXEC_UIDMIN=80 APACHE_SUEXEC_GIDMIN=30 PREFIX=/usr/local 
PORTDIR=/usr/local
Did you do a make install
No problem so far, then I try to:
# work/apache_1.3.33/src/httpd -t -DSSL

I think you need to do make install then httpd should be in 
/usr/local/sbin/httpd
and the libraries should also be int he right place.
Whether there is an additional change/setting I am not sure, but I do 
think that trying to run a port from the work directory is unlikely to work.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


<    7   8   9   10   11   12   13   14   15   16   >