Browsing articles tagged with "apache2 - 4/114 - Admins Goodies"
Dec 17, 2012
tom

Handle php out of memory error

I have a Drupal based web site on a relative small vserver (512MB RAM). Recently the website begins to return php out of memory messages like this: Fatal error: Out of memory (allocated 17039360) (tried to allocate 77824 bytes) in /home/… All php.ini memory limit parameters are set to off (-1). Propably the website has gained of complexity, content, etc. But I cannot interpret fine that message: Does that mean that the whole request has [...]

Continue Reading »
Dec 16, 2012
tom

Apache2 default vhost in alphabetical order or override with _default_ vhost?

I’ve got multiple named vhosts on an Apache web server (CentOS 5, Apache 2.2.3). Each vhost has their own config file in /etc/httpd/vhosts.d and these vhost config files are included from the main httpd conf with… Include vhosts.d/*.conf Here’s an example of one of the vhost confs… NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain.biz ServerAlias domain.biz www.domain.biz DocumentRoot /var/www/www.domain.biz <Directory /var/www/www.domain.biz> Options +FollowSymLinks Order Allow,Deny Allow from all </Directory> CustomLog /var/log/httpd/www.domain.biz_access.log combined ErrorLog /var/log/httpd/www.domain.biz_error.log </VirtualHost> Now [...]

Continue Reading »
Dec 15, 2012
tom

Debian webserver unreachable for about 10 minutes repeatedly, yet it still pings.

I have one server running Debian 6.0.5 with the problem I can not fix for a few days. Everything is ok if I have running ssh console or “ping -t “. When it has been stopped everything is ok in around 10 minutes. After that we’re loosing our access by web. But if I will reload the page from 4 to 7 times everything coming back. While it’s happends this server can ping anything and [...]

Continue Reading »
Dec 15, 2012
tom

What are the possible problems, when wget returns code 500 but same request works in normal browsers?

What should I be looking for, when wget returns 500 but the same URL works fine in my web browser? I don’t see any access_log entries that seem to be related to the error. DEBUG output created by Wget 1.14 on linux-gnu. <SSL negotiation info stripped out>—request begin— GET /survey/de/tools/clear-caches/password/<some-token> HTTP/1.1 User-Agent: Wget/1.14 (linux-gnu) Accept: */* Host: testing.thesurveylab.net Connection: Keep-Alive—request end— HTTP request sent, awaiting response… —response begin— HTTP/1.0 500 Internal Server Error Date: Wed, [...]

Continue Reading »
Dec 14, 2012
tom

htaccess Block access to directory with two exceptions

I can’t figure out how to write an .htaccess file which blocks all access to a directory except for reading html files, which sould be allowed and php-files which require athentication. Denying all access and allowing html works fine but asking for a password for php-files doesn’t. Here is what I came up with: <FilesMatch “.*\.php$”> AuthName “Test area” AuthUserFile /var/www/.htpasswd AuthType Basic require valid-user </FilesMatch><FilesMatch “\.html?$”> Order Allow,Deny Allow from All </FilesMatch>order Allow,Deny Deny [...]

Continue Reading »
Dec 14, 2012
tom

Apache strace to hunt down a memory leak

We have a server with a memory issue: the server keeps allocating itself memory and doesn’t release it. We’re running Apache. I set MaxReqsPerClient to a really low value just so the threads don’t hold a lot of memory, but has anyone seen calls like this? Am I wrong in thinking that it’s probably Drupal pulling too much data back from the cache in DB? read(52, “h_index\”;a:2:{s:6:\”weight\”;i:1;s”…, 6171) = 1368 read(52, “\”;a:2:{s:6:\”author\”;a:3:{s:5:\”la”…, 4803) = 1368 [...]

Continue Reading »
Dec 11, 2012
tom

Disable .htaccess from apache allowoverride none, still reads .htaccess files

I have moved all of our .htaccess config into <Directory> blocks and set AllowOverride None in the default and default-ssl. Although after restarting apache it is still reading the .htaccess files. How can I completely turn off reading these files? Update of all files with “AllowOverride” /etc/apache2/mods-available/userdir.conf <IfModule mod_userdir.c> UserDir public_html UserDir disabled root <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Order allow,deny Allow from all [...]

Continue Reading »
Dec 8, 2012
tom

Redirect websockets to port?

So, I’ve got a WebSocket server in C++, that is a completely stand-alone entity – handles header parsing, receiving, sending, all of it on its own, listening directly to the port. Problem is, it needs to run on a server alongside Apache, and that’s a bit of a problem. Now, there was a solution here to a similar issue involving mod_proxy, but I’m hoping I can intercept and redirect WebSocket communication before Apache even knows [...]

Continue Reading »
Dec 5, 2012
tom

Multiple subdomains, SSL on only one using port 80

I am running a Apache2 server with three subdomains defined in separate files in /etc/apache2/sites-available I need ONE of those subdomains to be SSL-secured on port 80 for an application to work. Port 80 is required due to circumstances out of my control. The other subdomains are also on port 80. Now, when all subdomains are enabled in Apache the SSL-subdomain is NOT running SSL. If I disable the other subdomains SSL on the SSL-subdomain [...]

Continue Reading »
Dec 3, 2012
tom

trying to allow domain admins access in apache

I am trying to authenticate domain admins through apache and it is not working. Error i get is as follows [Mon Sep 24 14:54:45 2012] [debug] src/mod_auth_kerb.c(1432): [client 172.16.0.85] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos [Mon Sep 24 14:54:45 2012] [debug] src/mod_auth_kerb.c(915): [client 172.16.0.85] Using HTTP/intranet.xxx.com@xxx.COM as server principal for password verification [Mon Sep 24 14:54:45 2012] [debug] src/mod_auth_kerb.c(655): [client 172.16.0.85] Trying to get TGT for user sharifu@xxx.COM [Mon Sep 24 14:54:45 2012] [...]

Continue Reading »
Pages:«1234567...114»