[EMAIL PROTECTED] RE: failure notice

2006-04-05 Thread httpd2
On Wed, 5 Apr 2006, Amalan, S wrote:

> To: users@httpd.apache.org
> From: "Amalan, S" <[EMAIL PROTECTED]>
> Subject: RE: [EMAIL PROTECTED] RE: failure notice
> 
> Thanks much.  This explains why my installation did not need root
> privileges - I was running it on port 1150 or so.
> 
> This also brings up the question: is there a reason to set the port to
> be below 1024 so that only root can start it up?  Is there a downside to
> running Apache on a port greater than 1024?

By convention port 80 is the accepted port for a web server 
like apache to connect to and listen on. Your browser will 
connect to port 80 by default, unless yout tell it to use 
another port.

If you run apache on an obscure port, how will a user know 
which port to specify when connecting to your web server?

Most users do not even know about ports - all they want to 
know is the URL of your website.

AFAIK, You can run apache on any free port on your server, 
but if it is not port 80, you will then have to have your 
users to connect to it like this:

http://www.your-server.net:1150/home-page.html

Then every anchor in your site code would need to specify 
the port number. 

I guess it makes things alot simpler to use a standard port 
numbering scheme for all services that accept connections.

For a list of standard ports and the services that you can 
expect to find listening on them, take a look at:
http://www.iana.org/assignments/port-numbers

You can also do a port scan at http://www.grc.com

Click on Shields Up, then do a full port scan.

If you click on a port box, you will get more information 
from the grc port database about the service that runs on 
that particular port.

> There must have been some reason for designing it in such a way that the
> process owner gets dropped from root to a non-zero UID account.  I guess
> I am confused because if you need to be root to start it up, why should
> the process owner be dropped after binding to the privileged port to a
> non-zero UID account? And if you weren't root to begin with you wouldn't
> be able to startup Apache anyway.

Normally only root user is allowed to start or stop services 
such as web servers like apache. It would not do to have joe 
bloggs being able to start or stop services at will - this 
is a privilege reserved for the sys admin that logs in as 
the root user.

HTH

Keith Roberts


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] RE: failure notice

2006-04-01 Thread httpd2

Do you have the User and Group directives set in your 
httpd.conf file?

Eg

User wwwrun
Group nogroup

Apache will initially start as root user and bind to 
port 80, then switch to running as the specified user and 
group.

The group and user need to be valid system accounts on your 
server.

You will need to set the permissions of the files you want 
apache to serve as this user and group as well.

I'm not sure about DAV, as I do not use this.

The problem may also be with DAV user and group permissions 
as well.

See if you can disable DAV and get Apache running first 
without it. Once you have apache running OK, enable the DAV 
module and see if that works ok then.

HTH

Keith


On Fri, 31 Mar 2006, ws wrote:

> To: users@httpd.apache.org
> From: ws <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Aache 2.0.55 won't start
> 
> Please help.Apache 2.0.55 on Solaris 2.9 won't start with 
> the following error: [Sat Apr 01 15:26:39 2006] [notice] 
> Digest: done [Sat Apr 01 15:26:39 2006] [info] 
> mod_unique_id: using ip addr 158.77.55.107 [Sat Apr 01 
> 15:26:40 2006] [warn] pid file 
> /usr/local/apache2/logs/httpd.pid overwritten -- Unclean 
> shutdown of previous Apache run? [Sat Apr 01 15:26:40 
> 2006] [alert] (22)Invalid argument: setgid: unable to set 
> g roup id to Group 4294967295 [Sat Apr 01 15:26:40 2006] 
> [alert] (22)Invalid argument: setgid: unable to set group 
> id to Group 4294967295 [Sat Apr 01 15:26:40 2006] [alert] 
> (22)Invalid argument: setgid: unable to set g roup id to 
> Group 4294967295 [Sat Apr 01 15:26:40 2006] [alert] 
> (22)Invalid argument: setgid: unable to set g roup id to 
> Group 4294967295 [Sat Apr 01 15:26:40 2006] [notice] 
> Apache/2.0.55 (Unix) DAV/2 configured -- resuming normal 
> operations [Sat Apr 01 15:26:40 2006] [info] Server built: 
> Nov 22 2005 20:33:01 [Sat Apr 01 15:26:40 2006] [debug] 
> prefork.c(956): AcceptMutex: fcntl (default: fcntl) [Sat 
> Apr 01 15:26:40 2006] [alert] (22)Invalid argument: 
> setgid: unable to set group id to Group 4294967295 [Sat 
> Apr 01 15:26:41 2006] [alert] Child 5639 returned a Fatal 
> error... Apache i s exiting!
> 
> Thank you

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Newbie Help

2006-03-30 Thread httpd2

I found this book very helpful John:

Pro Apache 3rd Edition
By Peter Wainwright
ISBN: 1-59059-300-6
904 pp.
Published: Jan 2004
Apress

http://www.apress.com/book/bookDisplay.html?bID=275

It covers all you need to know (and alot more) to get you up 
and running with apache 1.3 and 2.0.x series.

Apress have recently changed their site CSS, so you may need 
to use something like mozilla if your usual browser has 
problems with rendering of the apress site.

Regards

Keith

In theory, theory and practice are the same;
in practice they are not.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] is there possibility to make apache be single thread in SunOS

2006-03-26 Thread httpd2

You may find this article on server processes in general 
helpfull Meir. I think it covers apache examples as well.

http://www.devshed.com/c/a/Administration/Design-and-Architecture/

HTH

Keith

In theory, theory and practice are the same;
in practice they are not.

On Sun, 26 Mar 2006, Meir Yanovich wrote:

> To: users@httpd.apache.org
> From: Meir Yanovich <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] is there possibility to make apache be single
> thread in SunOS
> 
> Thanks for you answer .. now its clearer
> im on my long journey to learn more and more so sorry for the beginners
> questions
> thanks

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] is there possibility to make apache be single thread in SunOS

2006-03-26 Thread httpd2

Meir - I think you are getting confused with apache 2.0.x 
and 2.2.x series. Apache 2 series supports various different 
MPM modules - 1.3 doesn't IIRC.

Keith

In theory, theory and practice are the same;
in practice they are not.

On Sun, 26 Mar 2006, Meir Yanovich wrote:

> To: users@httpd.apache.org
> From: Meir Yanovich <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] is there possibility to make apache be single
> thread in SunOS
> 
> Really ?
> now this is surprise .. i was sure its single thread in windows and multi
> thread in unix machine
> so how does it deal with forking the server children ? how does it deal with
> multiple requests? and such ..
> Thanks
> - Original Message -
> From: "Joshua Slive" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, March 26, 2006 8:17 PM
> Subject: Re: [EMAIL PROTECTED] is there possibility to make apache be single
> thread in SunOS
> 
> 
> > On 3/26/06, Meir Yanovich <[EMAIL PROTECTED]> wrote:
> >
> > > in the configuration of apache 1.3.27 , is there any possibility to make
> > > apache act like single thread process?
> >
> > Apache 1.3 is always single-threaded on unix, so your question doesn't
> > make much sense.
> >
> > Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] php crashes with msyql

2006-03-21 Thread httpd2

Amen Bill!

Keith Roberts

In theory, theory and practice are the same;
in practice they are not.

On Tue, 21 Mar 2006, William A. Rowe, Jr. wrote:

> To: users@httpd.apache.org
> From: "William A. Rowe, Jr." <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] php crashes with msyql
> 
> Noah Silverman wrote:
> > Hello,
> > 
> > I have a mission critical problem that I cant seem to solve.  Can
> > anyone help??
> > 
> > I'll even offer $100 paypal if someone gives me the answer to solve
> > this issue.
> 
> Noah - do this again and will simply unsub you from at least the
> apache.org
> lists, and I'm sure the folks at php lists feel similar.  Once is enough,
> enough is enough.  Your choice of PHP and your choice of compensation,
> your
> choice of spamming these lists and your choice to crosspost demonstrate
> your
> utter lack of comprehension of technology and utter lack of
> professionalism.
> 
> Ergo, we must assume that you don't have a clue what "mission critical"
> means,
> other than that you heard it last week in a lecture.  Good luck, stay in
> school,
> learn some etiquite along the way.
> 
> 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Weird Crashes

2006-03-21 Thread httpd2

I can't remember having Apache complain about not being able 
to find the APR files when compiling 2.2.0

Can you not downgrade Apache to 2.0.55 and see if that will 
get you by for now?

Keith

In theory, theory and practice are the same;
in practice they are not.

On Tue, 21 Mar 2006, Noah Silverman wrote:

> To: users@httpd.apache.org
> From: Noah Silverman <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Weird Crashes
> 
> I'm using Slackware Linux with 2.6.11.8.
> 
> it WAS running 2.0 and php.4.3.5
> Everything was working find.
> 
> I decided to upgrade to apache 2.2 and php 4.4 to keep up with the latest
> versions.
> 
> One bit of weirdness is that wen compiling apache, it complains about not
> having the APR files.  This seems strange since I thought that apache
> included all the apr stuff in the standard bundle???
> 
> Thanks,

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Weird Crashes

2006-03-21 Thread httpd2

Have you compiled mysql and mysqli for use in php4/5?

If so, you need to compile them both at the same time with 
the same mysql library.

Keith

On Tue, 21 Mar 2006, Noah Silverman wrote:

> To: users@httpd.apache.org
> From: Noah Silverman <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Weird Crashes
> 
> Thanks Keith,
> 
> I DID a fresh compile of php4 and php5.
> 
> Both give me the same crash.  No difference.
> 
> I'm starting to think that the problem might be with the Apache
> installation.
> Maybe Apache doesn't like the shared modules or something like that.  I
> compiled with the 'shared' option, but don't know what else could be
> causing the problem.
> 
> One clue - A script that calls phpinfo works fine.  the scripts that call
> mysql crash!
> 
> -N
> 
> 
> 
> On Mar 21, 2006, at 1:26 PM, [EMAIL PROTECTED] wrote:
> 
> > 
> > This link might be of interest to you Noah. Something
> > similar I posted on the php-install mailing list that
> > mentions how to use php4 code with the php5 module.
> > 
> > http://marc.theaimsgroup.com/?l=php-install&m=114269393127473&w=2
> > 
> > Also, are you actually compiling your php4 module against
> > apache 2.2.0, as 2.0.x compiled modules are not compatible
> > with Apache 2.2.0
> > 
> > Keith Roberts
> > 
> > 
> > In theory, theory and practice are the same;
> > in practice they are not.
> > 
> > On Tue, 21 Mar 2006, Noah Silverman wrote:
> > 
> > > To: users@httpd.apache.org
> > > From: Noah Silverman <[EMAIL PROTECTED]>
> > > Subject: Re: [EMAIL PROTECTED] Weird Crashes
> > > 
> > > I thought 4.4.2 WAS the stable version??
> > > 
> > > I don't think our current PHP pages will work with php 5.  Is
> > > there much
> > > of a difference between 4.4 and 5?  Would we need to rewrite
> > > code?
> > > 
> > > Thanks,
> > > 
> > > -N
> > > 
> > > 
> > > On Mar 21, 2006, at 1:00 PM, Michael Crute wrote:
> > > 
> > > > On 3/21/06, Noah Silverman <[EMAIL PROTECTED]> wrote:
> > > > > Hello,
> > > > > 
> > > > > I have a very strange situation here.
> > > > > 
> > > > > I installed Apache 2.2.0
> > > > > I installed php 4.4.2
> > > > > 
> > > > > Apache works great, but whenever I try to load a php page
> > > > > in a
> > > > > browser, apache immediately seg-faults.  no error message
> > > > > is
> > > > > produced.
> > > > > 
> > > > > THIS IS A MISSION CRITICAL PROBLEM!!
> > > > > 
> > > > > Can anybody help??
> > > > 
> > > > I saw this once where it would segfault the worker while
> > > > running a
> > > > script, but the main Apache process kept running. All I did
> > > > was
> > > > upgrade the unstable version of PHP and my problems magically
> > > > disappeared. I am running PHP 5 so YMMV.
> > > > 
> > > > -Mike
> > > > 
> > > > --
> > > > 
> > > > Michael E. Crute
> > > > http://mike.crute.org
> > > > 
> > > > It is a mistake to think you can solve any major problems
> > > > just with
> > > > potatoes.
> > > > --Douglas Adams
> > > > 
> > > > 
> > > > -
> > > > The official User-To-User support forum of the Apache HTTP
> > > > Server
> > > > Project.
> > > > See http://httpd.apache.org/userslist.html> for more
> > > > info.
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >  "   from the digest:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > 
> > > > 
> > > 
> > > 
> > > -
> > > The official User-To-User support forum of the Apache HTTP Server
> > > Project.
> > > See http://httpd.apache.org/userslist.html> for more info.
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >  "   from the digest: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > 
> > -
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >   "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Weird Crashes

2006-03-21 Thread httpd2

What OS are you using please?

Are you using pre-built versions of php and Apache or 
compiling things yourself?

Keith

In theory, theory and practice are the same;
in practice they are not.

On Tue, 21 Mar 2006, Noah Silverman wrote:

> To: users@httpd.apache.org
> From: Noah Silverman <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Weird Crashes
> 
> Ok,
> 
> I tried installing php 5.
> I still get the same crash problem.  This leads me to believe that
> something is wrong with my apache install.
> 
> I did have some weird problems with it complaining about not finding
> "apr".  Is that any kind of clue?
> 
> -N
> 
> 
> On Mar 21, 2006, at 1:05 PM, Michael Crute wrote:
> 
> > On 3/21/06, Noah Silverman <[EMAIL PROTECTED]> wrote:
> > > I thought 4.4.2 WAS the stable version??
> > > 
> > > I don't think our current PHP pages will work with php 5.  Is
> > > there
> > > much of a difference between 4.4 and 5?  Would we need to rewrite
> > > code?
> > > 
> > > Thanks,
> > 
> > Note that I said unstable version. In any case there where a lot of
> > major changes for PHP 5 but to the best of my knowledge all your PHP
> > 4
> > code would still work, mine does.
> > 
> > -Mike
> > 
> > --
> > 
> > Michael E. Crute
> > http://mike.crute.org
> > 
> > It is a mistake to think you can solve any major problems just with
> > potatoes.
> > --Douglas Adams
> > 
> > -
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >   "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Weird Crashes

2006-03-21 Thread httpd2

This link might be of interest to you Noah. Something 
similar I posted on the php-install mailing list that 
mentions how to use php4 code with the php5 module.

http://marc.theaimsgroup.com/?l=php-install&m=114269393127473&w=2

Also, are you actually compiling your php4 module against 
apache 2.2.0, as 2.0.x compiled modules are not compatible 
with Apache 2.2.0

Keith Roberts


In theory, theory and practice are the same;
in practice they are not.

On Tue, 21 Mar 2006, Noah Silverman wrote:

> To: users@httpd.apache.org
> From: Noah Silverman <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Weird Crashes
> 
> I thought 4.4.2 WAS the stable version??
> 
> I don't think our current PHP pages will work with php 5.  Is there much
> of a difference between 4.4 and 5?  Would we need to rewrite code?
> 
> Thanks,
> 
> -N
> 
> 
> On Mar 21, 2006, at 1:00 PM, Michael Crute wrote:
> 
> > On 3/21/06, Noah Silverman <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > > 
> > > I have a very strange situation here.
> > > 
> > > I installed Apache 2.2.0
> > > I installed php 4.4.2
> > > 
> > > Apache works great, but whenever I try to load a php page in a
> > > browser, apache immediately seg-faults.  no error message is
> > > produced.
> > > 
> > > THIS IS A MISSION CRITICAL PROBLEM!!
> > > 
> > > Can anybody help??
> > 
> > I saw this once where it would segfault the worker while running a
> > script, but the main Apache process kept running. All I did was
> > upgrade the unstable version of PHP and my problems magically
> > disappeared. I am running PHP 5 so YMMV.
> > 
> > -Mike
> > 
> > --
> > 
> > Michael E. Crute
> > http://mike.crute.org
> > 
> > It is a mistake to think you can solve any major problems just with
> > potatoes.
> > --Douglas Adams
> > 
> > -
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >   "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Two versions of Apache

2006-03-13 Thread httpd2

SuSE has a runlevel editor, where you use a GUI to edit 
which services are activated or not.

This also seems to pick up any scripts found in 
/etc/init.d/, as some home made scripts of mine appeared in 
the RLE, which was unexpected.

I tried deactivating the default RPM for Apache in the RLE, 
and this did the job. Only thing was, when I did an online 
update, because the Apache RPM was still on the system, I 
still found it was being updated, even though I was not 
going to use that any more. So, I just uninstalled it via 
YaST, which is the system administration tool in SuSE.

BTWFYI - SuSE uses the Redhat Package Manager from RedHat 
software from within YaST, as it's package management tool.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Mar 2006, ryan punt wrote:

