Tag Archives: apache

My debian days…

I had dedicated few days of past few weeks for Debian in search of stable, secure and reliable solutions.  With Debian, I ended up finding robust solutions for lots of questions which we had while setting up LAN resources. Debian net install CD which weighed around 160MB was more than enough to get started. I [...]

Redirect HTTP request to HTTPS

To redirect http requests to https on your Apache web server use .htaccess and add the following rewrite rules. RewriteEngine On RewriteCond     %{SERVER_PORT} ^80$ RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] You can also add it inside the virtual host entry of the domain for which you need this redirect.

Apache: Segmentation Fault $HTTPD -k $ARGV

Hit with segfault while restarting apache? Segmentation Fault $HTTPD -k $ARGV Check if any one recompiled apache and other modules recently. If yes, try recompiling Apache or the module in question once again. See if there is any other error while compiling which might lead you to the root cause. Also check if there is [...]

Speed up website: Set HTTP Expires header

When I see my website loading very slow, I get irritated as I want that to load fast on any type of Internet connection. Because, I’m trying to reach out to all… Step by Step take action on website optimization and speed up your website. All it takes is the hacking mentality which lets you [...]

Turn Off su_PHP

In my previous blog post : suPHP, mod_php and phpsuexec I told you why we use su_PHP on Cpanel servers and what are the benefits etc.Now, If you find a reason for disabling for an annoying customer on one of your servers, what you do? Simple, just add the following line into VirtualHost entry of [...]

semget: No space left on device

Unable to restart apache successfully. Frist, check error logs: tail -f /usr/local/apache/log/error_log If you find something like : [Fri Oct 10 00:11:01 2008] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run? semget: No space left on device It means, There is no more space left in Semaphore Arrays for Apache. Read [...]