mod_disk_cache: htcacheclean and rm -rf

2008-12-16 Thread Vincent Reydet
Hi, I'm using apache 2.2.9 and mod_disk_cache on linux. Is it safe to launch the command "rm -rf /my_cache_dir/*" while apache is running ? I'm currently using this command instead : htcacheclean -l1 -p/ my_cache_dir but it is very slow ( more than 1 hour in my case :( ) and not suitable

apache selinux issue

2008-12-16 Thread Peter
Hello, My cgi script cannot run when selinux is enabled, it works fine when selinux is disabled. I have tried the following command in cgi directory find . -name *.* -exec chcon -t httpd_sys_script_exec_t {} \; My cgi script will still generate the following error: type=AVC msg=audit(1229327

Re: apache ssi & php in same file extensions

2008-12-16 Thread monkey
(thank you for everyone on the clarification on subject headings). Yes, Eric; as of now I am able to get apache to parse .html and .php extensions and work with apache includes. I am also able to get apache to parse .html and .php extensions for php. What I cannot do is get both .html and

Re: apache ssi & php in same file extensions

2008-12-16 Thread Nick Kew
monkey wrote: (thank you for everyone on the clarification on subject headings). Yes, Eric; as of now I am able to get apache to parse .html and .php extensions and work with apache includes. That's simple. Use AddHandler to enable PHP, and either SetOutputFilter or FilterProvider/FilterC

Re: apache ssi & php in same file extensions

2008-12-16 Thread monkey
Nick Kew webthing.com> writes: > > monkey wrote: > > (thank you for everyone on the clarification > > on subject headings). > > > > > > Yes, Eric; as of now I am able to get apache to > > parse .html and .php extensions > > and work with apache includes. > > That's simple. Use AddHandler

Re: apache

2008-12-16 Thread Paul Herring
On Mon, Dec 15, 2008 at 11:46 PM, Evan Platt wrote: > Jonesy wrote: >> >> Yes, one should always use the tried and true Subject: help!!! :-) > > Or.. > URGENT! > or > ASSISTANCE REQUIRED! > or > I have a question. > > Those are always good :) Or bypass the need to choose among them altogether by

Re: htcacheclean ignoring -l (limit)?

2008-12-16 Thread Morgan Gangwere
[snip] Could be that something is taking up more space and its not being caught. Either that or the -l says the maximum size for 1 file. Have you RTFM'd? -- Morgan Gangwere Unknown Software http://sonof.bandit.name/ Member, INCOSE [ incose.org ] PACA [ paca.org ] and NMUG [ nmug.net ] [indr

Re: htcacheclean ignoring -l (limit)?

2008-12-16 Thread Matthew Tice
On Tue, Dec 16, 2008 at 10:09 AM, Morgan Gangwere <0.fracta...@gmail.com>wrote: > [snip] > > Could be that something is taking up more space and its not being caught. > Either that or the -l says the maximum size for 1 file. Have you RTFM'd? > > Oh yeah, I've read the man page, http://httpd.apache

Odd errors to Firefox2, IE6/7, Chrome w/Apache+SSL-1.3.41/1.59

2008-12-16 Thread Dayne Jordan
Recently installed FreeBSD-7.1 with the www/apache13-ssl/ port which contains Apache 1.3.41 + 1.59 SSL. Website(s) previously on Apache-1.3.37 + 1.57 SSL FreeBSD-6.4 machine, PHP 5.2.8. We're seeing very strange random browser oddities when doing POSTs via SSL, resulting in either a blank page or

How do I know that caching is working?

2008-12-16 Thread Russell Bell
I apologize for asking a naive question. I looked in the FAQ and searched the mailing list and google. I installed a flash drive large enough to hold all the static content of my website. I built Apache (2.0.63) with the cache, file_cache, disk_cache, and mem_cache modules installed; ht

Re: htcacheclean ignoring -l (limit)?

2008-12-16 Thread Morgan Gangwere
Matthew Tice wrote: On Tue, Dec 16, 2008 at 10:09 AM, Morgan Gangwere <0.fracta...@gmail.com > wrote: [snip] Could be that something is taking up more space and its not being caught. Either that or the -l says the maximum size for 1 file. Have y

Re: How do I know that caching is working?

2008-12-16 Thread Dan Poirier
"Russell Bell" writes: > I installed a flash drive large enough to hold all the static > content of my website. I built Apache (2.0.63) with the cache, > file_cache, disk_cache, and mem_cache modules installed; > httpd -l so reports. > I configured httpd.conf to enable disk caching for

Re: mod_disk_cache: htcacheclean and rm -rf

2008-12-16 Thread Dan Poirier
Vincent Reydet writes: > I'm using apache 2.2.9 and mod_disk_cache on linux. > > Is it safe to launch the command "rm -rf /my_cache_dir/*" while apache > is running ? I don't think that will hurt anything. You'll just start getting cache misses, as if you were starting from scratch, until the ca

Re: htcacheclean ignoring -l (limit)?