> To: users@httpd.apache.org
> From: ryan punt <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Re: [SPAM] Re: [EMAIL PROTECTED] Two versions of 
> Apache
> 
> I don't have a Fedora install available right now, but I know that RedHat 
> includes a util called chkconfig. This program allows you to deactivate 
> daemons while leaving the init-script in place.
> 
> For example, if you wanted to leave the original version of apache installed, 
> but didn't want it to start on boot, you could run the following:
> 
> # chkconfig --del apache
> 
> This will remove an run-level-specific links to /etc/rc.d/init.d/apache, 
> which will keep the script from being executed on boot or halt. However, 
> since the actual script is left in /etc/rc.d/init.d, it can be reactivated 
> later by running:
> 
> # chkconfig --add apache
> 
> If you installed apache2 from a Fedora repository, I'd be very surprised if 
> the init-script wasn't written to handle chkconfig, so the same rules should 
> apply; if you run:
> 
> # chkconfig --add apache2
> 
> it should add the run-level-links for apache2 and apache2 should then start 
> on boot. [replace apache2 with the name if your actual init script]
> 
> I'm pretty sure that SuSE also includes chkconfig, and Debian has 
> update-rc.d. They're great tools, I'd definitely look into using them.
> 
> ~rlp
> 
> >>> [EMAIL PROTECTED] 3/13/2006 5:01 AM >>>
> 
> You might like to make a copy of your original boot script 
> that is used to start apache. Then you can edit that, as 
> already mentioned, and then uninstall the default apache 
> that comes with your distro.
> 
> (It is also a good idea save/backup any altered system 
> scripts like this in a safe place, so you can reinstall 
> them if you do an OS reinstall or upgrade later.)
> 
> If you are not using the default apache, and it is still 
> installed, you will find it is updated when you do a 
> security update, which is a waste of time.
> 
> The same applies to other services that you install 
> along side default installations, such as php or mysql.
> 
> An alternative way to start apache would be to add something 
> like this to your boot.local script, but you will not get 
> the nice information messages to say apache, mysql or 
> whatever has started up at boot time.
> 
> Don't forget to add entries to your halt.local script to 
> shut down the services that you start from boot.local.
> 
> contents of my boot.local script:
> 
> #! /bin/sh
> #
> # Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany.  All rights reserved.
> #
> # Author: Werner Fink <[EMAIL PROTECTED]>, 1996
> # Burchard Steinbild <[EMAIL PROTECTED]>, 1996
> #
> # /etc/init.d/boot.local
> #
> # script with local commands to be executed from init on system startup
> #
> # Here you should add things, that should happen directly after booting
> # before we're going to the first run level.
> 
> # start the MySQL 5.0.18 server
> /usr/local/mysql-5.0.18/bin/start-mysql-5.0.18
> 
> # start apache 2.2.0 web server
> /usr/local/apache-2.2.0/bin/apachectl start
> 
> 
> contents of halt.local:
> 
> #! /bin/sh
> #
> # Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany.  All rights reserved.
> #
> # Author: Werner Fink <[EMAIL PROTECTED]>, 1998
> # Burchard Steinbild, 1998
> #
> # /etc/init.d/halt.local
> #
> # script with local commands to be executed from init on system shutdown
> #
> # Here you should add things, that should happen directly before shuting
> # down.
> 
> # stop the apache 2.2.0 web server
> /usr/local/apache-2.2.0/bin/apachectl stop
> 
> # stop the MySQL 5.0.18 database server
> /usr/local/mysql-5.0.18/bin/stop-mysql-5.0.18
> 
> You also could post your original apache boot script to the 
> list, for us to tell you where it needs editing, if you 
> prefer to use that method.
> 
> HTH
> 
> Keith
> 
> 
> In theory, theory and practice are the same;
> In practice they are not. 
> 
> On Mon, 13 Mar 2006, Roger wrote:
> 
> > To: users@httpd.apache.org, [EMAIL PROTECTED] 
> > From: Roger <[EMAIL PROTECTED]>
> > Subject: [SPAM] Re: [EMAIL PROTECTED] Two versions of Apache
> > 
> > Thanks again, but what do i edit in that httpd file

[EMAIL PROTECTED] Re: [SPAM] Re: [EMAIL PROTECTED] Two versions of Apache

2006-03-13 Thread httpd2

You might like to make a copy of your original boot script 
that is used to start apache. Then you can edit that, as 
already mentioned, and then uninstall the default apache 
that comes with your distro.

(It is also a good idea save/backup any altered system 
scripts like this in a safe place, so you can reinstall 
them if you do an OS reinstall or upgrade later.)

If you are not using the default apache, and it is still 
installed, you will find it is updated when you do a 
security update, which is a waste of time.

The same applies to other services that you install 
along side default installations, such as php or mysql.

An alternative way to start apache would be to add something 
like this to your boot.local script, but you will not get 
the nice information messages to say apache, mysql or 
whatever has started up at boot time.

Don't forget to add entries to your halt.local script to 
shut down the services that you start from boot.local.

contents of my boot.local script:

#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany.  All rights reserved.
#
# Author: Werner Fink <[EMAIL PROTECTED]>, 1996
# Burchard Steinbild <[EMAIL PROTECTED]>, 1996
#
# /etc/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.

# start the MySQL 5.0.18 server
/usr/local/mysql-5.0.18/bin/start-mysql-5.0.18

# start apache 2.2.0 web server
/usr/local/apache-2.2.0/bin/apachectl start


contents of halt.local:

#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany.  All rights reserved.
#
# Author: Werner Fink <[EMAIL PROTECTED]>, 1998
# Burchard Steinbild, 1998
#
# /etc/init.d/halt.local
#
# script with local commands to be executed from init on system shutdown
#
# Here you should add things, that should happen directly before shuting
# down.

# stop the apache 2.2.0 web server
/usr/local/apache-2.2.0/bin/apachectl stop

# stop the MySQL 5.0.18 database server
/usr/local/mysql-5.0.18/bin/stop-mysql-5.0.18

You also could post your original apache boot script to the 
list, for us to tell you where it needs editing, if you 
prefer to use that method.

HTH

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Mar 2006, Roger wrote:

> To: users@httpd.apache.org, [EMAIL PROTECTED]
> From: Roger <[EMAIL PROTECTED]>
> Subject: [SPAM] Re: [EMAIL PROTECTED] Two versions of Apache
> 
> Thanks again, but what do i edit in that httpd file
> 
> On Mon, 2006-03-13 at 02:39 -0600, Graham Frank wrote:
> 
> > Check for the file /etc/rc.d./init.d/httpd
> > 
> > If it exists, then go ahead and edit it with any text editor and change the 
> > httpd path.  That way, it will start your custom apache instead of the one 
> > which came with your os.
> > 
> > -Graham
> > 
> > -Original Message-
> > 
> > From:  Roger <[EMAIL PROTECTED]>
> > Subj:  [EMAIL PROTECTED] Two versions of Apache
> > Date:  Mon Mar 13, 2006 2:33 am
> > Size:  670 bytes
> > To:  users@httpd.apache.org
> > 
> >I installed Apache 2 on Fedora this Saturday.I have a problem, 
> > whenever i restart my machine, it starts up the default httpd service that 
> > comes with Fedora, meaning i have two versions running and i have to shut 
> > down the default httpd then go to 
> >  
> >  /usr/local/apache2/bin/apachectl start.
> >  
> >  I find this very cumbersome to do, how can i remove the default httpd so 
> > that whenever i start or run Linux, it uses the newer version!
> > 
> > 
> > -
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >"   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: [EMAIL PROTECTED] Conditional Directives

2006-03-13 Thread httpd2

Sample chapter link:

http://www.apress.com/book/supplementDownload.html?bID=275&sID=2134

:-)

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Mar 2006 [EMAIL PROTECTED] wrote:

> To: users@httpd.apache.org
> From: [EMAIL PROTECTED]
> Subject: Re[2]: [EMAIL PROTECTED] Conditional Directives
> 
> 
> This sample chapter from Pro Apache 3rd Edition from Apress
> details how to use embedded Perl in Apache config files.
> See the section toward the end of the chapter, titled
> 
> 'Generating on the fly and included configuration files with 
> mod_perl'
> 
> Not sure if you can do this in .htaccess files though.
> 
> Keith

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: [EMAIL PROTECTED] Conditional Directives

2006-03-13 Thread httpd2

This sample chapter from Pro Apache 3rd Edition from Apress
details how to use embedded Perl in Apache config files.
See the section toward the end of the chapter, titled

'Generating on the fly and included configuration files with 
mod_perl'

Not sure if you can do this in .htaccess files though.

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Mar 2006, Alan Little wrote:

> To: Tony Heal 
> From: Alan Little <[EMAIL PROTECTED]>
> Subject: Re[2]: [EMAIL PROTECTED] Conditional Directives
> 
> That's interesting. Does that include .htaccess files? Could you give
> me an example of how to do it?
> 
> -- 
> Alan Little
> Holotech Enterprises
> 
> On Sunday, March 12, 2006, 11:43:57 PM, you wrote:
> 
> > Yes, apache conf file can be written in perl, so you can use if
> > statements to determine whether you want something installed or not
> > depending on whatever your criteria is.
> 
> > Tony Heal
> > Pace Systems Group, Inc.
> > 800-624-5999
> > [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Alan Little [mailto:[EMAIL PROTECTED] 
> > Sent: Sunday, March 12, 2006 7:29 AM
> > To: users@httpd.apache.org
> > Subject: [EMAIL PROTECTED] Conditional Directives
> 
> > Is there a general way to make Apache directives conditional, based on
> > such things as environment variables, presence of a file or directory,
> > etc.? I'm familiar with such things as IfModule or IfDefine, but want
> > something more  general. I've searched all day and can't find
> > anything, but perhaps I'm  overlooking something.
> 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Finding what module are installed

2006-03-12 Thread httpd2

If you are using or thinking about using php, you can get s 
listing of all installed apache modules, with the phpinfo() 
function, such as:

Loaded Modules 
core prefork http_core mod_so mod_authn_file mod_authn_dbm 
mod_authn_anon mod_authn_dbd mod_authn_default 
mod_authz_host mod_authz_groupfile mod_authz_user 
mod_authz_dbm mod_authz_owner mod_authz_default 
mod_auth_basic mod_auth_digest mod_dbd mod_dumpio 
mod_ext_filter mod_include mod_filter mod_deflate 
mod_log_config mod_log_forensic mod_logio mod_env 
mod_mime_magic mod_cern_meta mod_expires mod_headers 
mod_ident mod_usertrack mod_unique_id mod_setenvif 
mod_version mod_mime mod_status mod_autoindex mod_asis 
mod_info mod_negotiation mod_dir mod_actions mod_alias 
mod_php5 

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

> > > I have Apache2 installed on a debian server. I had installed several
> > > modules but am not sure what all I had installed.
> > > Is there any way I can see what all modules are present?
> > > 'apache2 -l' does not show all the modules installed it only shows the
> > > ones that were compiled in.
> > > Any ideas on this?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Slow configure process on AIX

2006-03-05 Thread httpd2

What about just removing ksh completely from your system, 
and creating a symbolic link called ksh to point to the bash 
shell? Would this work, or would it break your system?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 6 Mar 2006, Peter Eckel wrote:

> To: users@httpd.apache.org
> From: Peter Eckel <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Slow configure process on AIX
> 
> Hi,
> 
> I am just building Apache httpd 2.2.0 on AIX 5.2. 
> 
> During the first run of configure, I noticed that the 
> configuration process is extremely slow. The most sluggish 
> part is when configure tries to figure out which version 
> of the Berkeley DB is to be used. The tests literally take 
> forever.
> 
> This reminded me of a similar problem I had during the 
> build of gcc on the same system. So I tried the same 
> remedy, and it works well - configure time is down to a 
> fraction of what it was before. The workaround is quite 
> simple: Install bash and make configure use it as its 
> shell:
> 
> --- export CONFIG_SHELL=/usr/local/bin/bash (or wherever 
> your bash is located) ./configure ---
> 
> The reason, as far as I remember, is thet ksh creates lots 
> of temp files which it has to clean up afterwards.
> 
> Hope this helps someone, 
> 
>   Peter.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] apachectl and multiple daemons

2006-02-22 Thread httpd2

I suppose you could split out the common part of each 
httpd.conf file and include that into each apache 
host-specific file you are using at start up.

What about ports though?

Is each apache going to listen on a different port?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Wed, 22 Feb 2006, Joshua Slive wrote:

> To: users@httpd.apache.org
> From: Joshua Slive <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] apachectl and multiple daemons
> 
> On 2/22/06, Richard de Vries <[EMAIL PROTECTED]> wrote:
> > I have the need to run multiple daemons off of the
> > same apache base install. Each daemon will have it's
> > own configuration file of course, but since they are
> > all configured pretty much the same (same modules etc)
> > I don't see a need to have several apache installs.
> >
> > So, I'd have one install, i.e.
> > /usr/apache/
> >
> > with multiple configs, i.e
> >/usr/apache/conf/httpd-host1.conf
> >/usr/apache/conf/httpd-host2.conf
> >/usr/apache/conf/httpd-host3.conf
> >
> > Is there an "apachectl" script that allows for
> > multiple daemons to be managed? (start/stop/restart) ?
> 
> apachectl -f /usr/apache/conf/httpd-host1.conf -k start
> 
> Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] php & html

2006-02-22 Thread httpd2

What OS are you migrating to?

If it's Windows you should be able to run a DOS command-line
prompt, so your current DOS programs should work ok.

If you are migrating to a Linux system, there is DOS-Emu and 
xdosemu, which are DOS emulators.

http://www.dosemu.org/
http://linux.maruhn.com/sec/xdosemu.html

Another possiblilty worth looking into might be to use XML.

This would allow you to use things like XSLT to generate 
several different output formats, all from a single source 
or set of source files.

Keith
 
In theory, theory and practice are the same;
In practice they are not. 

On Wed, 22 Feb 2006, JC wrote:

> To: Apache Users 
> From: JC <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] php & html
> 
> Hi list,
> 
> My organization is use a very old DOS language to program 
> and I'm planning to move the whole system to mysql & php.  
> But I have a problem during the planning process.  Here's 
> the problem:
> 
> We print a lot of forms (different size), barcodes, tags, 
> and labels. Now, if we migrate to mysql & php, is there a 
> way to format (html) so that we can still print forms, 
> barcodes, tags, and labels all in different size? Is there 
> any tool out there that can accomplish this?
> 
> Thanks,
> JC

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] php and apache22

2006-02-22 Thread httpd2

Are you using an old mod_php4 compiled for Apache 2.0.xx?

If so, you need to recompile mod_php4 against Apache 2.2,
because Apache 2.0.xx module format is different to the 
Apache 2.2.0 format.

Or are you trying to load mod_php4 & mod_php5 at the same 
time into Apache 2.2.0, which would really confuse Apache ?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Wed, 22 Feb 2006, Thomas Schweikle wrote:

> To: users@httpd.apache.org
> From: Thomas Schweikle <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED]  php and apache22
> 
> Hi!
> 
> starting apache22 with mod_php4 I am prompted with various error
> messages:
> 
> PHP Warning:  Function registration failed - duplicate name -
> imagick_ordereddither in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_composite in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_set_image_comment in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_set_image_quality in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_destroyhandle in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_read in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_free in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_add_resource in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_list_magickinfo in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_new in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_init in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_copy_sample in Unknown on line 0
> PHP Warning:  Function registration failed - duplicate name -
> imagick_copy_resize in Unknown on line 0
> 
> If I start without mod_php4 apache22 is started and stays
> running. Any idea what is wrong here?
> 
> -- 
> Thomas
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Force/add/append/inject HTML to documents (similar to 'Header append') for no archive

2006-02-20 Thread httpd2

Thankyou for your comments Nick. I will look into the 
modules you mentioned below.

This may not be relevant, but I note in the php manual,
php4 and php5 support the concept of handlers.

Is this in any way related to filters Nick?

# PHP 4
AddHandler php-script php
AddType text/html php

# PHP 5
AddHandler php5-script php
AddType text/html php


Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sun, 19 Feb 2006, Nick Kew wrote:

