93 reputation
11
bio website
location Munich, Germany
age
visits member for 2 years, 9 months
seen Aug 8 at 11:53

May
4
comment Emails from web site sometimes blank or gibberish
I encountered (and still encounter) the same problem - no matter if using mail() directly or PHPmailer. About 1 in 1000 mail adresses receives a seemingly empty email (but only one, not another...). Actually, the source code of the mail is still contained, but the MIME structure was changed, making the content invisible in mail clients. My best guess is that some process on the mail's way reads the structure wrong and creates a new structure. Although, there is no systematical correlation with the receiving mail server, mail client, the mail's content or such...
Aug
17
comment gallery2 and nginx with rewrite return file not found for file name with space (or + sign in url)
Please note that a space is (correctly) replaced by a plus (+) in the form data if a specific encoding is chosen (stackoverflow.com/questions/2678551/…). In URLs the correct encoding is %20. The latter is replaced by a space before the nginx rewrite engine is applied. Try this: Replace a space by %20 during rewriting the URL.
Aug
15
comment Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down
Ah - got it. I thought, you'd refered to the apache setting MaxRequestsPerProcess, not the fcgid setting FcgidMaxRequestsPerProcess... I'll still have to be careful, as most requests want PHP scripts (images are well cached), but I shall give this a try. Thanks!
Aug
14
comment Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down
I do not use non-default packages/modules in PHP and I hope, that the default packages have few memory leaks. However, you never know... Now I understand the issue of leaks and deadloops much better. Thank you very much for the explanation.
Aug
14
comment Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down
I am afraid, my understanding of memory leaks if limited. As I working with PHP, I have put a memory limit (128 M) n each script. Only in rare occasions, a script will actually need this limit. However, if the limit is exceeded or the script hangs in a deadloop, I usually see a "memory exceeded" or "execution time exceeded" error in my PHP logs. But those I once had, have long been bugfixes - there have not been such errors for a while. So: Am I really looking for memory leaks and deadlocks?
Aug
14
comment Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down
Could be go further regarding the 1000 requests before killing the worker process? In my understanding, it takes some time to start the process, so a higher value should be more efficient (given everything works). If I set the value to 50, that would just be enough to server the homepage 10 times (1 HTML + 4 images). Having about 30 requests per second, wouldn't the server spend a lot of time on starting new processes?
Aug
14
comment Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down
Thanks for your answer. It's a pity that I was not yet able to log in during such a "fail" as they are quite rare and only few minutes. However, munin did not record atypical system values (e.g. disk latency or load) for the relevant time frames. According to memory use, no more than 3 or 4 processes have been started - so there should be more than enough buffer...
Aug
14
comment Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down
Thread safety should not be an issue when working with CGI (fcgid) instead of the apache PHP module.
Aug
13
comment Apache mpm-worker + mod_fcgid + php5_cgi partially and sporadically down
Good point - added version to the question.
Jul
29
comment Conflict with 3 different RewriteRules in .htaccess?
Have you considered actually redirecting the clients instead of rewriting the filenames internally? Depending on what the user shall see, this might be sensible.
Jul
29
comment .htaccess redirect all extension to php
Du you actually want to redirect the .html etc. extensions the the files without extension or do you want to rewrite the file names internally? I do not see a redirect in you code?!
Jul
14
comment How to find out the current setting for FcgidMaxProcesses on Apache?
Hi! Thanks for the additional tips - I think double sure is enough :)
Jul
13
comment How to find out the current setting for FcgidMaxProcesses on Apache?
mod_info is a good hint, thanks! But, as I set no configuration for the setting, this module won't tell me anything new. Is there any way to confirm the compile-time default?
Jun
14
comment Tell Apache to create error.log/access.log as different user
Hmm - good point. Thanks for this advice! It seems the problem was due to the fact that the logging-script belonged to the wrong user! After giving it to root as well, everything works :)
Oct
22
comment Disabling the shell of user “daemon” (/bin/false)
Hi! /etc/shadow is a good point - all users are disabled (*) for login, so they won't actually need a shell. Or will they? unix.stackexchange.com/questions/28888/… mentions in the other answer sais that cronjobs need the shell as well.
Oct
22
comment Disabling the shell of user “daemon” (/bin/false)
Sorry I forgot that important point. It is a Debian Squeeze distribution. I do not exactly know the installation settings because I got it pre-installed in a VPS from an image. However it was something like a minimal setup beacuse most programs (incl. vim) were not included in the image. Thanks for the links!
Oct
20
comment Configure Courier-pop without home directories
Good advice, thanks. I could solve the same problem with dovecot in few minutes :)
Apr
26
comment Apache2 on linux - how to track down performance trouble
It does not yet solve the problem ... but enabling the Apache mod mod_mem_cache with 10 MB of memory cache for the images could reduce the response times to about one quarter.
Apr
26
comment Apache2 on linux - how to track down performance trouble
Seems you hit the point! Listing a directory with 20 files (which usually takes <20ms) just took 1, 2, or 5 seconds (randomly). I would never have thought about that...
Apr
26
comment Apache2 on linux - how to track down performance trouble
About th modules: core, log_config, logio, mpm_prefork, http, so, alias, auth_basic, authn_file, authz_default, authz_groupfile, authz_host, authz_user, cgi, deflate, dir, env, include, mime, negotiation, php5, python, reqtimeout, rewrite, setenvif, ssl, status, suexec -- it seems I should check for unrequired modules...