Re: [us...@httpd] virtual hosts and rewrite rules

2009-05-22 Thread Tom Evans
On Fri, 2009-05-22 at 06:32 +, Melanie Pfefer wrote:
> Hi
> 
> I have an apache instance where I defined several rewrite rules and 
> ProxyPassReverse that redirects to other web applications.
> 
> I added a virtual host in the conf file 
> 
> NameVirtualHost *:80
> 
> ServerAdmin y...@example.com
> 
> DocumentRoot "/usr/local/apache2/htdocs"
> 
> 
> RewriteEngine On
> RewriteRule ….
> 
> ProxyPass …
> ProxyPassReverse…
> 
> 
> ….
> 
> 
> Now with this new virtual host, the rewrite rules are not working and I get 
> broken links. I had to comment all the VirtualHost settings.
> I thought that the rewrite rules will still work on the default virtual host 
> but apparently no.
> What is missing if I want the rewrite rules to affect the default virtual 
> host?
> 
> thanks
> 
> 

If you have vhosts, then the default vhost is not what is specified
outside of the vhost tags, it is the first defined vhost in your conf
file. This means that any vhost level directives (like RewriteRules,
ProxyPass, Location blocks etc) must be defined inside a vhost container
to be relevant. Yours aren't, which is why they are ignored.

Cheers

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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Httpd on Ubuntu 9.04

2009-05-22 Thread John Hudak
Hi:
I don't want to hijack this thread, but since the question has been
answered, I have a related one...WHY does the Debian distro 'relocate'
things such as apache?  Since I've been getting into the guts of
Debian and Ubuntu over the last 2-3 years, I am finding a lot of 'non
standard' things that drive me nuts when trying to solve a problem.  I
consider myself a fairly knowledgable Unix user/developer (at least,
back in the bad old days) and some of the changes I've seen in the
Debian/Ubuntu distros make me scratch my head and say Why?  For
example, their use of bin, and sbin, and root being acquired by
'sudo'..
Just curious...

On Fri, May 22, 2009 at 12:48 AM, Res  wrote:
> On Thu, 21 May 2009, Frank Gingras wrote:
>
>> The debian maintainers though it would be suitable to rename it to apache2
>> / apache2ctl.
>>
>> See: http://wiki.apache.org/httpd/DistrosDefaultLayout
>
> I often wonder who is worse, Micro$oft or Debian, both want everything
> "their" way.
>
> My solution for the OP is apt-get remove apache2 (http2 or whatever they
> call it these days) and get the source (it will be a lot more current then
> ubuntu/debians version as well and wont be hacked or butchered) so will be
> cleaner and bug free'r.
>
> If you still have issues you'll far likely get better support here useing it
> since few people here would know what butchering Debian have done.
>
>
> --
> Res
>
> -Beware of programmers who carry screwdrivers
>
> -
> 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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Httpd on Ubuntu 9.04

2009-05-22 Thread Eric Covener
On Fri, May 22, 2009 at 8:39 AM, John Hudak  wrote:
>  Forexample, their use of bin, and sbin, and root being acquired by
> 'sudo'..
> Just curious...

Aren't those all pretty conventional?

-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Httpd on Ubuntu 9.04

2009-05-22 Thread John Hudak
I've seen apps installed in sbin, and /home/username when from my
perspective, they should have been in bin.  While I haven't used a lot
of different distros (slackware, RH (prior to their business model
change), and commercial Unix distros by att, sun, dec, HP), I've never
run into 'sudo'...I can understand the security argument for this, but
don't necessarily agree with the approach. Anyway. its more of a 'Why
do they do this' as a general question as opposed to a specific
configuration.
Guess I should take this question to the Debian forum

On Fri, May 22, 2009 at 8:52 AM, Eric Covener  wrote:
> On Fri, May 22, 2009 at 8:39 AM, John Hudak  wrote:
>>  Forexample, their use of bin, and sbin, and root being acquired by
>> 'sudo'..
>> Just curious...
>
> Aren't those all pretty conventional?
>
> --
> Eric Covener
> cove...@gmail.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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Httpd on Ubuntu 9.04