> To: users@httpd.apache.org
> From: Nick Kew <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Force/add/append/inject HTML to documents 
> (similar
> to 'Header append') for no archive
> 
> On Sunday 19 February 2006 08:40, [EMAIL PROTECTED] wrote:
> > If you use only one page header for all your html files, you
> > can then use that one instance for all of the pages on your
> > site by including it with something like
> >
> > 
> 
> That would be a very bad solution, several times over.
> 
> Firstly, it means preprocessing.  And why would one preprocess
> to that rather than to add in the required line directly?  Or if
> future flexibility is an issue, to add it as SSI which can be enabled/
> disabled at will without breaking the pages?
> 
> Secondly, it loses flexibility.  Not just a little, but hugely, because
> PHP - unlike SSI or any of the other apache-based solutions -
> doesn't run as a filter.
> 
> Thirdly it imposes an extra load on the server.  That could be
> quite modest, but for any user who has to ask the question
> in the first place, it's likely to be very substantial, because he's
> unlikely to have the expertise to use PHP without destroying
> cacheability.
> 
> > at the top of each html page, where the ...
> > section would normally reside.
> 
> How many sites have identical s on all pages?
> 
> > Then, you only need to make one change to the included
> > page-head.php file, to affect all the pages on your site.
> 
> SSI would do that more flexibly.  As would mod_publisher or
> mod_layout, without requiring the pages to be edited in the
> first place.
> 
> But as I already said, the best solution is almost certainly
> none of the above.
> 
> -- 
> Nick Kew
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] apache 2.2 build failure

2006-02-19 Thread httpd2

Yes - please post your configure line, and I will try and do 
a build on SuSE 9.2 pro as well.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sun, 19 Feb 2006, Joost de Heer wrote:

> To: kalin mintchev <[EMAIL PROTECTED]>
> From: Joost de Heer <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] apache 2.2 build failure
> 
> kalin mintchev wrote:
> >
> > anybody has tried mod_proxy and balancer then?
> >
> >>  hi al...
> >>
> >>  trying to build apache 2.2 with the http proxy and load balancing
> >> modules
> >> enabled. ./configure went trough fine. the making fails. i'm attaching
> >> the full output of where the error happens but here is a few lines of
> >> it
> 
> What is your exact configure line?
> 
> Joost

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Force/add/append/inject HTML to documents (similar to 'Header append') for no archive

2006-02-19 Thread httpd2

If you use only one page header for all your html files, you 
can then use that one instance for all of the pages on your 
site by including it with something like



at the top of each html page, where the ... 
section would normally reside.

Then, you only need to make one change to the included 
page-head.php file, to affect all the pages on your site.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sat, 18 Feb 2006, S.A. Birl wrote:

> To: users@httpd.apache.org
> From: S.A. Birl <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Force/add/append/inject HTML to documents (similar 
> to
> 'Header append') for no archive
> 
> Im sure this has been asked before, but I was unable to find a
> suitable query to search the httpd-users list with:
> 
> Is it possible to have Apache 2.0.53 to append HTML information to
> pages as they are being served out?  Similar to 'Header append', but
> for the body?
> 
> I looked at all of Add* modules on the website, and couldnt think of
> anything that matches.  Im not sure if mod_asis or mod_cern_meta would
> help.
> 
> 
> Or does someone know of an easy way to append
>   
> to 100+ files?
> 
> 
> 
> Thanks
>  Birl
> 
> Please do not CC me responses to my own posts.
> I'll read the responses on the list.
> 
> Archives   http://mail-archives.apache.org/mod_mbox/httpd-users/
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache 2 on Suse 9.1 Reverse Proxy not working

2006-02-14 Thread httpd2

Hi. I'm running SuSE 9.2 pro at home.

I have downloaded the source code for Apache 2.0.55 and 
2.2.0. It is not difficult to compile on SuSE 9.2 - should 
work OK on 9.1 as well.

Why don't you download the source and use that?

You should then be able to compile Apache 2.0.55, and use 
the mod_proxy_html module compiled by Apache on your 
SuSE 9.1 system.

HTH

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Tue, 14 Feb 2006 [EMAIL PROTECTED] wrote:

> To: users@httpd.apache.org
> From: [EMAIL PROTECTED]
> Subject: [EMAIL PROTECTED] Apache 2 on Suse 9.1 Reverse Proxy not working
> 
> Hi all,
> 
> I have tried to use the Apache Week article to set up 
> reverse proxy. It is being installed on a SuSE 9 Linux x86 
> box running Apache 2. I have configured it as per the 
> notes, but am getting errors which I'm thinking is to do 
> with the rewriting of the URL. Below is the error 
> messages, as well as the configuration.
> 
> The only thing which I've done different, is to use a copy 
> of the mod_proxy_html.so from a mandrake rpm (for x586).

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Help getting php up and running

2006-02-11 Thread httpd2

Don - I have sent you a complete httpd.conf include file off 
list, for loading Apache 1.3.x modules. It should be usable 
directly.

On Sat, 11 Feb 2006 [EMAIL PROTECTED] wrote:

> To: users@httpd.apache.org
> From: [EMAIL PROTECTED]
> Subject: Re: [EMAIL PROTECTED] Help getting php up and running

Correction - Well, I have just checked an old Apache 1.3.x 
httpd.conf I had stashed away, and there is no mention of 
loading the following modules. So I guess they are just 
plain old php modules, not loadable directly by Apache 
1.3.x?

> IIRC, does Apache 1.3.x also require LoadModule statements for the
> following modules? 
> 
> php4   4.4.2-1   server-side, HTML-embedded scripting language
> php4-common4.4.2-1   Common files for packages built from the php
> 
> Is this also loadable by apache 1.3.x
> php4-mysql 4.4.2-1   MySQL module for php4

Keith


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Help getting php up and running

2006-02-11 Thread httpd2

I have not used Apache 1.3.x series for a while now. If 
these are 1.3 modules, then you don't need to load the 
libapache2-mod-php5 - it's for the 2 series. Even it it was 
for 1.3.x series, I don't think you can load php4 & php5 
modules together into the same instance of apache. Which 
module's function would be called for functions that are the 
same name, e.g. mysql_query()?


> > I have the following installed
> >
> > ii  libapache-mod-php44.4.2-1
> > server-side, HTML-embedded scripting language


***
> > rc  libapache2-mod-php5   5.0.5-3
> > server-side, HTML-embedded scripting languag
***


> > ii  php4  4.4.2-1   server-side, HTML-embedded scripting language
> > ii  php4-common   4.4.2-1   Common files for packages built from the php
> > ii  php4-mysql4.4.2-1   MySQL module for php4
> >
> > And this is my modules.conf
> >
> > ClearModuleList
> > AddModule mod_so.c
> > AddModule mod_macro.c
> > LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
> > LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
> > LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
> > LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
> > LoadModule status_module /usr/lib/apache/1.3/mod_status.so
> > LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
> > LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
> > LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
> > LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
> > LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
> > LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
> > LoadModule access_module /usr/lib/apache/1.3/mod_access.so
> > LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
> > LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
> > LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
> > LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so


> > LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
> > LoadModule includes_module /usr/lib/apache2/modules/libphp4.so

Looks like you have done a cut-and-paste and have forgotten 
to change the module alias name for libphp4.so, cause it is 
the same as the previous line for mod_include.

IIRC, does Apache 1.3.x also require LoadModule statements for the
following modules? 

php4   4.4.2-1   server-side, HTML-embedded scripting language
php4-common4.4.2-1   Common files for packages built from the php

Is this also loadable by apache 1.3.x
php4-mysql 4.4.2-1   MySQL module for php4

HTH 

Keith

> >
> > For the life of me I can't figure out why following the 
> > instructions won't
> >  get this up and running this time.  I think I'm missing 
> >  a file somewhere.
> >
> > Don

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] undocumented POST size limit?

2006-02-10 Thread httpd2

What script language are you using to process the uploaded 
file? You may be better off using pure ftp for file uploads 
of that size.

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Fri, 10 Feb 2006, Anthony DiSante wrote:

> To: users@httpd.apache.org
> From: Anthony DiSante <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] undocumented POST size limit?
> 
> Hello,
> 
> I'm running Apache 2.0.54 on a Linux system here.  Across my LAN, I can
> upload a 1.4GB file to it via POST with a CGI script, no problem.  But if
> I try to upload a 2.1GB file, the upload never starts; the server refuses
> it.
> 
> I checked the server's access log to see what was going on.  When the
> client was Internet Explorer, the access log shows just a single line:
> 
> 192.168.1.10 - - [10/Feb/2006:06:58:22 -0500] "POST
> /cgi-bin/upload/filechucker.cgi?&serial=1182736... HTTP/1.1" 413 428
> "http://192.168.1.5/cgi-bin/upload/filechucker.cgi"; "Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
> 
> As you can see, the response code is 413, which is "Request Entity Too
> Large".  And the client receives an error page in the browser.
> 
> When the client is Firefox, however, the request is never logged at all,
> and no error is sent to the browser -- it just sits there as though you'd
> never attempted to start the upload in the first place.
> 
> In both cases, though, the upload never even begins.  I'm trying to figure
> out why this is.  The Apache docs mention a LimitRequestBody directive
> which would seem to be it, except that it defaults to 0, i.e. unlimited.
> And even when I explicitly set it to 0 in my Apache config, I get the same
> behavior.
> 
> Can anyone else confirm this behavior, or report that they actually CAN
> upload a file >2GB?  Or is there some other setting that could be limiting
> the size of POST data?
> 
> Thanks,
> 
> -- 
> Anthony DiSante
> Encodable Industries
> http://encodable.com/
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] default mime.types does not contain "gz" - any reason why not?

2006-02-10 Thread httpd2

Users are not really supposed to edit the mime.types file 
directly. I think this is what the AddType directive is for.

The Apache webmaster may have edited the mime.types file.
Most likely, he/she has just added the following directive 
to httpd.conf.

# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .hml
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
AddType application/x-httpd-php .js

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Fri, 10 Feb 2006, Boyle Owen wrote:

> To: Apache list  From: Boyle Owen 
> <[EMAIL PROTECTED]> Subject: [EMAIL PROTECTED] default 
> mime.types does not contain "gz" - any reason
> why not?
> 
> Greetings,
> 
> I have just realised that the default version of 
> mime.types which comes with apache distros 1.3 & 2.0 does 
> not contain an extension for the type 
> "application/x-gzip". This means that if you have a file 
> on your site like download.tar.gz, it will be served with 
> "Content-type: application/x-tar" (I guess apache falls 
> back to the .tar when it can't find anything for .gz).
> 
> This is not a problem for a unix machine, it just saves the file as 
> download.tar.gz and then you can gunzip it as normal. However, on a Windows 
> platform, the combination of the two dots in the filename and the misleading 
> mime-type causes the OS to save the file as "download.tar.tar". Thus it can't 
> be recognised by WinZip et al.
> 
> [Let's leave aside, for the moment, the issue of why would 
> want to download a tar.gz on a Windows machine :-]
> 
> The simple fix is to assign "application/x-gzip" the 
> extension "gz" in mime.types. Then the file is served with 
> "Content-type: application/x-gzip", windows can save the 
> file without munging the name and WinZip is happy.
> 
> Is this simply an omission or is anyone aware of any 
> reason why application/x-gzip should not be assigned an 
> extension?
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> PS - I checked the apache download sites and they send the 
> correct mime-type for httpd-2.2.0.tar.gz, for example. 
> Does this mean that the apache site webmaster must have 
> had to edit his own mime.types? If so, he might've 
> committed the change to the distro too :-)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] No go with Apache 2.0.55 and PHP 5.1.x

2006-02-09 Thread httpd2

Hi Gary.

I have Apache 2.0.55 and PHP 5.1.2 working OK under SuSE 
Linux 9.2 pro.

If you are getting PHP code in the browser, have you set the 
following in your httd.conf file:

AddType application/x-httpd-php .php

To tell Apache to pass any files ending in .php to the php 
module?

Also, regarding the blank page, I think I got this because 
the settings in php.ini were not right.

I have MySQL 4.0 running, and listening on /var/lib/mysql/mysql.sock

The default port for php wanted to connect to was /tmp/mysql.sock

So I changed the value in php.ini, to tell php to connect to 
mysql on /var/lib/mysql/mysql.sock, and it worked OK.

Here is how I compiled php, from the output of phpinfo():

Note that I compiled PHP against the latest mysql 5.0.18 
libraries, although I'm connecting to a mysql version of 4.0


PHP Version 5.1.2

System 
Linux karsites 2.6.8-24.19-default #1 Tue Nov 29 14:32:45 
UTC 2005 i686 

Build Date 
Jan 21 2006 22:38:52 

Configure Command 
'./configure' 
'--with-apxs2=/usr/local/apache2-0-55/bin/apxs' 
'--prefix=/usr/local/php5-1-2' 
'--with-mysql=shared,/downloads/mysql/mysql-max-5.0.18-linux-i686-glibc23/' 
'--with-mysql-sock=/var/lib/mysql/mysql.sock' 

Server API 
Apache 2.0 Handler 

*snip*

MySQL Support enabled

Active Persistent Links 
0 

Active Links 
0 

Client API version 
5.0.18 

MYSQL_MODULE_TYPE 
external 

MYSQL_SOCKET 
/tmp/mysql.sock 

MYSQL_INCLUDE 
-I/downloads/mysql/mysql-max-5.0.18-linux-i686-glibc23//include 

MYSQL_LIBS 
-L/downloads/mysql/mysql-max-5.0.18-linux-i686-glibc23//lib 
-lmysqlclient 

Directive
Local Value
Master Value

mysql.allow_persistent
On
On

mysql.connect_timeout
60
60

mysql.default_host
no value
no value

mysql.default_password
no value
no value

mysql.default_port
no value
no value

mysql.default_socket
/var/lib/mysql/mysql.sock
/var/lib/mysql/mysql.sock

mysql.default_user
no value
no value

*snip*

HTH

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Thu, 9 Feb 2006, Schultz, Gary - COMM wrote:

> To: "'users@httpd.apache.org'" 
> From: "Schultz, Gary - COMM" <[EMAIL PROTECTED]>
> Subject: RE: [EMAIL PROTECTED] No go with Apache 2.0.55 and PHP 5.1.x
> 
> Additional Information. Everything works as expected with PHP 5.0.5, so
> there must be a problem with 5.1.x. I cannot get the configuration to work
> with 5.1.0, 5.1.1 or 5.1.2. I do know that Apache 2.2 and 5.1.1 work in the
> XAMPP distribution for Windows. Or is the problem with Apache 2.0.55?
> 
>   _  
> 
> From: Schultz, Gary - COMM [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 09, 2006 10:06 AM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] No go with Apache 2.0.55 and PHP 5.1.x
> 
> 
> I have never had a problem getting Apache and PHP to run until I tried PHP
> 5.1.x (5.1.1 and 5.1.2) and Apache 2.0.55. I have tried the following
> configuration hints:
>  
> http://php.mirrors.ilisys.com.au/manual/en/install.windows.apache2.php
>  
>  
> http://spaces.msn.com/anotherblog/Blog/cns!1p2pEqx-MdcDtr92-Z1Jl5HA!368.entr
> y
>  ry> 
>  
> http://www.evaria.com/v3/index/article/19/how-to-install-php5-on-windows.htm
> l
>  ml> 
>  
> and numerous other sites.
>  
> I either get blank pages or the php code in the browser.  
>  
> It would appear there is a problem with Apache and PHP 5.1.x. I have never
> seen this much discussion related to a problem with Apache 2.0.xx and PHP.
> Any ideas are welcome. 
>  
> Gary T. Schultz
> IT Administrator
> Wisconsin Dept. of Commerce
> 608-266-1283
> [EMAIL PROTECTED]
>  
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] 403 Forbidden Error

2006-02-07 Thread httpd2

Are you running it as root user?
if not, open a root shell, and try again.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Tue, 7 Feb 2006, Jonathan S. Abrams wrote:

> To: users@httpd.apache.org
> From: Jonathan S. Abrams <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] 403 Forbidden Error
> 
> Joshua Slive wrote:
> 
> > On 2/7/06, Jonathan S. Abrams <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > > Joshua Slive wrote:
> > > 
> > > 
> > > > Other than that, you will need to get into more serious
> > > > debugging like
> > > > running "strace httpd -X" and seeing what syscall is failing.
> > > > 
> > > > 
> > > Does strace exist for Tiger server?  When I type man strace, I get
> > > nothing.  When I typed in the command you suggested, the response
> > > I got
> > > was -bash: strace: command not found.
> > > 
> > > 
> > 
> > Try "ktrace".  I've never used it, but that is supposed to work.
> > 
> Well, after reading the man page, I determined that I need to type
> 
> ktrace -idg 390
> 
> Unfortunately, the output in terminal reads ktrace: ktrace.out: Operation
> not permitted
> 
> Bummer. 
> -Jonathan

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] 403 Forbidden Error

2006-02-07 Thread httpd2

I think error 403 is a custom error message. I do not know 
whether it should be written to the error file by default.
I would expect it to be, just like 404's are.

See if this article is of any help to you.

http://www.modwest.com/help/kb.phtml?qid=144&cat=1

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Tue, 7 Feb 2006, Jonathan S. Abrams wrote:

