Archive for the Apache Category

1and1.com error “300 Multiple Choices”

Lately I bought hosting from 1and1.com since Dreamhost has been having lot of downtime. In short, experience with 1and1.com has been an awkward till date and I have already requested them to cancel my account under there refund policy. However,while writing .htaccess rules I faced many issues. On

Read Full Post

5 commonly used url rewriting examples using .htaccess

URL rewriting using .htaccess is pretty common today. Most of the frameworks like WordPress, CodeIgniter,cakePHP etc. provide their own URL rewriting techniques. However, there is always a necessity to beautify the URLs using .htaccess when you are using any of the framework. Without talking abou

Read Full Post

Add PHP GD support to apache in Ubuntu Linux

PHP GD library is used to created images on the fly. This library is not installed or activated by default when you first install Apache on Linux. But GD library is used widely while developing websites. For eg. if you want to create a captcha image for a registration form, then you are going to use

Read Full Post

List all loaded modules in Apache

In this post, I will show you how to check what all modules are loaded on your Apache server, then you can use the following command. Open the terminal and type the following command. apache2ctl –M httpd –M In my case httpd worked for Centos (.rpm supported system) and apache2ctl worked

Read Full Post

How to install solr PECL extension for PHP

Lately, I have been working a lot with Solr. From setting up it on server using Tomcat, to creating its indexes, everything. I found that installing PECL extension for was bit challenging since it was not just about apt-get. In fact, the complete setup sometimes becomes tedious job if not handled

Read Full Post

Installing Apache2 and PHP5 on Ubuntu

In this post we will learn how you can install Apache2 server and PHP5 on Ubuntu. Undoubtedly, Apache2 is the most famous webserver and along with PHP, these both become the best recipes to cook pretty neat websites. Oh ! Was that too much cooking, eh ? Sigh ! let’s not get more into and comin

Read Full Post

How to restart Apache server from shell

Hey Folks,   You need to restart your Apache server when you change settings in php.in, httpd.conf  or some other config file. You need to restart the server because the changes which you made will only effect after the restart. To restart your server, simply type the following comman

Read Full Post

Change default php.ini values using .htaccess

Hey Folks,   As you might be knowing that php.ini is the configuration file for the PHP and resides at the server. It contains all the options/settings for the PHP language. There are instances you need to change these options. In local environment you can change these settings very easily b

Read Full Post

Prefix www to your domain using htaccess

First of all you need to know why you even want to prefix www in front of your domain. Well to explain in short, search engines treat http://www.digimantra.com/tools/twitter/ and http://digimantra.com/tools/twitter/ differently. Notice the difference is just of www. But  if you have these two URLs

Read Full Post

Advanced htaccess for more than 10 group of backtrack references

You  might have faced error where .htaccess wont recognize the backtrack variable after $9 such that if you specify "$10" then it will return you "0" as value to that key in URL param. The mod_rewrite module is confused which varible to return $1 or $o. Lets see the problem first, Problem : R

Read Full Post

Using .htaccess for day to day work | Part 2

This .htaccess is continuation to my previous blog post(Using .htaccess for day to day work), which recorded a lot more hits than expected. I would enlist some other tricks/function we can achieve using this magic .htaccess file. For those who are reading this tutorial for the first time or are new

Read Full Post

Using .htaccess for day to day work

.htaccess is a word which every developer has heard. But they skip it because some think its too hard to understand. But I am sure nothing is hard for a good programmer. Well .htaccess is a file which is used to define behaviour of your directories and server request to those directories or files. T

Read Full Post

Get Adobe Flash playerPlugin by wpburn.com wordpress themes