2009-05-22 Thread Stephen

John Hudak wrote:

I've seen apps installed in sbin, and /home/username when from my
perspective, they should have been in bin.  While I haven't used a lot
of different distros (slackware, RH (prior to their business model
change), and commercial Unix distros by att, sun, dec, HP), I've never
run into 'sudo'...I can understand the security argument for this, but
don't necessarily agree with the approach. Anyway. its more of a 'Why
do they do this' as a general question as opposed to a specific
configuration.
Guess I should take this question to the Debian forum
  
I believe the argument for using sudo is that it becomes possible to run 
a system without a root account.
This is the default for an Ubuntu install. No risk of a user running as 
root.


Prompting the user for his password when he is doing "root things" makes 
it very clear that he is doing root

things. Windows has adopted this idea.

Ubuntu has a goal of being usable by less sophisticated users. 
Deviations from "Unix standards" (whichever

one you prefer) should be evaluated against this goal.

It seems reasonable to me to call the apache binary, "apache". But there 
is always pain in getting from here to

there when computer standards are being changed.

Stephen


-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Httpd on Ubuntu 9.04

2009-05-22 Thread Igor Cicimov
There is not httpd on Debian/Ubuntu. It's called apache2 and /etc/apache2 is
the config folder. To check if apache is installed and where you run the
dpkg command, something like this:

# sudo dpkg -s apache2
and
# sudo dpkg -S apache2

Igor

On Sat, May 23, 2009 at 12:27 AM, Stephen  wrote:

> John Hudak wrote:
>
>> I've seen apps installed in sbin, and /home/username when from my
>> perspective, they should have been in bin.  While I haven't used a lot
>> of different distros (slackware, RH (prior to their business model
>> change), and commercial Unix distros by att, sun, dec, HP), I've never
>> run into 'sudo'...I can understand the security argument for this, but
>> don't necessarily agree with the approach. Anyway. its more of a 'Why
>> do they do this' as a general question as opposed to a specific
>> configuration.
>> Guess I should take this question to the Debian forum
>>
>>
> I believe the argument for using sudo is that it becomes possible to run a
> system without a root account.
> This is the default for an Ubuntu install. No risk of a user running as
> root.
>
> Prompting the user for his password when he is doing "root things" makes it
> very clear that he is doing root
> things. Windows has adopted this idea.
>
> Ubuntu has a goal of being usable by less sophisticated users. Deviations
> from "Unix standards" (whichever
> one you prefer) should be evaluated against this goal.
>
> It seems reasonable to me to call the apache binary, "apache". But there is
> always pain in getting from here to
> there when computer standards are being changed.
>
> Stephen
>
>
>
> -
> 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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


RE: [us...@httpd] logging URLs

2009-05-22 Thread Anthony J. Biacco
You mean beyond RewriteLog?

-Tony
---
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abia...@formatdynamics.com
http://www.formatdynamics.com


> -Original Message-
> From: Melanie Pfefer [mailto:melanie_pfe...@yahoo.co.uk]
> Sent: Friday, May 22, 2009 12:34 AM
> To: users@httpd.apache.org
> Subject: [us...@httpd] logging URLs
> 
> 
> Hi
> 
> Is it possible for apache to log the URL requested even if some web
> applications are obtained via RewriteRule to another servlet or another
> apache instance?
> 
> 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: users-unsubscr...@httpd.apache.org
>"   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Apache performance issue on AMD 6000+ cpu

2009-05-22 Thread John Malone
Hi,

I've searched the archives and the web in general but haven't found an answer.

Problem:
I recently started setting up a new machine for use as a standard LAMP
server and as a box to investigate XEN virtualisation. When doing some
crude performance tests using ab, I found that performance of the
machine was not what I would have expected. We have a number of XEON
based systems in a different hosting provider. My expectation was that
the AMD 6000+ box would perform at least as well as the XEON boxes.