> To: users@httpd.apache.org
> From: Jonathan S. Abrams <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] 403 Forbidden Error
> 
> [EMAIL PROTECTED] wrote:
> 
> > Try changing the LogLevel directive to debug.
> > 
> > LogLevel debug
> > 
> > This will generate the max amount of error logging.
> > 
> > Be carefull you do not run out of disk space though.
> > 
> > 
> I have plenty of disk space.  The LogLevel was set to warn.  Changing to
> debug has not made a difference though.  There are no entries in the
> error_log file pertaining to this 403 error.  After restarting the server
> with loglevel set to debug, the last entry in the error_log file reads as
> follows:
> 
> [Tue Feb 07 12:39:56 2006] [debug] prefork.c(956): AcceptMutex: sysvsem
> (default: sysvsem)
> 
> Should a loglevel of warn catch forbidden access errors?  If not, what
> level do you recommend I keep this parameter at?
> 
> More importantly - if the debug level isn't logging these errors, what is
> going on?
> 
> -Jonathan

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] 403 Forbidden Error

2006-02-07 Thread httpd2

Try changing the LogLevel directive to debug.

LogLevel debug

This will generate the max amount of error logging.

Be carefull you do not run out of disk space though.

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Tue, 7 Feb 2006, Jonathan S. Abrams wrote:

> To: users@httpd.apache.org
> From: Jonathan S. Abrams <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] 403 Forbidden Error
> 
> Joshua Slive wrote:
> 
> > On 2/7/06, Jonathan S. Abrams <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > > If I attempt to go to a directory on my web server, such as
> > > /test/, I
> > > get Forbidden - You don't have permission to access /test/ on this
> > > server.  Now, if I try to go to a file within that directory, such
> > > as
> > > /test/test.txt, the .txt file will display in my browser.
> > > 
> > > 
> > 
> > The first thing to look at is the error_log.  No point in doing any
> > further debugging before knowing exactly what it says in there.
> > 
> > 
> Ah, yes.  Unfortunately, I already looked there and did not find anything.
> Warn, notice, error, alert, and emerg are the only types of entries I see.
> The error_log file is not being updated after I attempt to go to /test/
> and get the 403 error, nor does it contain any data from previous
> attempts.  Could this be related to the level of error logging specified
> in the conf file?  Do I need to blow out the contents of error_log?
> 
> > > In my httpd.conf file, I have a line that reads Options +Indexes
> > > FollowSymLinks.
> > > 
> > > 
> > 
> > Do not mix + and non-+ Options.  Try
> > Options Indexes FollowSymLinks
> > 
> > 
> > 
> Done, but it has not made a difference.
> 
> > > After reading the FAQ, I made certain that I had the
> > > following entered.
> > > 
> > > 
> > > Order allow,deny
> > > Allow from all
> > > 
> > > 
> > > 
> > 
> > Where in the FAQ did you see that?
> > 
> http://httpd.apache.org/docs/1.3/misc/FAQ.html#forbidden
> 
> > That has nothing to do with your
> > problem, but will make certain config files availble for public
> > download that you probably dont' need to make available.
> > 
> > 
> Ok then, I have regressed that change (Deny from all).
> 
> > > The user that originally configured this setup a virtual host conf
> > > file,
> > > located at /conf/sites/myconf.conf.  The last line of httpd.conf
> > > includes a reference (via *.conf) to this file.  Inside the
> > > myconf.conf
> > > file, I have a line that reads Options +Indexes ExecCGI
> > > IncludesNoExec.
> > > 
> > > 
> > 
> > Again, remove the "+".
> > 
> > 
> Done, but again, it has not made a difference.
> 
> Thanks for taking the time to respond.
> 
> -Jonathan
k

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] CustomLog logs/access_log combined not working from within

2006-02-05 Thread httpd2

Yes, I checked the module identifier in my httpd.conf file, 
and that's where I came up with the psuedo-solution to your 
problem.

The manual for this module says:

Apache Module mod_log_config

Description: Logging of the requests made to the server
Status: Base
Module Identifier: log_config_module
Source File: mod_log_config.c

It looks like you need to use the full source code filename 
for the  directive, and not the Module 
identifier.

If you're not sure what name to use, just check the docs 
for the source file name for a particular module. Hopefully, 
that will stop any future problems like this occuring.

You probably don't need to clutter your httpd.conf file with 
 directives anyway, once you know what modules you 
intend to keep using.

You could comment out any unused LoadModule directives for 
your DSO's, and uncomment them when you want to add them to 
your configuration file, with the appropriate directives.

Regards

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sun, 5 Feb 2006, Richard de Vries wrote:

> To: users@httpd.apache.org From: Richard de Vries 
> <[EMAIL PROTECTED]> Subject: Re: [EMAIL PROTECTED] 
> CustomLog logs/access_log combined not working from
>  within 
> 
> Ok .. sorry, my mistake.
> 
> Your suggestion of adding .c did work, but not when
> applying it to the module alias .. DUH.
> 
> so this does not work:
> 
> 
> 
> but this DOES work:
> 
> 
> 
> Do you happen to know why this is?. Why do some
>  statements work fine on the module
> name/alias, and others require it to be the
> "mod_real_name.c" ?
> 
> --- Richard de Vries <[EMAIL PROTECTED]>

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] CustomLog logs/access_log combined not working from within

2006-02-05 Thread httpd2

Try adding .c to the directive. This is probably where 
your problem lies.

> This is what I have:
>
> 



Keith


In theory, theory and practice are the same;
In practice they are not. 

On Sat, 4 Feb 2006, Richard de Vries wrote:

> To: users@httpd.apache.org
> From: Richard de Vries <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] CustomLog logs/access_log combined not working from
> within 
> 
> I am having the weirdest problem. Running Apache
> 2.0.55 on Solaris 9, I am unable to get Apache to
> generate and write to the access_log file while the
> CustomLog directive is  enclosed in the 
>  tags.
> 
> This is what I have:
> 
> 
> #
> # The following directives define some format
> nicknames for use with
> # a CustomLog directive (see below).
> #
> LogFormat "%h %l %u %t \"%r\" %>s %b
> \"%{Referer}i\" \"%{User-Agent}i\"" combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> 
> CustomLog logs/access.log combined
> 
> 
> It simply doesnÂ’t work.
> 
> If I remove the  tags, it does
> work. I made sure I am loading the log_config_module
> 
> LoadModule access_module modules/mod_access.so
> LoadModule alias_module modules/mod_alias.so
> LoadModule auth_module modules/mod_auth.so
> LoadModule dir_module modules/mod_dir.so
> LoadModule dumpio_module modules/mod_dumpio.so
> LoadModule include_module modules/mod_include.so
> LoadModule log_config_module modules/mod_log_config.so
> LoadModule log_forensic_module
> modules/mod_log_forensic.so
> LoadModule logio_module modules/mod_logio.so
> LoadModule security_module modules/mod_security.so
> LoadModule mime_module modules/mod_mime.so
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule ssl_module modules/mod_ssl.so
> LoadModule unique_id_module modules/mod_unique_id.so
> 
> I even proved this to myself by removing the
> “LoadModule log_config_module xxx” line, at which
> point Apache complains about the CustomLog directive.
> So I know the module is loaded.
> 
> I tried to reproduce this behavior on my Fedora 4
> linux box with Apache 2.0.55 (RPM) and it does the
> same thing.
> 
> I am not using any virtual hosts and/or SSL, and yes,
> the logs and log directory have the appropriate
> permissions.
> 
> Has anyone seen / experienced this before?
> 
>   Richard
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [EMAIL PROTECTED] Require SSL only for an individual file

2006-02-04 Thread httpd2

Right Joshua. I checked the docs and noted that 
SSLRequireSSL was valid in the directory and .htaccess 
context. I forgot that directory also applies to files and 
location contexts normally as well, unless specified as not 
applicable for a particular directive.

quote

directory 
A directive marked as being valid in this context may be 
used inside , , and  containers 
in the server configuration files, subject to the 
restrictions outlined in How Directory, Location and Files 
sections work. 

unquote

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sat, 4 Feb 2006, Joshua Slive wrote:

> To: users@httpd.apache.org, [EMAIL PROTECTED]
> From: Joshua Slive <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Require SSL only for an individual file
> 
> On 2/4/06, Marc Serra <[EMAIL PROTECTED]> wrote:
> > Hi gurus!
> >
> > I need to secure with SSL only one file from a directory 
> > that contains a lot more files.
> >
> > How can I do that?
> >
> > I know how secure an entire directory, with 
> > SSLRequireSSL option, but is possible only for a file?
> 
> Almost anything that can go in a  section can 
> also go in a  section nested within a  
> section.
> 
> Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Require SSL only for an individual file

2006-02-04 Thread httpd2

I guess the easiest way would be to put that SSL enabled 
file into a sub-dir all on it's own?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sat, 4 Feb 2006, Marc Serra wrote:

> To: users@httpd.apache.org
> From: Marc Serra <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Require SSL only for an individual file
> 
> Hi gurus!
> 
> I need to secure with SSL only one file from a directory that contains a
> lot more files.
> 
> How can I do that?
> 
> I know how secure an entire directory, with SSLRequireSSL option, but is
> possible only for a file?
> 
> Thank's!
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_auth_ldap mod_auth_mysql on OS-X

2006-02-03 Thread httpd2

Hi Wiliam. I've been reading up on modules and 
authentication.

You may need to move the LDAP module so it comes after the 
mysql_auth module, as each module is tested in reverse 
order, i.e. last loaded module is higher priority and comes 
first in the pecking order.

Accordingly, the way you have your modules listed, mysql 
will have priority over the LDAP module. mod_access having 
the lowest priority and being checked last, cause it's 
first in the LoadModule listing.
 
On Fri, 3 Feb 2006, William Paredes wrote:

> To: users@httpd.apache.org
> From: William Paredes <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] mod_auth_ldap mod_auth_mysql on OS-X
> 
> Greetings!
> 
> Using these modules
> ---
> LoadModule access_module modules/mod_access.so
> 
> LoadModule auth_module modules/mod_auth.so
> LoadModule ldap_module modules/mod_ldap.so
> LoadModule auth_ldap_module modules/mod_auth_ldap.so
> 
> LoadModule mysql_auth_module  modules/mod_auth_mysql.so

Arrange these modules in reverse order with the last 
mentioned module having highest checking priority, and the 
module first in the list has lowest priority, i.e. is tested 
last.

Keith

In theory, theory and practice are the same;
In practice they are not. 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Off-topic. Domain (nameservers not transfered)

2006-02-01 Thread httpd2

You could find out if the reseller are part of some 
professional association, and report them there. Or, try a 
google search for domain name disputes. That seems to turn 
up alot of info on the subject.

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Wed, 1 Feb 2006, Alvaro Cobo wrote:

> To: users@httpd.apache.org
> From: Alvaro Cobo <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Off-topic. Domain (nameservers not transfered) 
> 
> Thank you very much Eric:
> 
> But the (**) reseller sadly have got the power in his hands. They can
> delay the transfer as much as they want, as they have got the administrative
> email. So if I try to make a transfer, they are going to delay more and more
> (they just need to avoid replying the transfer verification email). I have
> read the terms, and the domain is mine, but they can delay as much as they
> want.
> 
> Does anybody has started a legal action against a reseller like this?.
> Would I spend too much money if I start a legal action?.
> Is there any other way I can take to put pressure over this company?.
> 
> Your advice will be very apreciated.
> 
> Thanks a lot in advance.
> 
> 
> - Original Message -
> From: "Eric Brunner-Williams at a VSAT somewhere (or in Portland Maine)"
> <[EMAIL PROTECTED]>
> To: 
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 01, 2006 10:52 PM
> Subject: Re: [EMAIL PROTECTED] Off-topic. Domain (nameservers not transfered)
> 
> 
> > transfer your domain to a registrar that cares about your business more
> > than that of a reseller.
> >
> > several registrars are exemplary, most are hohum, and several are less
> > than hohum.
> >
> > my 2 beads worth. your milage may vary.
> >
> > -
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >"   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] mod_edir

2006-01-30 Thread httpd2

http://forge.novell.com/modules/xfmod/project/?mod_edir

Google is your search friend!

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 30 Jan 2006, Matt Weston wrote:

> To: users@httpd.apache.org
> From: Matt Weston <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] mod_edir
> 
> Does anyone know where I can get the mod_edir module for 
> use with Novell Edirectory?
> 
> Matt

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Compiling apache 2 modules

2006-01-30 Thread httpd2

Thanks Boysenberry.

Got it working now with:

# ./configure --prefix=/usr/local/apache2-0-55-SSL 
--with-ssl=/usr/include/openssl --enable-ssl=shared 
--enable-mods-shared=all

Appaprently, ssl is one of several modules that are not 
included in the --enable-mods-shared=all option, and have to 
be enabled explicitly.

On one attempt I tried --enable-ssl-shared, which configure 
did not complain about, neither did it enable mod_ssl either.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 30 Jan 2006, Boysenberry Payne wrote:

> To: users@httpd.apache.org
> From: Boysenberry Payne <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Compiling apache 2 modules 
> 
> This is what I used:
> 
> ./configure --with-mpm=prefork --enable-mods-shared=all --enable-ssl
> --with-perl=/usr/bin/perl
> 
> It's all DSO for me.  I think it might be DSO because of this:
> --enable-mods-shared=all
> 
> 
> Boysenberry
> 
> boysenberrys.com | habitatlife.com | selfgnosis.com
> 
> On Jan 30, 2006, at 9:09 AM, [EMAIL PROTECTED] wrote:
> 
> > 
> > Hi everyone.
> > 
> > I'm messing around with SSL trying to compile apache 2.0.55
> > with all modules including mod_ssl as dso's.
> > 
> > I use the following command to configure; all modules apart
> > from mod_ssl are built into the server.
> > 
> > # ./configure --prefix=/usr/local/apache2-0-55-SSL
> > --enable-mods-shared=all --enable-mods-shared=ssl
> > --with-ssl=/usr/include/openssl
> > 
> > The above is all on one line.
> > 
> > 
> > How do I get the other modules to compile as dso's, and
> > not as static?
> > 
> > TIA
> > 
> > Keith
> > 
> > In theory, theory and practice are the same;
> > In practice they are not.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Compiling apache 2 modules

2006-01-30 Thread httpd2

Hi everyone.

I'm messing around with SSL trying to compile apache 2.0.55 
with all modules including mod_ssl as dso's.

I use the following command to configure; all modules apart 
from mod_ssl are built into the server.

# ./configure --prefix=/usr/local/apache2-0-55-SSL 
--enable-mods-shared=all --enable-mods-shared=ssl 
--with-ssl=/usr/include/openssl

The above is all on one line.


How do I get the other modules to compile as dso's, and 
not as static?

TIA

Keith

In theory, theory and practice are the same;
In practice they are not. 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] high load average on Apache 1.3 hosting 8000 conc. users forum

2006-01-30 Thread httpd2

Here is an efficient *FREE* php accelerator that may help 
improve performance.

http://www.php-accelerator.co.uk/

I think it's also alot easier to set up than Turck mmCache, 
with similar performance improvements.

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Mon, 30 Jan 2006, Eugene wrote:

> To: users@httpd.apache.org From: Eugene 
> <[EMAIL PROTECTED]> Subject: Re: [EMAIL PROTECTED] high 
> load average on Apache 1.3 hosting 8000 conc.
> users forum
> 
> On Sun, Jan 29, 2006 at 05:07:53PM CST, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
> wrote:
> : 
> : Well the issue is that at peak times, the server doesn't 
> : respond, typing in SSH becomes sometimes slow, memory 
> : usage is fairly used (4GB of rams). The machine is a 
> : dual xeon 3.0 / SCSI hard disks. What do you mean by 
> : "disks maxed out" ?
> 
> Does your machine hit swap?
> 
> : Mainly VBulletin is a php script. I don't serve much 
> : static html files. How can php be tuned to optimize its 
> : performance?
> 

> Get a PHP enhancer, e.g. Turck mmCache.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] high load average on Apache 1.3 hosting 8000 conc. users forum

2006-01-29 Thread httpd2

OK - how much free space do you have left on the hard 
drives?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 30 Jan 2006, [EMAIL PROTECTED] wrote:

> To: users@httpd.apache.org From: "[EMAIL PROTECTED]" 
> <[EMAIL PROTECTED]> Subject: Re: [EMAIL PROTECTED] high 
> load average on Apache 1.3 hosting 8000 conc.
> users forum
> 
> Keith,
> Dual Intel Xeon 3.0 / 4GB rams / 2x73GB SCSI RAID 1 mirrored
> 
> Sincerely,
> -- 
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] high load average on Apache 1.3 hosting 8000 conc. users forum

2006-01-29 Thread httpd2

How much RAM does the machine have?

How many hard drives, what type and sizes are they?

Do you use RAID?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 30 Jan 2006, [EMAIL PROTECTED] wrote:

> To: users@httpd.apache.org
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] high load average on Apache 1.3 hosting 8000 conc.
> users forum
> 
> Dear List members,
> I'm the administrator of a big website that hosts an important forum
> (VBulletin to be precise). At peak time we get around 7000-9000
> concurrent users (counting the php sessions, members visiting the forum)
> the switch (Foundry) counts 2700 concurrent connections.
> 
> during those peak times, the apache server (RHEL 4 AS, Apache 1.3, php)
> gets a load average of 80~170. the mysql server runs smoothly at 0.9 ~
> 3.
> 
> Browsing the Internet / following some optimizations HOWTOs didn't help.
> Can anyone kindly support me on that issue?
> 
> Sincerely,
> -- 
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] False "Out of Memory" errors - on new Suse Linux SLES 9.1 - Apache 2.0.54 - Blade servers running 4 GB of RAM

2006-01-24 Thread httpd2

>From what I have been reading, if I understand it correctly, 
apache will try to hang on to as much memory it has 
allocated for processes from the OS, even when it is not to 
busy anymore. This directive should limit the amount of 
memory you allow apache to cling to, after a busy period. 

Otherwise, it will just hang on to the allocated memory 
without returning it to the OS, even when it no longer 
requires it. So setting a value of 0 will make apache hog 
whatever memory it has taken from the OS indefinately.

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Mon, 23 Jan 2006, Jignesh Badani wrote:

> To: users@httpd.apache.org From: Jignesh Badani 
> <[EMAIL PROTECTED]> Subject: Re: [EMAIL PROTECTED] False "Out 
> of Memory" errors - on new Suse Linux
> SLES 9.1 - Apache 2.0.54 - Blade servers running 4 GB of RAM
> 
> Thanks Kieth, well I learned something new, but no I do not have the 
> parameter set anywhere in my conf. So MaxMemFree should be unlimited, 
> right ?
> 
> regards
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - 
> Jignesh Badani
> Intranet/Extranet Technical Services
> 
> 
> 
> 
> [EMAIL PROTECTED] 
> 01/23/2006 03:24 PM
> Please respond to
> users@httpd.apache.org
> 
> 
> To
> users@httpd.apache.org
> cc
> 
> Subject
> Re: [EMAIL PROTECTED] False "Out of Memory" errors - on new Suse Linux SLES 
> 9.1 - Apache 2.0.54 - Blade servers running 4 GB of RAM
> 
> 
> 
> 
> 
> 
> 
> Is this of any relevance Jignesh?
> 
> 
> MaxMemFree Directive
> 
> Description:
> Maximum amount of memory that the main allocator is allowed 
> to hold without calling free()
> 
> Syntax:
> MaxMemFree KBytes
> 
> Default:
> MaxMemFree 0
> 
> Context:
> server config
> 
> Status:
> MPM
> 
> Module:
> beos, leader, mpm_netware, prefork, threadpool, worker, 
> mpm_winnt
> 
> The MaxMemFree directive sets the maximum number of free 
> Kbytes that the main allocator is allowed to hold without 
> calling free(). When not set, or when set to zero, the 
> threshold will be set to unlimited.
> 
> Keith
> 
> In theory, theory and practice are the same;
> In practice they are not. 
> 
> On Mon, 23 Jan 2006, Jignesh Badani wrote:
> 
> > To: users@httpd.apache.org From: Jignesh Badani 
> > <[EMAIL PROTECTED]> Subject: [EMAIL PROTECTED] False "Out of 
> > Memory" errors - on new Suse Linux SLES
> > 9.1 - Apache 2.0.54 - Blade servers running 4 GB of RAM
> > 
> > Hello all,
> > 
> > We recently migrated from a very stable Solaris 8 
> > /Apache2.0.48/Siteminder Web Agent platform to SLES 9.1 on 
> > IBM Blade (Intel) servers running Apache 2.0.54 with 4 GB 
> > of RAM.
> > 
> > We have 3 load balanced servers and each are running 3 instance of 
> > Apache2.0.54.
> > 
> > Almost on a daily basis we see "out of memory" errors on the most 
> heavily 
> > used instance (Dealer Extranet) serving about 5000-7000 users daily and 
> > about 30-60 simultaneous users (or about 100-150 request).
> > 
> > But when we look at the usage (top or vmstat), there is 
> > tonnes of memory left (about 2.5GB atleast). We also have 
> > configured about 2GB of swap, but swap usage is 0k.
> > 
> > We do have any content on this servers apart from the login pages 
> > (Siteminder Agent), nor we have run any php, perl, etc. Everything is 
> > proxied back to the backend servers (JAVA/ASP).
> > 
> > We never had this issue on the Solaris running 2.0.48 and 
> > the same version of Web Agent.
> > 
> > Is there a hidden setting available to tell Apache to use all available 
> > memory for its processing / caching ? BTW, we do have even mod_cache 
> > enabled !
> > 
> > Anything I can run to capture some more debug info, could 
> > get tricky coz it does not happen all the time.
> > 
> > regards
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - 
> > - - 
> > Jignesh Badani
> > Intranet/Extranet Technical Services
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P

RE: [EMAIL PROTECTED] Problem compiling 2.2.0 on solaris 8 with enabling so

2006-01-24 Thread httpd2

Thankyou for correcting me on that Axel - point taken ;-)

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Tue, 24 Jan 2006, Axel-Stéphane  SMORGRAV wrote:

> To: users@httpd.apache.org
> From: Axel-Stéphane  SMORGRAV <[EMAIL PROTECTED]>
> Subject: RE: [EMAIL PROTECTED] Problem compiling 2.2.0 on solaris 8 with 
> enabling
> so
> 
> Since when did libexpat become a module??
> 
> The symbol XmlInitUnknownEncoding is defined in 
> srclib/apr-util/xml/expat/lib/xmltok.c which is part of libexpat. So its 
> plain impossible for XmlInitUnknownEncoding not to be defined.
> 
> Have you tried to do an "ldd -v libexpat.so.0" to see if there is any other 
> library that libexpat depends on and which cannot be found?
> 
> -ascs
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 23, 2006 4:46 PM
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] Problem compiling 2.2.0 on solaris 8 with 
> enabling so
> 
> 
> It may be that Apache does not like the lib/libexpat.so module. Try 
> commenting it out in httpd.conf. See if Apache will start then. If so, then 
> that is obviously where the problem is.
> 
> Keith
> 
> In theory, theory and practice are the same; In practice they are not. 
> 
> On Mon, 23 Jan 2006, Harald Falkenberg wrote:
> 
> > From: Harald Falkenberg <[EMAIL PROTECTED]>
> > Subject: [EMAIL PROTECTED] Problem compiling 2.2.0 on solaris 8 with 
> > enabling so
> > 
> > Hallo,
> > 
> > I'm trying to compile httpd 2.2.0 on solaris 8 and enabling shared 
> > libs via using the configuration:
> > ./configure --prefix=/home/www/httpd-serv_2.2.0/ --enable-so
> > 
> > The configuration, make and make install steps seem to run without 
> > problems. But when I try to start the server processes I get the 
> > following
> > problem:
> > $ ./apachectl start
> > ld.so.1: /home/www/httpd-serv_2.2.0/bin/httpd: fatal:
> > relocation error: file
> > /home/www/httpd-serv_2.2.0/lib/libexpat.so.0: symbol
> > XmlInitUnknownEncoding: referenced symbol not found Killed
> > 
> > 
> > Did I miss something or do I encounter a real problem? When I omit 
> > --enable-so I get a startable server and so far I tested properly 
> > running httpd server.
> > 
> > Any help is welcome!
> > 
> > regards
> > Harald
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [EMAIL PROTECTED] False "Out of Memory" errors - on new Suse Linux SLES 9.1 - Apache 2.0.54 - Blade servers running 4 GB of RAM

2006-01-23 Thread httpd2

Is this of any relevance Jignesh?


MaxMemFree Directive

Description:
Maximum amount of memory that the main allocator is allowed 
to hold without calling free()

Syntax:
MaxMemFree KBytes

Default:
MaxMemFree 0

Context:
server config

Status:
MPM

Module:
beos, leader, mpm_netware, prefork, threadpool, worker, 
mpm_winnt

The MaxMemFree directive sets the maximum number of free 
Kbytes that the main allocator is allowed to hold without 
calling free(). When not set, or when set to zero, the 
threshold will be set to unlimited.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 23 Jan 2006, Jignesh Badani wrote:

> To: users@httpd.apache.org From: Jignesh Badani 
> <[EMAIL PROTECTED]> Subject: [EMAIL PROTECTED] False "Out of 
> Memory" errors - on new Suse Linux SLES
> 9.1 - Apache 2.0.54 - Blade servers running 4 GB of RAM
> 
> Hello all,
> 
> We recently migrated from a very stable Solaris 8 
> /Apache2.0.48/Siteminder Web Agent platform to SLES 9.1 on 
> IBM Blade (Intel) servers running Apache 2.0.54 with 4 GB 
> of RAM.
> 
> We have 3 load balanced servers and each are running 3 instance of 
> Apache2.0.54.
> 
> Almost on a daily basis we see "out of memory" errors on the most heavily 
> used instance (Dealer Extranet) serving about 5000-7000 users daily and 
> about 30-60 simultaneous users (or about 100-150 request).
> 
> But when we look at the usage (top or vmstat), there is 
> tonnes of memory left (about 2.5GB atleast). We also have 
> configured about 2GB of swap, but swap usage is 0k.
> 
> We do have any content on this servers apart from the login pages 
> (Siteminder Agent), nor we have run any php, perl, etc. Everything is 
> proxied back to the backend servers (JAVA/ASP).
> 
> We never had this issue on the Solaris running 2.0.48 and 
> the same version of Web Agent.
> 
> Is there a hidden setting available to tell Apache to use all available 
> memory for its processing / caching ? BTW, we do have even mod_cache 
> enabled !
> 
> Anything I can run to capture some more debug info, could 
> get tricky coz it does not happen all the time.
> 
> regards
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - 
> Jignesh Badani
> Intranet/Extranet Technical Services

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache 2.0 on RedHat EL 4 - httpd process will not start

2006-01-23 Thread httpd2

What about creating a unique user account and group for 
apache to run under. Then setting httpd.conf for apache to 
use that user and group?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 23 Jan 2006, Kermit Short wrote:

> To: users@httpd.apache.org From: Kermit Short 
> <[EMAIL PROTECTED]> Subject: [EMAIL PROTECTED] Apache 2.0 on 
> RedHat EL 4 - httpd process will not start
> 
> I'm having trouble getting the HTTPD process to kick off.  
> I receive an error message when trying to start the daemon 
> SYSV style (using the init.d startup script): httpd: bad 
> user name apache.
> 
> Kermit Short
> 
> System Administrator
> 
> CCN-DC-1 D-Div
k

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Uploaded files empty - Apache configuration problem?

2006-01-23 Thread httpd2

I had a similar problem on SuSE Linux 8.2 pro.

Initially, for testing I changed the permissions of /tmp to 
the same perms as apache, and it worked.

I now have the following permissions on tmp:

drwxrwxrwtroot root   12288 Jan 23 20:15 tmp

Seems to be working OK for me.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 23 Jan 2006, Gerry Danen wrote:

> To: users@httpd.apache.org
> From: Gerry Danen <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Uploaded files empty - Apache configuration
> problem?
> 
> is /tmp world writable?
> 
> On 1/23/06, Niall Mullally <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > I'm in the process of moving an existing website from a shared host to
> > a dedicated server. The dedicated server is running CentOS 4, Apache
> > 2.0.52 and PHP 4.3.9.
> >
> > The site is PHP based and a few forms on the site upload files.
> >
> > The uploaded file is stored in the /tmp directory and then moved to its
> > final destination by PHP.  This is working fine on the shared hosting
> > account. But on the dedicated server, none of the file data is
> > uploading.  The final stored file has a size of 0.
> >
> > The $_FILES array in the PHP script that processes the uploaded file
> > contains the usual information e.g.
> >
> > array(1) {
> > ["file1"]=> array(5)
> > {
> > ["name"]=> string(16) "file_name_1.jpg"
> > ["type"]=> string(24) "application/octet-stream"
> > ["tmp_name"]=> string(14) "/tmp/phppaZGQm"
> > ["error"]=> int(0) ["size"]=> int(0)
> >
> > }
> > }
> >
> > But as the last value shows, the size is 0. I'm uploading an 80k jpeg
> > so there's no problem with max file size limits.
> >
> > All file upload directives are enabled in the php.ini file.  /tmp is
> > world writeable.
> >
> > I can't figure out what could be causing this. My PHP works fine on the
> > other server so I don't think that's the problem. It must be a
> > configuration issue somewhere, but I can't figure out where.
> >
> > Could it be an Apache or PHP config issue? A permissions issue? Or maybe
> > something to do with the OS config?
> >
> > Apologies if this isn't the right place for this query, but I'm at my
> > wits end and any help would be greatly appreciated.
> >
> > -
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >"   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Gerry
> http://portal.danen.org/
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problem compiling 2.2.0 on solaris 8 with enabling so

2006-01-23 Thread httpd2

It may be that Apache does not like the lib/libexpat.so 
module. Try commenting it out in httpd.conf. See if Apache 
will start then. If so, then that is obviously where the 
problem is.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 23 Jan 2006, Harald Falkenberg wrote:

> From: Harald Falkenberg <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Problem compiling 2.2.0 on solaris 8 with enabling 
> so
> 
> Hallo,
> 
> I'm trying to compile httpd 2.2.0 on solaris 8 and enabling shared libs
> via using the configuration:
>   ./configure --prefix=/home/www/httpd-serv_2.2.0/ --enable-so
> 
> The configuration, make and make install steps seem to run without
> problems. But when I try to start the server processes I get the following
> problem:
> $ ./apachectl start
> ld.so.1: /home/www/httpd-serv_2.2.0/bin/httpd: fatal:
> relocation error: file
> /home/www/httpd-serv_2.2.0/lib/libexpat.so.0: symbol
> XmlInitUnknownEncoding: referenced symbol not found
> Killed
> 
> 
> Did I miss something or do I encounter a real problem? When I omit
> --enable-so I get a startable server and so far I tested properly running
> httpd server.
> 
> Any help is welcome!
> 
> regards
>   Harald

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] PHP-5 (error) libphp5.so

2006-01-22 Thread httpd2

Hi Dave.

Did you compile apache first, then compile php5 as a shared 
module, using apxs. Something like this:

my-host/php-5.0.4/#

# config.nice contents:

'./configure' \
'--with-apxs2=/usr/local/apache2-0-55/bin/apxs' \
'--prefix=/usr/local/php5-1-2' \
'--with-mysql=shared,/downloads/mysql/mysql-max-5.0.18-linux-i686-glibc23/'
'--with-mysql-sock=/var/lib/mysql/mysql.sock' \

Are you using the php5 module you compiled, and not an older 
version? If so is it readable by apache httpd.conf?

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 23 Jan 2006, Dave Muhammad wrote:

> To: users@httpd.apache.org
> From: Dave Muhammad <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] PHP-5 (error) libphp5.so
> 
> I have compiled Apache 2.0.54, and PHP 5.0.4, when I try to start apache
> I am given an error. The error is as follows...
> 
> $ /etc/rc.d/init.d/httpd start
> Starting httpd: Syntax error on line 24 of
> /opt/apache-2.0.54/conf/httpd.conf:
> Cannot load /opt/apache-2.0.54/modules/libphp5.so into server:
> /opt/apache-2.0.54/modules/libphp5.so: cannot restore segment prot after
> reloc:
> Permission denied
> 
> Any suggestion would be appreciated.
> thanks

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Small rewrite problem

2006-01-22 Thread httpd2

This is probably all you need to master regular expression 
syntax. Very brief and concise. Then you need to get your 
head around mod_rewrite:

Title: Regular Expression Pocket Reference
Author: Tony Stubblebine
Publisher: O'reilly
ISBN: 0-596-00415-X
86 pages plus index

US$ 12.95
GBP  7.00

HTH

Keith

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] OT question

2006-01-21 Thread httpd2

Check this out Gerry.

http://www.clockwatchers.com/cron_general.html

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sat, 21 Jan 2006, Gerry Danen wrote:

> To: users@httpd.apache.org
> From: Gerry Danen <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] OT question
> 
> Where would I go to ask questions about cron?
> 
> I keep getting /bin/bash: root: command not found
> 
> Sorry for the OT post...
> 
> Gerry
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Using environment variable in httpd.conf

2006-01-19 Thread httpd2

Of course Joshua.

But it is nice to know that th functionality is there if 
it's needed.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Thu, 19 Jan 2006, Joshua Slive wrote:

> To: users@httpd.apache.org
> From: Joshua Slive <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Using environment variable in httpd.conf
>
> If you are already using mod_perl, then this is a legitimate
> possibility.  But if you aren't using mod_perl, adding it would be way
> overkill for this problem.
> 
> Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Using environment variable in httpd.conf

2006-01-19 Thread httpd2

Well, I have just found something interesting while reading 
through Pro Apache 3rd edition, by Peter Wainwright.
 
Apparently, using mod_perl, you can use the full power of 
the pearl interpreter INSIDE httpd.conf.

Quote from the book page 449:

"Embedded Perl appears in Apache's configuration inside a 
... container, also known as a Perl section.
Anything inside this container is executed by mod_perl when 
Apache starts. You specify configuration directives simply 
by assigning a package variable of the same name. For 
example;


 $ServerAdmin="[EMAIL PROTECTED]";


In Perl, this is a basic assignment of a string to a scalar 
variable. In a Perl section, it becomes a configuration 
directive because the variable corresponds to the name of a 
configuration directive understood by Apache."

Peter Wainwright also provides some very capable examples 
in his book, using this technique.

One example of this starts with:

...
#Now write the Perl script and embed it into httpd.conf in 
# a  container



# generate virtual hosts on the fly with Perl
 ...
 ...
 ...
# back to httpd.conf


# ...rest of httpd.conf...

and,


# note the following line calls an external perl interpreter
#!/usr/bin/perl -w

# rest of Perl script - embedded in htpd.conf

# back to httpd.conf


#rest of httpd.conf file

He concludes this section of the chapter by stating,

"Of course you could use any scripting language to create a 
configuration file this way because Apache no longer needs 
to know how to interpret it (ie the script) itself."

So, in theory (please see disclaimer below - LOL) it should 
be possible to use an external php interpreter to generate 
httpd.conf files and configuration directives this way, by 
embedding the call to the php interpreter into a 
... section.

The above was extracted from the full sample chapter 7, 
'Hosting more than one website', available for download from 
Apress's website, at:

http://www.apress.com/book/supplementDownload.html?bID=275&sID=2134

The download link is not underlined, and is the text 
'Download Sample Chapter' which just looks like a 
sub-heading to me.

Pro Apache, Third Edition
Download Sample Chapter <-- 

This is an excellent book, packed with practical 
explanations of how to master Apache. I have struggled with 
the online documentation for years. I cannot recommend this 
book highly enough!

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Thu, 19 Jan 2006 [EMAIL PROTECTED] wrote:

> To: users@httpd.apache.org
> From: [EMAIL PROTECTED]
> Subject: Re: [EMAIL PROTECTED] Using environment variable in httpd.conf
> 
> 
> Thanks for the info Joshua.
> 
> I was just curious to know if it was possible to set 
> variables in httpd.conf . Probably won't need to 
> use such a feature at the moment.
> 
> Keith
> 
> 
> In theory, theory and practice are the same;
> In practice they are not. 
> 
> On Thu, 19 Jan 2006, Joshua Slive wrote:
> 
> > To: users@httpd.apache.org
> > From: Joshua Slive <[EMAIL PROTECTED]>
> > Subject: Re: [EMAIL PROTECTED] Using environment variable in httpd.conf
> > 
> > On 1/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > > Well Tom, I'm using apache 2.0.50 under SuSE 9.2 pro and
> > > just added the following to httpd.conf, after my LoadModule statements:
> > >
> > > SetEnv ErrLogPath /var/log/apache2/error_log
> > > ErrorLog ${ErrLogPath}
> > > LogLevel debug
> > >
> > > All this does for my setup is create an error_log file under
> > > /srv/www/ called ${ErrLogPath}.
> > >
> > > Am I missing something?
> > 
> > The undocumented env-variable-in-config-file feature looks at
> > variables in the server environment at time of startup.  SetEnv
> > doesn't actually make real environment variables until a cgi script is
> > launched.  See:
> > http://httpd.apache.org/docs/2.2/env.html
> > 
> > What you want sounds more like the features provided by mod_macro. 
> > See http://modules.apache.org/.
> > 
> > But the standard advice in cases like this is: httpd.conf is not a
> > programming language, it is a config file.  If you need more advanced
> > features, then use your favorite preprocess (m4, etc) to generate your
> > config files.
> > 
> > Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Using environment variable in httpd.conf

2006-01-19 Thread httpd2

Thanks for the info Joshua.

I was just curious to know if it was possible to set 
variables in httpd.conf . Probably won't need to 
use such a feature at the moment.

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Thu, 19 Jan 2006, Joshua Slive wrote:

> To: users@httpd.apache.org
> From: Joshua Slive <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Using environment variable in httpd.conf
> 
> On 1/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Well Tom, I'm using apache 2.0.50 under SuSE 9.2 pro and
> > just added the following to httpd.conf, after my LoadModule statements:
> >
> > SetEnv ErrLogPath /var/log/apache2/error_log
> > ErrorLog ${ErrLogPath}
> > LogLevel debug
> >
> > All this does for my setup is create an error_log file under
> > /srv/www/ called ${ErrLogPath}.
> >
> > Am I missing something?
> 
> The undocumented env-variable-in-config-file feature looks at
> variables in the server environment at time of startup.  SetEnv
> doesn't actually make real environment variables until a cgi script is
> launched.  See:
> http://httpd.apache.org/docs/2.2/env.html
> 
> What you want sounds more like the features provided by mod_macro. 
> See http://modules.apache.org/.
> 
> But the standard advice in cases like this is: httpd.conf is not a
> programming language, it is a config file.  If you need more advanced
> features, then use your favorite preprocess (m4, etc) to generate your
> config files.
> 
> Joshua.
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Using environment variable in httpd.conf

2006-01-19 Thread httpd2

Well Tom, I'm using apache 2.0.50 under SuSE 9.2 pro and 
just added the following to httpd.conf, after my LoadModule statements:

SetEnv ErrLogPath /var/log/apache2/error_log
ErrorLog ${ErrLogPath}
LogLevel debug

All this does for my setup is create an error_log file under 
/srv/www/ called ${ErrLogPath}.

Am I missing something?

What version of Apache are you using?

Do you have any concrete examples of usage please?

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Wed, 18 Jan 2006, Tom Hoefakker wrote:

> To: users@httpd.apache.org
> From: Tom Hoefakker <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Using environment variable in httpd.conf
> 
> As far as I know, it's an undocumented "feature".  But, in my experience,
> it does actually work quite well.  While I vaguely recall a note on the
> development list questioning whether or not this should be removed, I
> would love to see this become a full-fledged documented feature as it is
> very useful in situations such as yours.
> 
> In your httpd.conf file you can use environment variables like this:
> ${varname}
> 
> In our environment, we use environment variables for quite a few things:
> ServerRoot
> Port
> DocumentRoot
> module paths - both bundled and custom modules
> User & group  (different users in development vs. production)
> path to piped log program
> log file path
> etc...
> 
> Hope this helps.
> Tom

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache installation problem -socket address usage

2006-01-18 Thread httpd2

Please tell us what OS you are using? - we need to know 
this if you want help.

As allready mentioned, only one application can attach 
itself to one port address.

It appears you may allready have a web server listening on 
port 80 unless you are not starting apache as root.


Keith


In theory, theory and practice are the same;
In practice they are not. 

On Wed, 18 Jan 2006, Ian Western wrote:

> To: users@httpd.apache.org
> From: Ian Western <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Apache installation problem -socket address usage
> 
> Hi everyone,
>   can anyone out there help me. I'm trying to install 
>   Apache but whenever I try to run it, I get a window with 
>   the text below:
>"(OS 10048) Only one usage of each socket address 
>is normally permitted. 
>   :make_sock could not bind to address 0.0.0.0.80 -no 
>   listening sockets available, shutting down. Unable to 
>   open logs."
>I've managed to iron out a few problems before I got to 
>   this stage but this has got me stumped. Can anybody 
>   help?
>
>   Many thanks,
>   Ian Western

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache email address

2006-01-17 Thread httpd2

Have you checked your mail directives in /etc/php.ini.

Keith

In theory, theory and practice are the same;
In practice they are not. 


On Tue, 17 Jan 2006, Gerry Danen wrote:

> To: users@httpd.apache.org
> From: Gerry Danen <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Apache email address
> 
> When I use a php form to send email, an address called
> [EMAIL PROTECTED] is used. Where would that be set?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Auto Vhost question

2006-01-15 Thread httpd2

Check out this sample chapter from Pro Apache 3rd edition, 
by Peter Wainwright. It covers hosting more than one 
website.

http://www.apress.com/book/supplementDownload.html?bID=275&sID=2134

You may need to use user's home directories to add sites on 
the fly.

I'm not sure if there is a way to add virtual host's 
dynamically, unless you use something like redirection.
But even then the redirection rules would need to be in the 
config file.

HTH

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sun, 15 Jan 2006, Gary W. Smith wrote:

> To: users@httpd.apache.org
> From: Gary W. Smith <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Auto Vhost question
> 
> Is this following possible and if so how could it be accomplished?
> 
> We have a number of users on a web server that access the system via
> users.domain.com/theirloginid (note that this isn't ~theirloginid).  Is
> it possible to configure a vhost in such a way that they are
> theirloginid.users.domain.com without having to modify the apache
> configuration or restart apache each time a user is added?
> 
> We have 350 users and would like to be able to add them on the fly.
> >From a DNS perspective it's simple.  That site is using DNS with a mysql
> backend.  It would be nice if we could pull the vhost information
> directly from mysql as well.
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache Administrator qualification

2006-01-14 Thread httpd2

Ok - I take your points raised as being relevant and valid :-)

Keith

> You can't seperate the security, performance, robustness 
> of httpd from the operating system it's deployed to, which 
> is why I suggest that stand-alone httpd certification 
> would be somewhat useless.  Also consider that HOW httpd 
> is deployed, locations of logs, access control/htpasswd 
> files, content, etc. along with scripting languages and 
> how those are deployed is all part and parcel with how the 
> OS vendor distributes Apache httpd, if using the vendor's 
> distribution.
> 
> Believe me, I've landed in plenty of Apache distributions 
> by OS vendors and become completely lost in the 'mess' 
> they created :-)
> 
> Bill

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache Administrator qualification

2006-01-14 Thread httpd2

Some interesting points William.

> Could Sun/HP/IBM/RedHat develop a curriculum/certification 
> for complete server administration, including Apache?  I 
> suspect they not only could, but currently do have some 
> credentials around Server Administration - which must 
> include dns, sendmail, httpd and the dozens of other 
> services which must be locked down.

Well, I thought a 'real' apache web server was supposed to 
be a dedicated machine, not running other services that you 
mention above.

So that would imply a minimal system, only running the 
Apache daemon, and nothing else that is not required to 
support the web server. This machine would be made as secure 
as possible, and regular security updates applied.

There are dozens of other services that need to be locked 
down securely, but I do not see what relevance they have in 
running a dedicated web server. Maybe I'm missing something 
somewhere?

Regards 

Keith

In theory, theory and practice are the same;
In practice they are not.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache Administrator qualification

2006-01-14 Thread httpd2

Well, I'm not sure about running an Apache qualification 
myself. Maybee ACA would be better than CAA, which would 
conflict with the aviation CAA of the UK.


In theory, theory and practice are the same;
In practice they are not. 

On Sat, 14 Jan 2006, Emmanuel E wrote:

> To: users@httpd.apache.org
> From: Emmanuel E <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Apache Administrator qualification
> 
> We could start one. What do you say?
> 
> - Original Message - From: <[EMAIL PROTECTED]>
> To: 
> Sent: Saturday, January 14, 2006 12:04 AM
> Subject: [EMAIL PROTECTED] Apache Administrator qualification
> 
> 
> > 
> > Hi all.
> > 
> > Quote from the Apache homepage:
> > 
> > "Apache has been the most popular web server on the Internet
> > since April of 1996. The November 2005 Netcraft Web Server
> > Survey found that more than 70% of the web sites on the
> > Internet are using Apache, thus making it more widely used
> > than all other web servers combined."
> > 
> > As Apache now runs almost 3/4's of the internet, I was
> > wondering if there is such a thing as a Certified Apache
> > Administrator (CAA)?
> > 
> > I think it would be a  great way of showing competence as an
> > Apache admin, if there was such a qualification.
> > 
> > Any thoughts on this one?
> > 
> > Regards Keith
> > 
> > -
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] configure internal server error to automatically email me

2006-01-14 Thread httpd2

Maybe the script needs to be in the DocumentRoot as Gerry
has pointed out, and not outside of it.

Regards

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Sat, 14 Jan 2006, Jeff Lacki wrote:

> To: users@httpd.apache.org
> From: Jeff Lacki <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] configure internal server error to 
> automatically
> email me
> 
> Thanks Kieth.  That appears to be what needs to be done,
> however, after I tried this, I found the following issues:
> 
> If I say:
> 
> ErrorDocument 500 "http://www.mysite.com/cgi-bin/err500.pl";
> 
> I get an Alert that pops up saying:
> 
> Redirection limit for this URL exceeded. Unable to load the requested
> page.  This my be caused by cookies that are blocked.
> 
> My cookies arent blocked (as far as I know because i use them
> with other stuff on my XP box)  THis is using Netscape 7.2
> 
> 
> If I do:
> 
> Alias /scripts/ "/home/http/myscripts"
> ErrorDocument 500 "/scripts/err500.pl"
> 
> It seems to continue to use the apache default page.
> 
> If you get this working, please let me know.
> Ill do the same.  Thanks again,
> Jeff

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] configure internal server error to automatically email me

2006-01-14 Thread httpd2

I was reading up yesterday on something that may be your 
answer Jeff. Using the ErrorDocument core directive may do 
the trick.

ErrorDocument 500 /scripts/int_err500.php

Where /scripts/ is a directory in the apache ServerRoot, and 
int_err500.php is a php script you write that will output a 
message you define to the user's browser, and also email the 
error message to yourself, wherever you want it to be sent 
to. eg localhost or even another domain anywhere on the net.

The error message to the user needs to be a complete html 
page, with all the necessary tags.

I've not implemented this yet, but according to what I have 
been reading this should work ok.

HTH

Keith
 

On Sat, 14 Jan 2006, Jeff Lacki wrote:

> To: users@httpd.apache.org From: Jeff Lacki 
> <[EMAIL PROTECTED]> Subject: [EMAIL PROTECTED] configure internal 
> server error to automatically email
> me
> 
> 
> Hello-
> 
> Ive been using apache for a few years, but nothing too 
> deep. I havent been able to find if this is possible, Id 
> like the server to send me an email if it encounters an 
> "Internal Server Error" screen due to a script problem 
> etc.
> 
> Is this possible?  Any pointers/links appreciated.
> 
> Thanks
> PS Using 2.0.55 w/PHP
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Apache Administrator qualification

2006-01-13 Thread httpd2

Hi all.

Quote from the Apache homepage:

"Apache has been the most popular web server on the Internet 
since April of 1996. The November 2005 Netcraft Web Server 
Survey found that more than 70% of the web sites on the 
Internet are using Apache, thus making it more widely used 
than all other web servers combined."

As Apache now runs almost 3/4's of the internet, I was 
wondering if there is such a thing as a Certified Apache 
Administrator (CAA)?

I think it would be a  great way of showing competence as an 
Apache admin, if there was such a qualification.

Any thoughts on this one?

Regards Keith

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Conf file macros?

2006-01-12 Thread httpd2

The module module_env is used to define variables in the 
config file, or pass variables from the shell to the apache 
environment.

# define the environment variable
SetEnv SrvRoot /usr/local/apache2

I'm not sure of the syntax to use the variable though. 
As you say the docs are a bit vague to say the least!

Regards - Keith


On Thu, 12 Jan 2006, David Salisbury wrote:

> To: users@httpd.apache.org
> From: David Salisbury <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Conf file macros?
> 
> 
> Just wondering ( I don't see it in the docs ) if one can define
> "variables" in the Apache conf. files.
> 
> i.e. I have seen people write something along the lines of
> 
> %{HTTP_REFERER}
> 
> in their conf file.
> 
> So..  is there any support for a sort of variable substitution within the
> conf file.. e.g.
> 
> %DIR=/usr/local/
> 
> and then
> 
> ServerRoot %{DIR}
> 
> I'm doubting it but this would be nice.
> 
> -Dave

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Disabling PUT DELETE and TRACE on Apache?

2006-01-11 Thread httpd2

Hi Emmanuel. I did not check the docs, so I was not aware of 
the restriction on the TRACE method :-)

Regards - Keith 
 

Oh! This is cool. I didnt realise that mod_access would work inside a Limit
directive. I toyed with it for a moment before I was led astray by the
examples highlighting the use of mod_auth.

As per the docs the TRACE method cant be limited, other than by turning off
TraceEnable  So I guess I could use the LimitExcept directive and do a


 Order deny,allow
 Deny from all


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] howto configure apache to serve requests without explicitly defining a port number in the URL