2008-12-16 Thread Dan Poirier
Have you tried -t? It looks like htcacheclean just counts the sizes of the files, but if you have a lot of empty directories, that might be taking up some space too. -t looks like it would clean that up. -- Dan Poirier - To u

RE: syntax error

2008-12-16 Thread James Taylor-Bye
Thanks for your reply, yet it doesn't seem to be working still. I'm gunna cry!!! lol -Original Message- From: Brian Mearns [mailto:mearn...@gmail.com] Sent: 15 December 2008 20:06 To: users@httpd.apache.org Subject: Re: syntax error Just off the top of my head, try changing the Listen d

Re: apache selinux issue

2008-12-16 Thread Peter
Hello, After some changes, Now I got the error of denified "execstack". What does it mean and how to resolve this problem? type=AVC msg=audit(1229467576.959:43057): avc: denied { execstack } for pid=13652 comm="myprogram.cgi" scontext=root:system_r:httpd_sys_script_t:s0 tcontext=root:system_

Re: unsubscribe

2008-12-16 Thread Evan Platt
Arkadiy and Marina Vertleyb wrote: Did you REALLY need to quote 74kb of text to write absolutely nothing, ignoring the last line of every e-mail from this list: To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org --

Re: syntax error

2008-12-16 Thread Evan Platt
James Taylor-Bye wrote: Thanks for your reply, yet it doesn't seem to be working still. I'm gunna cry!!! lol Please people, trim your replies, especially when replying to a message with 200+ lines Thanks. - To unsub

Dummy vhost for intruders - comments please

2008-12-16 Thread Peter Horn
I don't think this is quite off-topic, just a bit left of centre. :-\ I run a small site with two subdomains of no-ip.org (like dyndns) using NameVirtualHost. Looking at the access log, a few percent of my traffic was from bots like Morfeus F***ing Scanner [my censorship], intrusion attempts (e

Re: mod_disk_cache: htcacheclean and rm -rf

2008-12-16 Thread Vincent Reydet
But if mod_cache starts to read a file, and rm erase this file at this moment, a bad content is sent to the client ? It would happen on a big website no ? Le 16 déc. 08 à 21:50, Dan Poirier a écrit : Vincent Reydet writes: I'm using apache 2.2.9 and mod_disk_cache on linux. Is it safe to

Re: mod_disk_cache: htcacheclean and rm -rf

2008-12-16 Thread Dan Poirier
Vincent Reydet writes: > But if mod_cache starts to read a file, and rm erase this file at this > moment, a bad content is sent to the client ? > It would happen on a big website no ? That's not a problem on Unix. If mod_cache has the file open, the content won't go away until the file is close

Re: htcacheclean ignoring -l (limit)?

2008-12-16 Thread Matthew Tice
Exactly what have you done to start the daemon? have you nohup'd it? are you using an INIT script? > > It appears that you'd have to run > nohup htcacheclean -d5 -r -l700M -i > or some such > > There IS an option that you can do. you can do this: > add to your crontab a command to change out your

Re: htcacheclean ignoring -l (limit)?

2008-12-16 Thread Matthew Tice
On Tue, Dec 16, 2008 at 2:01 PM, Dan Poirier wrote: > Have you tried -t? It looks like htcacheclean just counts the sizes of > the files, but if you have a lot of empty directories, that might be > taking up some space too. -t looks like it would clean that up. > I thought so too - I tried -t

Re: htcacheclean ignoring -l (limit)?

2008-12-16 Thread Morgan Gangwere
Matthew Tice wrote: Statistics: size limit 750.0M total size was 705.3M, total size now 705.3M total entries was 105415, total entries now 105415 # df -h /www/cache FilesystemSize Used Avail Use% Mounted on tmpfs 1.2G 1.2G 69M 95% /www/cache Try setting your c

Common mod_rewrite rule for simple dynamic to static URL rewrite

2008-12-16 Thread meharo
Can we have a rule to convert _http://www.mydomain.com/path/to/myfile.jsp?ARG1=VAL1&ARG2=VAL2&&ARGN=VALN into _http://www.mydomain.com/path/to/myfile/ARG1-VAL1/ARG2-VAL2//ARGN-VALN.html -- View this message in context: http://www.nabble.com/Common-mod_rewrite-rule-for-simple-dynami

apache SetEnv with selinux

2008-12-16 Thread Peter
Hello, in apache httpd.conf file, I set the LD_LIBRARY_PATH pointing to my run time lib, SetEnv LD_LIBRARY_PATH /my/dir if selinux is enforced, LD_LIBRARY_PATH settings won't work. I cannot find any error messages in apache, /var/log/messages and audit.log. After disable selinux, it looks tha

Re: mod_disk_cache: htcacheclean and rm -rf

2008-12-16 Thread Vincent Reydet
ok thanks ! Le 17 déc. 08 à 00:22, Dan Poirier a écrit : Vincent Reydet writes: But if mod_cache starts to read a file, and rm erase this file at this moment, a bad content is sent to the client ? It would happen on a big website no ? That's not a problem on Unix. If mod_cache has the f