Command: ab -k -c 100 -n 50,000 http://localhost/
index.html here was a static text file with either standard debian
content or a "hello world" message so size of content is usually less
than 20 bytes or so.

AMD BOX:  about 8,000 requests per second.
XEON BOX: about 16,000 requests per second.

XEON BOX:
2 gb ram
1 x xeon 3050 @ 2.13ghz (dual core)
/ is on a mirror of 2 seagate barracuda (it appears. write speed on
this box is quite poor...)
32 bit debian etch
apache 2.2.3


AMD BOX:
6gb ram
1 x amd x2 6000+ (dual core)
/ on a mirror of 2 samsung drives. Not sure which ones but bonnie
tells me I/O perfomance is superior to XEON box.
Various versions of debian were tried and various kernels but all gave
similar results
lenny 64 bit and 32 bit
xen and non xen kernels
xen guest os in 32 and 64 bit lenny and etch

The hosting provider gives us a black box installation menu that
didn't seem to be able to install etch so I can't quite compare apples
to apples which is unfortunate.


Apache configs.
In order to try and level this unlevel playing field I tried a lot of
different apache configs on the amd box including using exactly the
same one as on herbgarden yet performance remained about the same.


What I did notice was that according to vmstat 1, cpu idle count never
dropped below 50% on the amd box indicating some issue with
multithreading.

My question is, should I expect the ab test above on the AMD box to be
at least the same as on the XEON box rather than then current poor
situation?

Any pointers appreciated.

John


Extra info:


AMD BOX:

# cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 107
model name  : AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
stepping: 2
cpu MHz : 3100.000
cache size  : 512 KB
physical id : 0
siblings: 2
core id : 0
cpu cores   : 2
apicid  : 0
initial apicid  : 0
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow
pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips: 6205.46
clflush size: 64
power management: ts fid vid ttp tm stc 100mhzsteps

processor   : 1
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 107
model name  : AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
stepping: 2
cpu MHz : 3100.000
cache size  : 512 KB
physical id : 0
siblings: 2
core id : 1
cpu cores   : 2
apicid  : 1
initial apicid  : 1
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow
pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips: 6205.46
clflush size: 64
power management: ts fid vid ttp tm stc 100mhzsteps

free
 total   used   free sharedbuffers cached
Mem:   6200668 5367805663888  0  24740 453800
-/+ buffers/cache:  582406142428
Swap:  4200888  04200888
hope:~#

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] NT/AD authentication / IE / Windows XP

2009-05-22 Thread Scott Brady
All of our developers are on Windows machines that run Apache 2 (though our 
production servers are all IIS) [since XP's IIS can't run multiple IIS web 
sites, our developers need to use Apache].  Some of the sites we developer 
require Acitve Directory authentication (internal administrative sites). For 
that, we use the mod_auth_sspi module, and it works fine in Firefox.  However, 
we also need to test in Internet Explorer, and any time we log in on IE, we get 
the "Authorization Required" screen.  Looking at the error log, the message 
seems to be "user unknown" or "bad password".

I've tried searching many times for other people having this problem and 
haven't been successful. So, it may be something in our configuration. Here's a 
sample from my vhosts file (with identifiable info redacted):
  
AuthName "Enter your Redacted login"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative Off
SSPIDomain redacted.lan
SSPIOfferBasic Off
Require valid-user
  

Has anyone seen this before?  I'd appreciate any help.

---
Scott Brady
Lead Application Developer
Memolink, Inc.



[us...@httpd] How I configure Reverse Proxy using ??

2009-05-22 Thread ricardo13

Hi,

I configured reverse proxy using directives ProxyPass, ProxyPassReverse,
etc...

For example in httpd.conf

ProxyPass /new1 http://192.168.1.2
ProxyPassReverse /new1 http://192.168.1.2

ProxyPass /new2 http://192.168.1.3
ProxyPassReverse /new2 http://192.168.1.3

Now, I would like to configure Reverse Proxy using 
How I do it ??