2006-01-11 Thread httpd2

Sounds like you may need to use some sort of NAPT on your 
firewall.

If you want requests to come into your firewall/router on 
port 80 you will need to use NAPT to redirect the standard 
request to the non standard port. Hopefully that should do 
the trick.

Regards 

Keith Roberts
 

On Wed, 11 Jan 2006 [EMAIL PROTECTED] wrote:

> To: users@httpd.apache.org
> From: [EMAIL PROTECTED]
> Subject: [EMAIL PROTECTED] howto configure apache to serve requests without
> explicitly defining a port number in the URL
> 
> Hi Everyone,
> 
> I would appreciate any information on configuring apache to run on a non 
> standard port, however serving requests without explicitly defining the 
> port number in the URL. 
> Example: 
> 1. If I run apache on port 7894 hosting mydomain.org 
> 2. I should be able visit http://mydomain.org to see my site 
>(instead of http://mydomain.org:7894) 
> Does this also require any coordination with firewall rules,iptables, 
> etc ?. Any information is appreciated. 
> Running Apache 2.0.X on Solaris 8
> Cheers
> -Harish 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Disabling PUT DELETE and TRACE on Apache?

2006-01-11 Thread httpd2

This will do what you want it to, and should apply to the 
whole filesystem, unless you override it somewhere else.


  Options none
  AllowOverride none
  Order deny,allow
  Deny from all
  
Order deny,allow
Deny from all
  



Keith Roberts 

On Wed, 11 Jan 2006, Joost de Heer wrote:

> To: Emmanuel E <[EMAIL PROTECTED]>
> From: Joost de Heer <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Re: Disabling PUT DELETE and TRACE on Apache?
> 
> Emmanuel E wrote:
> > Hi,
> >
> > Is there any way to disable PUT DELETE and TRACE methods 
> > on Apache? User authentication is one way but then it 
> > still allows authenticated users to use those methods.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Max number of connections from a single client to a server.

2006-01-10 Thread httpd2

Some are in documented in:

httpd-docs-2.0.55.en/mod/mpm_common.html

Others are documented in:

apache/httpd-docs-2.0.55.en/mod/mpm_winnt.html

The documentation will give you details of where they apply 
in the configuration files.

Keith
 

On Wed, 11 Jan 2006, paritosh mahana wrote:

> To: users@httpd.apache.org
> From: paritosh mahana <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Max number of connections from a single client 
> to a
>  server.
> 
> None of the mentioned directives are set in httpd.conf  file:(
> Where to look for them then?
> 
> On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > Those directives look OK Paritosh.
> >
> > What about these directives:
> >
> > ListenBacklog:
> > MaxMemFree:
> > ThreadLimit:
> > Win32DisableAcceptEx:
> >
> > Have you tried setting the LogLevel to debug. see what help
> > messages you get in the error log then.
> >
> > Keith
> >
> >
> > On Wed, 11 Jan 2006, paritosh mahana wrote:
> >
> > > To: users@httpd.apache.org
> > > From: paritosh mahana <[EMAIL PROTECTED]>
> > > Subject: Re: [EMAIL PROTECTED] Max number of connections from a single
> > client to a
> > >  server.
> > >
> > > Server OS:windows 2003 server
> > >
> > > Apacehe Version:2.0.53
> > >
> > > MPM:# WinNT MPM
> > > # ThreadsPerChild: constant number of worker threads in the server
> > process
> > > # MaxRequestsPerChild: maximum  number of requests a server process
> > serves
> > > 
> > > ThreadsPerChild 250
> > > MaxRequestsPerChild  0
> > > 
> > >
> > > Requests per second: depends on how many simultaneous clients are
> > runing.
> > >
> > >
> > >
> > > On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Hi Paitosh. Interesting problem!
> > > >
> > > > Can you give more details please for:
> > > >
> > > > OS:
> > > >
> > > > Apache version:
> > > >
> > > > MPM:
> > > >
> > > > How many requests per second:
> > > >
> > > > Regards Keith
> > > >
> > > > -
> > > > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > > > See http://httpd.apache.org/userslist.html> for more info.
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >"   from the digest: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
> > -
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >"   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Max number of connections from a single client to a server.

2006-01-10 Thread httpd2

You might also like to read about process creation in

/httpd-docs-2.0.55.en/misc/perf-tuning.html

under the User's Guide.

Keith

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Max number of connections from a single client to a server.

2006-01-10 Thread httpd2

Those directives look OK Paritosh.

What about these directives:

ListenBacklog:
MaxMemFree:
ThreadLimit:
Win32DisableAcceptEx:

Have you tried setting the LogLevel to debug. see what help 
messages you get in the error log then.

Keith


On Wed, 11 Jan 2006, paritosh mahana wrote:

> To: users@httpd.apache.org
> From: paritosh mahana <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Max number of connections from a single client 
> to a
>  server.
> 
> Server OS:windows 2003 server
> 
> Apacehe Version:2.0.53
> 
> MPM:# WinNT MPM
> # ThreadsPerChild: constant number of worker threads in the server process
> # MaxRequestsPerChild: maximum  number of requests a server process serves
> 
> ThreadsPerChild 250
> MaxRequestsPerChild  0
> 
> 
> Requests per second: depends on how many simultaneous clients are runing.
> 
> 
> 
> On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi Paitosh. Interesting problem!
> >
> > Can you give more details please for:
> >
> > OS:
> >
> > Apache version:
> >
> > MPM:
> >
> > How many requests per second:
> >
> > Regards Keith
> >
> > -
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >"   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Max number of connections from a single client to a server.

2006-01-10 Thread httpd2

Hi Paitosh. Interesting problem!

Can you give more details please for:

OS:

Apache version:

MPM:

How many requests per second:

Regards Keith

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] 2.0.55 Installation Error

2006-01-09 Thread httpd2

Hi there. If I do a default installation everything seems to 
work out OK.

Changing the default installation path to 
/usr/local/apache2-0-55 with the following configure command:

shell>$ ./configure --prefix=/usr/local/apache2-0-55 
--libdir=/usr/local/apache2-0-55  && make && make install 

gives the following error.

Installing man pages and online manual
mkdir /usr/local/apache2-0-55/man
mkdir /usr/local/apache2-0-55/man/man1
mkdir /usr/local/apache2-0-55/man/man8
mkdir /usr/local/apache2-0-55/manual
Installing build system files
libtool: install: warning: 
`/downloads/apache/server-2-0-55/httpd-2.0.55/srclib/apr-util/libaprutil-0.la' 
has not been installed in `/usr/local/apache2/lib'
libtool: install: warning: 
`/downloads/apache/server-2-0-55/httpd-2.0.55/srclib/apr/libapr-0.la' 
has not been installed in `/usr/local/apache2/lib'
make[1]: Leaving directory 
`/downloads/apache/server-2-0-55/httpd-2.0.55'
karsites:/downloads/apache/server-2-0-55/httpd-2.0.55 #

Any ideas please?

Keith Roberts


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] deny from all is needed?

2006-01-08 Thread httpd2

This can be quite confusing for newbies. I have only 
recently got my head around it. I think the connect bug 
workaround also added confusion to this for me.

The default state for 

Order deny,allow

is to allow from all as Alfred has already mentioned.

To deny from all without a Deny from all directive is
Order allow,deny

IMO if you can stick to one variant of the directive 
ordering in your configuration, you will save yourself some 
confusion.


  Order deny,allow
  Allow from 10.254.0.0/24


This is redundant and has the same effect as just saying:


  Order deny,allow


which allows everyone in.

To not use the deny from all directive, you would need to 
do:


  Order allow,deny


Which would block access to everyone.


  Order allow,deny
  Allow from 10.254.0.0/24


Would then allow access to the LAN network range mentioned.

Using 


  Order deny,allow
  Deny from all
  Allow from 10.254.0.0/24


Is another line to type, but reminds oneself that you are 
actually denying access to everyone, and then only allowing
people on that LAN in.


HTH

Keith

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] FYI

2006-01-08 Thread httpd2

Hi all.

Just did a test on SuSE 9.2 pro.

Downloaded the source for Apache 2.0.55 and 2.2.0

Both versions compiled and installed and run OK without any 
problems. Got a couple of warnings from configure, but that 
was all.

Nice to know I can now build apache to my own requirements!

Keith


 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] More than one name-based vhost with SSL

2006-01-04 Thread httpd2

Is this any good?

http://www.onlamp.com/pub/a/apache/2005/02/17/apacheckbk.html

Keith 


On Wed, 4 Jan 2006, Steffen Ronalter wrote:

> To: users@httpd.apache.org
> From: Steffen Ronalter <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] More than one name-based vhost with SSL
> 
> Hi!
> 
> First: I've read the docs and now I know that it can't work.
> 
> But my setup seems to work: check it out!
> 
> https: //ronalter.de
> https: //grundfunk.de
> 
> both are on the same machine with only one IP address.
> 
> What's the fault in my thought?
> 
snip
> 
> Thanks for your help!
> 
> Steffen.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] how can I add SERVER_NAME to a filename

2006-01-02 Thread httpd2

Yes - I think it is possible.

This is part of the apache official httpd.conf file:

#
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot /www/docs/dummy-host.example.com
#ServerName dummy-host.example.com
#ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
#CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
#

Not the last entries for the log files.
I don't know how they implement it though.
Are they some sort of environment, or CGI variables?
Maybe someone else knows?

I'd be interested to know how it is done.

Keith


On Mon, 2 Jan 2006, robert rottermann wrote:

> To: users@httpd.apache.org
> From: robert rottermann <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] how can I add SERVER_NAME to a filename
> 
> keith,
> thank you very much for your answer.
> I was a bit unclear. I know that I can name the files like this
> 
> CustomLog /var/log/apache2/projekte2.fh-aargau.ch/com_log combined
> 
> however I would like to have the "projekte2.fh-aargau.ch" part
> replaced by a variable.
> Is this possible?
> 
> somehow %{SERVER_NAME} must be known as I use it in a rewrite rule.
> 
> thanks
> robert

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] how can I add SERVER_NAME to a filename

2006-01-02 Thread httpd2

Have you looked at mod_setenvif ?

Keith


On Mon, 2 Jan 2006, robert rottermann wrote:

> To: users@httpd.apache.org
> From: robert rottermann <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] how can I add SERVER_NAME to a filename
> 
> keith,
> thank you very much for your answer.
> I was a bit unclear. I know that I can name the files like this
> 
> CustomLog /var/log/apache2/projekte2.fh-aargau.ch/com_log combined
> 
> however I would like to have the "projekte2.fh-aargau.ch" part
> replaced by a variable.
> Is this possible?
> 
> somehow %{SERVER_NAME} must be known as I use it in a rewrite rule.
> 
> thanks
> robert

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] how can I add SERVER_NAME to a filename

2006-01-02 Thread httpd2

Are you trying to add your own virtual server's name to your 
apache log filename? If so, read the discusion on how to log 
virtual hosts. You will find it on the manual home page under: 

Users' Guide-> LogFiles->Virtual Hosts.

You can then use the apache supplied perl script, 
split-logfile to do the following: 

>From the manual:

split-logfile

This perl script will take a combined Web server access log 
file and break its contents into separate files. It assumes 
that the first field of each line is the virtual host 
identity (put there by "%v"), and that the logfiles should 
be named that + ".log" in the current directory.

The combined log file is read from stdin. Records read will 
be appended to any existing log files.

Or you can set up logging for each specified virtual host 
like this:


 DocumentRoot /www/docs/host.foo.com
 ServerAdmin [EMAIL PROTECTED]
 ServerName projekte2.fh-aargau.ch
 CustomLog /var/log/apache2/projekte2.fh-aargau.ch/com_log combined
 ErrorLog  /var/log/apache2/projekte2.fh-aargau.ch/error_log
 

You will need to create the /projekte2.fh-aargau.ch/ 
directory under /var/log/apache2. This will keep logs for 
each virtual host seperate in their own sub-directory.


HTH - Keith Roberts 


On Mon, 2 Jan 2006, robert rottermann wrote:

> To: users@httpd.apache.org
> From: robert rottermann <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] how can I add SERVER_NAME to a filename
> 
> Hi there,
> 
> I would like to
> use a construct like the following
> 
> ServerAdmin [EMAIL PROTECTED]
> ServerName projekte2.fh-aargau.ch
> CustomLog /var/log/apache2/%{SERVER_NAME}.log combined
> ErrorLog  /var/log/apache2/%{SERVER_NAME}.log
> 
> However, the filename it creates is %{SERVER_NAME}.log instead of
> projekte2.fh-aargau.ch.log
> 
> 
> how can I achieve the desired result?
> 
> thanks
> robert
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2006-01-02 Thread httpd2

I think I have isolated the problem now.

# THIS IS CAUSING THE PROBLEM WITH ...
#
# remove the CONNECT bug # 
http://bugs.php.net/bug.php?id=19113
#
#
#  
#  Order deny,allow
#  Deny from all
#  
#


When I un-comment the above, the error appears. If I 
comment out the above, the error goes away. 

If anyone else on the list is using this patch, maybe they 
need to check out their configuration too. It's nice to be 
able to configure apache directories now, and know what 
behaviour to expect.

Many thanks to Joe Knall for all his suggestions and help, 
from suse-security list and by sending me a copy of his 
httpd.conf file in the early hours!

Happy new year to everyone.

Keith Roberts


On Thu, 29 Dec 2005, Jim Walls wrote:

> To: users@httpd.apache.org
> From: Jim Walls <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Filename Access
> 
> Sean Davis wrote:
> 
> > On 12/29/05 2:26 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
snip
> > 
> > I certainly don't see why that is the case.  I hope someone else can
> > answer
> > your question so that I can learn as well.
> 
> I have a restricted directory on one of my sites and I looked at my config
> to see what I have listed.  I also tried the same test that you did on my
> site.  When I try to access the directory, I get a request for  a logon
> and password (as expected).  When I entered an invalid password, I gave me
> the Authorization Required page.  I then tried to directly access a file
> in that directory and got exactly the same response.  Lastly I verified
> that I was getting the filename right by entering the correct password
> when prompted and was able to access the file.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Beginning Apache 2 setup

2006-01-01 Thread httpd2

Have you sent up a directory container in your httpd.conf 
file to give apache access to the said directory?

like:


  Options None
  Options Indexes
  Order deny,allow
  Deny from all
  Allow from localhost
  Allow from 


Also, if you want to allow access to the directories in 
/home/user/public_html, you will need to enable load and 
enable mod_userdir, as these directories are usually outside 
of the normal document root path. see Apache Module 
mod_userdir for details.

Keith
 

On Sun, 1 Jan 2006, Robert Moskowitz wrote:

> To: users@httpd.apache.org
> From: Robert Moskowitz <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Beginning Apache 2 setup
> 
> Linux Centos 4.2 build
> 
> Double NATed and behind firewall (lab net), so security too much of an
> issue at this time.
> 
> Goal:  set up a directory of files to access by another system.
> 
> So I enable user directory, do a chmod 711 /home/user and chmode 755
> /home/user/public_html
> 
> And get forbidden access.
> 
> What did I do wrong, or better yet where is a GOOD source?  (or even a
> setup script!)
> 
> So I try to put files in /var/www/html, while logged in as root.
> 
> Create index.html with the sole content of:
> 
> hello
> 
> and that displays.
> 
> So I create directory xx
> 
> and localhost/xx does not exist.
> 
> So I create file /var/www/html/more.html
> 
> and localhost/more.html does not exist.
> 
> OK.  Where have I gone wrong?
> 
> I have an OLD version of Apache running on NT, but that of course is a
> diffferent setup.
> 
> 
> Barrs Law of Recursive futility
> If you're smart enough to use one of these
> .you can probably manage without one!
> 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2005-12-30 Thread httpd2

Well Sean - I have commented out the php directives.

*.html files are still accessible as well.

I have put t1.html , t2.htm , and t3.php into the same 
directory. These files are still accessible, and output 
three lines of text.

Here is my complete websites.conf file, that gets included 
into httpd.conf. I'm wondering if it is being included in 
the wrong place in httpd.conf, and causing conflicts with 
how Directry Files and Location sections are parsed.

Does anyone have a link to a minimal httpd.conf file I can 
make a fresh start with. ie what is the very bare minimal 
configuration directives I can get away with for a complete 
httpd.conf file, without SSL or virtual hosts, which I can 
add later?


# default access on root filesystem - www.karsites.net


  DirectoryIndex karsites.hml
  Options None
  AllowOverride None
  Order Deny,Allow
  Deny from all
#  php_admin_value open_basedir '/srv/www/htdocs/:/tmp/'
#  php_admin_flag display_errors OFF


#--

# remove the CONNECT bug # http://bugs.php.net/bug.php?id=19113


  
  Order deny,allow
  Deny from all
  


#--

# default restrictions on rest of server docs filesystem


  # AuthUserFile  /etc/httpd/passwd
  # AuthGroupFile /etc/httpd/group
  Options None
  AllowOverride None
  Order Deny,Allow
  Deny from all


#--

# only localhost can access documentation tree here
 

  Order deny,allow
  Deny from all
  Allow from localhost


#--

# only localhost and 10.0.0.3 can access development tree 
 

  Options None
  Options Indexes
  Order deny,allow
  Deny from all
  Allow from localhost
  Allow from 10.0.0.3
#  php_admin_flag display_errors ON


#--

# only localhost can access intermediate tree


  Options None
  Options Indexes
  Order deny,allow
  Deny from all
  Allow from localhost
#  php_admin_flag display_errors ON
 

#==
# START OF PUBLIC WEBSITE DIRECTORIES & ACCESS PERMISSIONS
#==

#--
#MUXREG WEBSITE ACCESS
#--

# anyone including localhost can access live websites


  Options None
  Order deny,allow
  Allow from all
#  php_admin_flag display_errors OFF


#--

# DBA ADMIN PAGES
# only localhost can access the admin pages of this site


  Options None
  Order deny,allow
  Deny from all
  Allow from localhost
#  php_admin_flag display_errors OFF
 

#--
#
# SITE DOWN PAGE
# uncomment this section to make muxreg website UNAVAILABLE online
# anyone including localhost can access live websites
#
# 
# Options None
# Order deny,allow
# Allow from all
#
# php_admin_flag display_errors OFF
# 
#
#--

# anyone can access this public directory tree with dir listings
 

  Options None
  Options Indexes
  Order deny,allow
  Allow from all


#--

# access for localhost and 10.0.0.3 only with directory listings
 

  Options None
  Options Indexes
  Order deny,allow
  Deny from All
  Allow from localhost
  Allow from 10.0.0.3




  Options None
  Order deny,allow
  Deny from all
  
Order deny,allow
Deny from all
  




  Options None
  Order deny,allow
  Deny from all
  
Order deny,allow
Deny from all
  



#==
#  END OF WEBSITE DIRECTORIES & ACCESS PERMISSIONS
#==

# end of websites.conf



On Fri, 30 Dec 2005, Sean Davis wrote:

> To: users@httpd.apache.org
> From: Sean Davis <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Filename Access
> 
> Just a suggestion, but if you take out the .php directives 
> (that allow php script execution) do you get the correct 
> behavior?  Alternatively, if you put a .html file in your 
> test directory, can you still access it?
> 
> Sean

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2005-12-30 Thread httpd2

Thankyou for checking things out on your machine Andrey.

Now I know what the  container is supposed to 
do, I can try and find out the problem on my own machine.

As you say, it appears the machines configuration is not 
quite right.

When I have found out what the cause of the problem is, I 
will post it to this list. Maybe a while yet though, as I'm 
concentrating on working through the whole of the apache 
manual. I need to get my head round all the config 
directives, and modules available, as well as virtual host 
support and SSL.

Kind Regards - Keith
 

On Thu, 29 Dec 2005, Andrey Kuznetsov wrote:

> To: users@httpd.apache.org
> From: Andrey Kuznetsov <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Filename Access
> 
> Hmm, I just recreated your setup:
> This is the message I got, for .html and .jpg extensions.
> 
> Forbidden
> You don't have permission to access /test/test.html on this server.
> 
> Additionally, a 404 Not Found error was encountered while trying to
> use an ErrorDocument to handle the request.
> 
> 
> 
> 
> Apache/2.0.54 (Win32) mod_python/3.2.2b Python/2.4.2 PHP/5.0.3 Server
> at 192.168.1.102 Port 80
> 
> 
> Config File #1:
> 
>Options None
>Order deny,allow
>Deny from all
>
>Order deny,allow
>Deny from all
>
> 
> 
> or Config File #2:
> 
>Options None
>Order deny,allow
>Deny from all
>
>Order deny,allow
>Deny from all
>
> 
> 
> Check your config file, something might override this function,
> because your config rule seems to work for me!
> 
> On 12/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi Jim. Thanks for doing that test on your machine.
> >
> > Does anyone else on the list have the same behaviour on
> > their server with the  directive?
> >
> > I cannot see what effect the  
> > directive container has on files?
> >
> >
> > Keith
> >
> >
> > On Thu, 29 Dec 2005, Jim Walls wrote:
> >
> > > To: users@httpd.apache.org
> > > From: Jim Walls <[EMAIL PROTECTED]>
> > > Subject: Re: [EMAIL PROTECTED] Filename Access
> > >
> > > I have a restricted directory on one of my sites and I
> > > looked at my config to see what I have listed.  I also
> > > tried the same test that you did on my site.  When I try
> > > to access the directory, I get a request for a logon and
> > > password (as expected).  When I entered an invalid
> > > password, I gave me the Authorization Required page.  I
> > > then tried to directly access a file in that directory and
> > > got exactly the same response.  Lastly I verified that I
> > > was getting the filename right by entering the correct
> > > password when prompted and was able to access the file.
> > > Here is an extract of my confd file if that helps.  This
> > > is obviously on a Windows based Apache.
> > >
> > >
> > > 
> > >
> > > AllowOverride None
> > >
> > > Order allow,deny
> > > Allow from all
> > >
> > > 
> > >
> > > #
> > > # Allow Override for .htpasswd access to xxxFiles directory
> > >
> > >  > > Group/Apache2/htdocs/K6CCC.org/xxxFiles">
> > >   AllowOverride AuthConfig
> > > 
> > >
> > > In the last Directory statement, it really is one line, but may split in
> > > the E-Mail...
> > >
> > >
> > > --
> > > 73
> > > -
> > > Jim Walls - K6CCC
> > > [EMAIL PROTECTED]
> > > Ofc:  818-548-4804
> > > http://home.earthlink.net/~k6ccc
> > > AMSAT Member 32537 - WSWSS Member 395
> >
> > -
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >   "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Live Long and Prosper,
> by Andrey Kuznetsov aka "Death Owl"
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2005-12-29 Thread httpd2

Hi Jim. Thanks for doing that test on your machine.

Does anyone else on the list have the same behaviour on 
their server with the  directive?

I cannot see what effect the   
directive container has on files?


Keith


On Thu, 29 Dec 2005, Jim Walls wrote:

> To: users@httpd.apache.org
> From: Jim Walls <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Filename Access
> 
> I have a restricted directory on one of my sites and I 
> looked at my config to see what I have listed.  I also 
> tried the same test that you did on my site.  When I try 
> to access the directory, I get a request for a logon and 
> password (as expected).  When I entered an invalid 
> password, I gave me the Authorization Required page.  I 
> then tried to directly access a file in that directory and 
> got exactly the same response.  Lastly I verified that I 
> was getting the filename right by entering the correct 
> password when prompted and was able to access the file.  
> Here is an extract of my confd file if that helps.  This 
> is obviously on a Windows based Apache.
> 
> 
> 
> 
> AllowOverride None
> 
> Order allow,deny
> Allow from all
> 
> 
> 
> # 
> # Allow Override for .htpasswd access to xxxFiles directory
> 
>  Group/Apache2/htdocs/K6CCC.org/xxxFiles">
>   AllowOverride AuthConfig
> 
> 
> In the last Directory statement, it really is one line, but may split in
> the E-Mail...
> 
> 
> -- 
> 73
> -
> Jim Walls - K6CCC
> [EMAIL PROTECTED]
> Ofc:  818-548-4804
> http://home.earthlink.net/~k6ccc
> AMSAT Member 32537 - WSWSS Member 395

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2005-12-29 Thread httpd2

Here is the URL:

http://www.karsites.net/KAR/websites/pub/computing/apache-test/get_vars.php

And the log entries are:

For an unsuccessfull request using:
http://www.karsites.net/KAR/websites/pub/computing/apache-test/

127.0.0.1 - - [29/Dec/2005:20:48:26 +]
"GET /KAR/websites/pub/computing/apache-test/ HTTP/1.1" 403 350

For a successfull request using:
http://www.karsites.net/KAR/websites/pub/computing/apache-test/get_vars.php

127.0.0.1 - - [29/Dec/2005:20:50:14 +]
"GET /KAR/websites/pub/computing/apache-test/get_vars.php 
HTTP/1.1" 200 1721

Keith


On Thu, 29 Dec 2005, Joshua Slive wrote:

> To: users@httpd.apache.org
> From: Joshua Slive <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Filename Access

> Show us the exact url that you are using and the exact 
> message from the error log for a successful and 
> unsuccessful request.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache/PHP Issue

2005-12-29 Thread httpd2

Bill.

Does apache have file read/execute permissions for the php 
file?

Is there some sort of redirection via aliases going on for 
the html files?

Do you have  restrictions for php files in effect?

 
Keith


On Thu, 29 Dec 2005, Bill McBride wrote:

> To: users@httpd.apache.org
> From: Bill McBride <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Apache/PHP Issue
> 
> I am running Apache 2.0.55 on a Windows XP 
> Professional OS and I have also installed PHP 5.1.  I 
> have set up the .ini files as correctly as I know how 
> but I am still getting a problem.  I can get my 
> browser to load .html files from the root diectory 
> fine.  However, when I try to load a .php file I get 
> the following page on the brower:
> 
>  
> Not Found
> The requested URL /phptest.php was not found on this server.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2005-12-29 Thread httpd2

Sean - I have created a directory in the public area, and 
added the following to my config file:


  Options None
  Order deny,allow
  Deny from all
  
Order deny,allow
Deny from all
  


(I restarted apache with /etc/init.d/apache2 stop, then start.)

If you go to that directory, you will get permission denied.

If you then add the following filename, get_vars.php, you 
will be able to access that file - well I can from localhost 
anyway.

Is this normal behaviour. I think I may need to re-write my 
config files from scratch, after carefully reading the 
manual.

Keith


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2005-12-29 Thread httpd2

Just done a test.

I'm reading the config file OK, so that's not the problem:

# apache2ctl -t
Syntax error on line 158 of /etc/apache2/my-conf/websites.conf:
Expected  but saw 

Keith


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2005-12-29 Thread httpd2

I'm wondering if that could be the problem. Should it be 
possible to stop files being served by the server with the 
config I showed?
 
If so there must be some conflicts somewhere in my config 
files.


Keith



On Thu, 29 Dec 2005, Sean Davis wrote:

> To: users@httpd.apache.org
> From: Sean Davis <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Filename Access

> Since you say that you have a complicated, multifile 
> config, are you sure that you are actually reading this 
> config file?  Are you sure that you aren't later 
> overriding it with another directive on the same 
> directory?
> 
> Sean
k

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Filename Access

2005-12-29 Thread httpd2

Hi Sean.

I'm usiing Apache 2 on SuSE Linux 9.2 pro.

The config is split over many different files.

I include my own custom config file that has different 
directory settings, such as:



Options None
Order deny,allow
Deny from all

Order deny,allow
Deny from all



But I can still access a php file called get_vars.php
in the forbidden directory that displays the content of the 
$_SERVER array:

contents of \$_SERVER[] ";
while(list($key, $value) = each($_SERVER))
   {
   echo "$key => $value ";
   }
?>

Keith
 

On Thu, 29 Dec 2005, Sean Davis wrote:

> To: users@httpd.apache.org
> From: Sean Davis <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Filename Access
> 
> It would be helpful if you let us know some details of the 
> config file that you are using for the directory of 
> interest.
> 
> Sean


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Filename Access

2005-12-29 Thread httpd2

Hi all.

When I setup a directory to forbid access to it, and to the 
files in the directory, I can still retrieve a file's 
contents if I know the full file name.

Is this normal behaviour - or can I block access to these 
unlisted files somehow?

Regards - Keith 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Problem with Redirect

2005-12-28 Thread httpd2

I'm not sure if you can change the protocol from http to 
https in a redirect.

According to your virtual hosts anything sent to port 80 
will get sent to SSL on port 443.

Is this what you want to do?

Keith

 

On Wed, 28 Dec 2005, Kaplan, Andrew H. wrote:

> To: users@httpd.apache.org
> From: "Kaplan, Andrew H." <[EMAIL PROTECTED]>
> Subject: RE: [EMAIL PROTECTED] Problem with Redirect 
> 
> Hi there --
> 
> Yes I do. Just to make sure we are on the same page with this, I have the
> virtual server section of the file shown below:
> 
> 
>   ServerName (ip address)
>   ServerAdmin (email address)
>   DocumentRoot /var/www/html
>   Redirect / https://(ip address)
> 
> 
> 
>   ServerName (ip address)
>   ServerAdmin (email address)
>   DocumentRoot /var/www/html
>   
>   SSLEngine On
>   SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
>   SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
>   SSLCertificateChainFile /etc/httpd/conf/ssl.key/server.key
>   SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 28, 2005 1:44 PM
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] Problem with Redirect 
> 
> 
> Hi Andrew.
> 
> Do you have a seperate Virtual server listening on port 80 
> for the standard non-SSL requests, and a seperate 
> SSL-enabled virtual server listening for connections on post 443?
> 
> Keith
>  
> 
> On Wed, 28 Dec 2005, Kaplan, Andrew H. wrote:
> 
> > To: users@httpd.apache.org
> > From: "Kaplan, Andrew H." <[EMAIL PROTECTED]>
> > Subject: [EMAIL PROTECTED] Problem with Redirect 
> > 
> > Hi there -
> > 
> >  
> > 
> > I have Apache 2.0.52 running on one of our servers and I am having problems
> with
> > redirecting port 80 connections to port 443. 
> > 
> > When I type the url: https://, I get to the page in question.
> > However, when I type the URL: http://,
> > 
> > I do not get the connection. 
> > 
> >  
> > 
> > I modified the /etc/httpd/conf/httpd.conf file to automatically have port 80
> > connections go to 443 via the virtual host section. Are
> > 
> > there additional modifications that I need to make? Thanks. 
> > 
> > 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] suexec

2005-12-28 Thread httpd2

Rob - What is the full definition for your virtual host 
container please?

Keith
 

On Wed, 28 Dec 2005 [EMAIL PROTECTED] wrote:

> To: users@httpd.apache.org
> From: [EMAIL PROTECTED]
> Subject: [EMAIL PROTECTED] suexec
> 
> Hey guys.
> 
> 
>   Trying to get this thing to work.  But am getting this error.
> [2005-12-28 13:36:30]: uid: (514/dspam) gid: (514/514) cmd: dspam.cgi
> [2005-12-28 13:36:30]: command not in docroot (/web/spam/html/dspam.cgi)
> 
> the users home is /web/spam/html
> the doc root (default host) is /web
> the virtual host is /web/spam/html
> 
> what's up?
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problem with Redirect

2005-12-28 Thread httpd2

Hi Andrew.

Do you have a seperate Virtual server listening on port 80 
for the standard non-SSL requests, and a seperate 
SSL-enabled virtual server listening for connections on post 443?

Keith
 

On Wed, 28 Dec 2005, Kaplan, Andrew H. wrote:

> To: users@httpd.apache.org
> From: "Kaplan, Andrew H." <[EMAIL PROTECTED]>
> Subject: [EMAIL PROTECTED] Problem with Redirect 
> 
> Hi there -
> 
>  
> 
> I have Apache 2.0.52 running on one of our servers and I am having problems 
> with
> redirecting port 80 connections to port 443. 
> 
> When I type the url: https://, I get to the page in question.
> However, when I type the URL: http://,
> 
> I do not get the connection. 
> 
>  
> 
> I modified the /etc/httpd/conf/httpd.conf file to automatically have port 80
> connections go to 443 via the virtual host section. Are
> 
> there additional modifications that I need to make? Thanks. 
> 
> 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Make Apache Linux paths case insensitive?

2005-12-28 Thread httpd2

Hi Arthur.

I'm working my way through the manual, and from what I've 
read so far you may need to match on regular expressions and 
use mod_rewrite. This is a powerful alternative to 
hard-coding the directory paths with aliases.

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

HTH - Keith Roberts


>Do I have to alias every directory I have configured in the 
>conf file?
>How can I make the everything case insensitive.  


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Detecting Javascript via Apache 2

2005-12-28 Thread httpd2

Thankyou Sean and others for all the replies.

I will check out the folowing:

http://www.w3schools.com/js/default.asp
And more specifically here:
http://www.w3schools.com/js/js_howto.asp
http://www.w3schools.com/js/js_browser.asp

Regards - Keith Roberts


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Detecting Javascript via Apache 2

2005-12-27 Thread httpd2

Hi all.

Is it possible for apache 2.0 to detect if a browser has 
javascript enabled when a page is requested, and then 
passing this value to PHP?

This would allow me to serve different page content, 
depending on whether the user's browser has javascript 
enabled or not.

Regard

Keith Roberts




 

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]