Thank You
Ricardo
-- 
View this message in context: 
http://www.nabble.com/How-I-configure-Reverse-Proxy-using-%3CLocation%3Etp23675403p23675403.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Are apache caching modules redudant of memcached?

2009-05-22 Thread palewire

In an attempt to address the lsof problem we flagged in this thread --
http://is.gd/CqD0 -- I've been rifling through my httpd.conf looking for
unnecessary modules I can trim out of my httpd processes. 

So far this has basically amounted to me eliminating things like mod_cgi,
mod_vhost_alias, mod_speling and other Modules provided by my host by
default, but which don't seem necessary to my Django application site. 

As I review the modules, I see a series of modules relating to caching. They
are:

LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so

The site I am operating is using a memory caching system provided by the
memcached application. I'm curious whether memcached is redudant to these
Apache processes, or dependent on them. 

In other words, is it safe for me to comment them out?

Thanks in advance. I really appreciate the kind expertise available here in
the listserv. 

Ben.
-- 
View this message in context: 
http://www.nabble.com/Are-apache-caching-modules-redudant-of-memcached--tp23676109p23676109.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Apache with MPM Worker and PHP-5.2.9

2009-05-22 Thread Darvin Denmian
Hello,

i have a Web Server with the follow configuration:

4   Generic \ 512 MB \ DDR2 667 FB DIMM
4   Generic \ 1024 MB \ DDR2 667 FB DIMM
2   Maxtor \ 146GB:SAS:10K RPM \ Atlas 10K - SAS
2   Intel \ 2.0 GHz 1333FSB - Woodcrest \ Xeon 5130 (Dual Core)
1   Dell \ 9G Drive Controller - SAS/SATA RAID \ PERC 5/i
1   Dell \ 1066/1333FSB Dual Xeon \ PowerEdge 1950/2950

Redhat Enterprise Linux - x86_64 - OS ES 5.0

I need to know if advisable or possible to use Apache with MPM Worker
and PHP-5.2.9 .

Has anyone already tested/used this?

Any aditional information is welcome.

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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache with MPM Worker and PHP-5.2.9

2009-05-22 Thread Frank Gingras

Darvin,

Some of the php extensions are not thread-safe, so running in this 
configuration might leads to segfaults.


In short, no, don't do it.

Frank

Darvin Denmian wrote:

Hello,

i have a Web Server with the follow configuration:

4   Generic \ 512 MB \ DDR2 667 FB DIMM
4   Generic \ 1024 MB \ DDR2 667 FB DIMM
2   Maxtor \ 146GB:SAS:10K RPM \ Atlas 10K - SAS
2   Intel \ 2.0 GHz 1333FSB - Woodcrest \ Xeon 5130 (Dual Core)
1   Dell \ 9G Drive Controller - SAS/SATA RAID \ PERC 5/i
1   Dell \ 1066/1333FSB Dual Xeon \ PowerEdge 1950/2950

Redhat Enterprise Linux - x86_64 - OS ES 5.0

I need to know if advisable or possible to use Apache with MPM Worker
and PHP-5.2.9 .

Has anyone already tested/used this?

Any aditional information is welcome.

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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache with MPM Worker and PHP-5.2.9

2009-05-22 Thread Darvin Denmian
Is possible to use apache with mpm worker + fastcgi + php5-cgi ?

Thanks.

On Fri, May 22, 2009 at 4:04 PM, Frank Gingras
 wrote:
> Darvin,
>
> Some of the php extensions are not thread-safe, so running in this
> configuration might leads to segfaults.
>
> In short, no, don't do it.
>
> Frank
>
> Darvin Denmian wrote:
>>
>> Hello,
>>
>> i have a Web Server with the follow configuration:
>>
>> 4       Generic \ 512 MB \ DDR2 667 FB DIMM
>> 4       Generic \ 1024 MB \ DDR2 667 FB DIMM
>> 2       Maxtor \ 146GB:SAS:10K RPM \ Atlas 10K - SAS
>> 2       Intel \ 2.0 GHz 1333FSB - Woodcrest \ Xeon 5130 (Dual Core)
>> 1       Dell \ 9G Drive Controller - SAS/SATA RAID \ PERC 5/i
>> 1       Dell \ 1066/1333FSB Dual Xeon \ PowerEdge 1950/2950
>>
>> Redhat Enterprise Linux - x86_64 - OS ES 5.0
>>
>> I need to know if advisable or possible to use Apache with MPM Worker
>> and PHP-5.2.9 .
>>
>> Has anyone already tested/used this?
>>
>> Any aditional information is welcome.
>>
>> 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: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache with MPM Worker and PHP-5.2.9

2009-05-22 Thread Frank Gingras

Yes, that is a common configuration. But not mod_php.

Frank

Darvin Denmian wrote:

Is possible to use apache with mpm worker + fastcgi + php5-cgi ?

Thanks.

On Fri, May 22, 2009 at 4:04 PM, Frank Gingras
 wrote:
  

Darvin,

Some of the php extensions are not thread-safe, so running in this
configuration might leads to segfaults.

In short, no, don't do it.

Frank

Darvin Denmian wrote:


Hello,

i have a Web Server with the follow configuration:

4   Generic \ 512 MB \ DDR2 667 FB DIMM
4   Generic \ 1024 MB \ DDR2 667 FB DIMM
2   Maxtor \ 146GB:SAS:10K RPM \ Atlas 10K - SAS
2   Intel \ 2.0 GHz 1333FSB - Woodcrest \ Xeon 5130 (Dual Core)
1   Dell \ 9G Drive Controller - SAS/SATA RAID \ PERC 5/i
1   Dell \ 1066/1333FSB Dual Xeon \ PowerEdge 1950/2950

Redhat Enterprise Linux - x86_64 - OS ES 5.0

I need to know if advisable or possible to use Apache with MPM Worker
and PHP-5.2.9 .

Has anyone already tested/used this?

Any aditional information is welcome.

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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
 "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache with MPM Worker and PHP-5.2.9

2009-05-22 Thread Darvin Denmian
will i have any improvement of my performance using : mpm worker +
fastcgi + php5-cgi ?
and
how do I know if an extension is thread-safe?

Thanks.


On Fri, May 22, 2009 at 4:07 PM, Frank Gingras
 wrote:
> Yes, that is a common configuration. But not mod_php.
>
> Frank
>
> Darvin Denmian wrote:
>>
>> Is possible to use apache with mpm worker + fastcgi + php5-cgi ?
>>
>> Thanks.
>>
>> On Fri, May 22, 2009 at 4:04 PM, Frank Gingras
>>  wrote:
>>
>>>
>>> Darvin,
>>>
>>> Some of the php extensions are not thread-safe, so running in this
>>> configuration might leads to segfaults.
>>>
>>> In short, no, don't do it.
>>>
>>> Frank
>>>
>>> Darvin Denmian wrote:
>>>

 Hello,

 i have a Web Server with the follow configuration:

 4       Generic \ 512 MB \ DDR2 667 FB DIMM
 4       Generic \ 1024 MB \ DDR2 667 FB DIMM
 2       Maxtor \ 146GB:SAS:10K RPM \ Atlas 10K - SAS
 2       Intel \ 2.0 GHz 1333FSB - Woodcrest \ Xeon 5130 (Dual Core)
 1       Dell \ 9G Drive Controller - SAS/SATA RAID \ PERC 5/i
 1       Dell \ 1066/1333FSB Dual Xeon \ PowerEdge 1950/2950

 Redhat Enterprise Linux - x86_64 - OS ES 5.0

 I need to know if advisable or possible to use Apache with MPM Worker
 and PHP-5.2.9 .

 Has anyone already tested/used this?

 Any aditional information is welcome.

 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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>>>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache with MPM Worker and PHP-5.2.9

2009-05-22 Thread Frank Gingras

Darvin,

Using worker over prefork will allow you to serve more clients, for one. 
The immediate gain will be a lesser memory footprint. Performance gains 
or losses will largely depends on the scripts you run on your server.


As for the second question, that's more of a question for the php 
mailing lists.


Frank

Darvin Denmian wrote:

will i have any improvement of my performance using : mpm worker +
fastcgi + php5-cgi ?
and
how do I know if an extension is thread-safe?

Thanks.


On Fri, May 22, 2009 at 4:07 PM, Frank Gingras
 wrote:
  

Yes, that is a common configuration. But not mod_php.

Frank

Darvin Denmian wrote:


Is possible to use apache with mpm worker + fastcgi + php5-cgi ?

Thanks.

On Fri, May 22, 2009 at 4:04 PM, Frank Gingras
 wrote:

  

Darvin,

Some of the php extensions are not thread-safe, so running in this
configuration might leads to segfaults.

In short, no, don't do it.

Frank

Darvin Denmian wrote:



Hello,

i have a Web Server with the follow configuration:

4   Generic \ 512 MB \ DDR2 667 FB DIMM
4   Generic \ 1024 MB \ DDR2 667 FB DIMM
2   Maxtor \ 146GB:SAS:10K RPM \ Atlas 10K - SAS
2   Intel \ 2.0 GHz 1333FSB - Woodcrest \ Xeon 5130 (Dual Core)
1   Dell \ 9G Drive Controller - SAS/SATA RAID \ PERC 5/i
1   Dell \ 1066/1333FSB Dual Xeon \ PowerEdge 1950/2950

Redhat Enterprise Linux - x86_64 - OS ES 5.0

I need to know if advisable or possible to use Apache with MPM Worker
and PHP-5.2.9 .

Has anyone already tested/used this?

Any aditional information is welcome.

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: users-unsubscr...@httpd.apache.org
 "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
 "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
 "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache with MPM Worker and PHP-5.2.9

2009-05-22 Thread Darvin Denmian
Thanks for all replies.

i will try apache mpm worker + fastcgi + php-cgi .


On Fri, May 22, 2009 at 4:30 PM, Frank Gingras
 wrote:
> Darvin,
>
> Using worker over prefork will allow you to serve more clients, for one. The
> immediate gain will be a lesser memory footprint. Performance gains or
> losses will largely depends on the scripts you run on your server.
>
> As for the second question, that's more of a question for the php mailing
> lists.
>
> Frank
>
> Darvin Denmian wrote:
>>
>> will i have any improvement of my performance using : mpm worker +
>> fastcgi + php5-cgi ?
>> and
>> how do I know if an extension is thread-safe?
>>
>> Thanks.
>>
>>
>> On Fri, May 22, 2009 at 4:07 PM, Frank Gingras
>>  wrote:
>>
>>>
>>> Yes, that is a common configuration. But not mod_php.
>>>
>>> Frank
>>>
>>> Darvin Denmian wrote:
>>>

 Is possible to use apache with mpm worker + fastcgi + php5-cgi ?

 Thanks.

 On Fri, May 22, 2009 at 4:04 PM, Frank Gingras
  wrote:


>
> Darvin,
>
> Some of the php extensions are not thread-safe, so running in this
> configuration might leads to segfaults.
>
> In short, no, don't do it.
>
> Frank
>
> Darvin Denmian wrote:
>
>
>>
>> Hello,
>>
>> i have a Web Server with the follow configuration:
>>
>> 4       Generic \ 512 MB \ DDR2 667 FB DIMM
>> 4       Generic \ 1024 MB \ DDR2 667 FB DIMM
>> 2       Maxtor \ 146GB:SAS:10K RPM \ Atlas 10K - SAS
>> 2       Intel \ 2.0 GHz 1333FSB - Woodcrest \ Xeon 5130 (Dual Core)
>> 1       Dell \ 9G Drive Controller - SAS/SATA RAID \ PERC 5/i
>> 1       Dell \ 1066/1333FSB Dual Xeon \ PowerEdge 1950/2950
>>
>> Redhat Enterprise Linux - x86_64 - OS ES 5.0
>>
>> I need to know if advisable or possible to use Apache with MPM Worker
>> and PHP-5.2.9 .
>>
>> Has anyone already tested/used this?
>>
>> Any aditional information is welcome.
>>
>> 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: users-unsubscr...@httpd.apache.org
>>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>>>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
>>> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands

RE: [us...@httpd] Are apache caching modules redudant of memcached?

2009-05-22 Thread Anthony J. Biacco
You can comment them out

-Tony
---
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abia...@formatdynamics.com
http://www.formatdynamics.com


> -Original Message-
> From: palewire [mailto:ben.we...@gmail.com]
> Sent: Friday, May 22, 2009 12:52 PM
> To: users@httpd.apache.org
> Subject: [us...@httpd] Are apache caching modules redudant of
> memcached?
> 
> 
> In an attempt to address the lsof problem we flagged in this thread --
> http://is.gd/CqD0 -- I've been rifling through my httpd.conf looking
> for
> unnecessary modules I can trim out of my httpd processes.
> 
> So far this has basically amounted to me eliminating things like
> mod_cgi,
> mod_vhost_alias, mod_speling and other Modules provided by my host by
> default, but which don't seem necessary to my Django application site.
> 
> As I review the modules, I see a series of modules relating to
caching.
> They
> are:
> 
> LoadModule cache_module modules/mod_cache.so
> LoadModule disk_cache_module modules/mod_disk_cache.so
> LoadModule file_cache_module modules/mod_file_cache.so
> LoadModule mem_cache_module modules/mod_mem_cache.so
> 
> The site I am operating is using a memory caching system provided by
> the
> memcached application. I'm curious whether memcached is redudant to
> these
> Apache processes, or dependent on them.
> 
> In other words, is it safe for me to comment them out?
> 
> Thanks in advance. I really appreciate the kind expertise available
> here in
> the listserv.
> 
> Ben.
> --
> View this message in context:
http://www.nabble.com/Are-apache-caching-
> modules-redudant-of-memcached--tp23676109p23676109.html
> Sent from the Apache HTTP Server - Users mailing list archive at
> Nabble.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: users-unsubscr...@httpd.apache.org
>"   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Are apache caching modules redudant of memcached?

2009-05-22 Thread Ben Welsh
Tony --

Thank you for your time and advice. I've gone ahead and commented out the
modules, and haven't encountered any problems so far.

I'm also wondering how many of the authorization modules are necessary --
considering I have Django doing a lot of that through the DB. But that might
be another thread ... =)

Ben.

On Fri, May 22, 2009 at 1:32 PM, Anthony J. Biacco <
abia...@formatdynamics.com> wrote:

> You can comment them out
>
> -Tony
> ---
> Manager, IT Operations
> Format Dynamics, Inc.
> 303-573-1800x27
> abia...@formatdynamics.com
> http://www.formatdynamics.com
>
>
> > -Original Message-
> > From: palewire [mailto:ben.we...@gmail.com]
> > Sent: Friday, May 22, 2009 12:52 PM
> > To: users@httpd.apache.org
> > Subject: [us...@httpd] Are apache caching modules redudant of
> > memcached?
> >
> >
> > In an attempt to address the lsof problem we flagged in this thread --
> > http://is.gd/CqD0 -- I've been rifling through my httpd.conf looking
> > for
> > unnecessary modules I can trim out of my httpd processes.
> >
> > So far this has basically amounted to me eliminating things like
> > mod_cgi,
> > mod_vhost_alias, mod_speling and other Modules provided by my host by
> > default, but which don't seem necessary to my Django application site.
> >
> > As I review the modules, I see a series of modules relating to
> caching.
> > They
> > are:
> >
> > LoadModule cache_module modules/mod_cache.so
> > LoadModule disk_cache_module modules/mod_disk_cache.so
> > LoadModule file_cache_module modules/mod_file_cache.so
> > LoadModule mem_cache_module modules/mod_mem_cache.so
> >
> > The site I am operating is using a memory caching system provided by
> > the
> > memcached application. I'm curious whether memcached is redudant to
> > these
> > Apache processes, or dependent on them.
> >
> > In other words, is it safe for me to comment them out?
> >
> > Thanks in advance. I really appreciate the kind expertise available
> > here in
> > the listserv.
> >
> > Ben.
> > --
> > View this message in context:
> http://www.nabble.com/Are-apache-caching-
> > modules-redudant-of-memcached--tp23676109p23676109.html
> > Sent from the Apache HTTP Server - Users mailing list archive at
> > Nabble.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: users-unsubscr...@httpd.apache.org
> >"   from the digest: users-digest-unsubscr...@httpd.apache.org
> > For additional commands, e-mail: users-h...@httpd.apache.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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [us...@httpd] How I configure Reverse Proxy using ??

2009-05-22 Thread Eric Covener
On Fri, May 22, 2009 at 2:02 PM, ricardo13  wrote:
>
> Hi,
>
> I configured reverse proxy using directives ProxyPass, ProxyPassReverse,
> Now, I would like to configure Reverse Proxy using 
> How I do it ??

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass

| When used inside a  section, the first argument is omitted
and the local directory is obtained from the .

There's nothing more elaborate than that.

-- 
Eric Covener
cove...@gmail.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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] What is the best way to handle "too many open files" errors?

2009-05-22 Thread Ben Welsh
I just had something of a "slap your forehead" moment on this one. It had be
eating me about where all those extra lsof processes came from. And then it
hit me. It's the "developer tools" kit from CentOS. Duh.

http://www.linuxtopia.org/online_books/centos_linux_guides/centos_linux_developer_tools_guide/

Any tips for the smartest way to pull it apart after the fact?

On Thu, May 21, 2009 at 5:55 PM, Sean Conner  wrote:

> It was thus said that the Great Mick Sheppard once stated:
> > Hi,
> >
> > Just to throw a slight spanner in the works here. My understanding of
> > 'open files' is open file descriptors. As far as a file descriptor is
> > concerned there is no real difference between a physical file on disk
> > and a socket (network connection). So eliminating physical files, whilst
> > it might get you a little more headroom, is unlikely to solve the
> > problem.
>
>   Yes and no.  Yes, sockets are considered "opened files" and do count
> against the open file limit, that limit is *per process*, not *system
> wide*.
> I just checked one of our main web servers (serving up a few hundred sites)
> and found only three active sockets per process:
>
>1. the listening socket on port 80, waiting for a connection
>2. the listening socket on port 443, waiting for a connection
>3. an actual connection to a client
>
>  The main root process only has the first two sockets open.  If you have
> Apache configured to have at a minimum 30 spare servers, no one Apache
> process will have 30 sockets open---sockets just don't work that way.  What
> it does mean is you have at least 31 apache processes running, one as root
> (to bind to the proper ports [1]) and 30 ready to service a request, so at
> most, any Apache process will have one socket per Listen statement, and one
> socket only when actually processing a request.
>
>  So, for example, let's say you have the following Apache configuration:
>
> Listen  *:80
> StartServers 100
> MinSpareServers  100
> MaxSpareServers  900
> ServerLimit 1000
> MaxClients  1000
> MaxRequestsPerChild 4000
> CustomLog   access_log
> ErrorLogerror_log
>
> All your apache processes would have only seven files open (eight if
> serving
> a request), and they would look something like:
>
>0   -> /dev/null(STDIN)
>1   -> /dev/null(STDOUT)
>2   -> error_log(STDERR)
>3   -> listening socket
>4   -> pipe (for CGI communications)
>5   -> pipe (for CGI communications)
>6   -> error_log
>7   -> access_log
>
>  The real concern are log files, not the number of connections in the
> Apache configuration.  The only way the number of connections might be a
> consideration is if you are using the threading MPM, where each thread (in
> a
> single process) gets a connection.
>
> > Remember that as you add connectivity to databases that this will
> > increase the number of sockets, and therefore open files, used for each
> > page served.
>
>   True, but you really need to look at this at the process level.
>
>  -spc
>
> -
> 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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>