My Code book
Php, Ruby on Rails, Wordpress, Facebook Apps, Twitter Apps, Python, Django, MYSQL, Scripts and Soluations

Nov
10

Just use following commands
[root@localhost purab]# yum install openssl
[root@localhost purab]# yum install openssl-devel
[root@localhost purab]# yum install mod_ssl

This will start apache server.
[root@localhost purab]# /etc/init.d/httpd restart

Nov
09

This error is due to “phpize” command not available on your server.

To fix, install php-devel package.

If your server have yum (Eg: Fedora)

[root@localhost purab]# phpize
bash: phpize: command not found
[root@localhost purab]# yum -y install php-devel

[root@localhost purab]# phpize
Cannot find config.m4.
Make sure that you run ‘/usr/bin/phpize’ in the top level source directory of the module

[root@localhost purab]#
How to install the eaccelerator on fedora9?
use follwoing command

[root@localhost purab]# yum install php-eaccelerator

Nov
09

Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other HTTP accelerators, many of which began life as client-side proxies or origin servers, Varnish was designed from the ground up as an HTTP accelerator.

Use following command:
[root@localhost purab]# su
[root@localhost purab]# yum install varnish
ncurses are needed for textual “graphical” configuration.
[root@localhost purab]# yum install ncurses-devel

Edit the setting of varnish
[root@localhost purab]# vim /etc/varnish/default.vcl

Start the varnish.
[root@localhost varnish]# /etc/init.d/varnish start

on startup set varnish on
[root@localhost varnish]# /sbin/chkconfig varnish on

Nov
06

Aftter doning some R&D I found some flowchart and open source graphics softwares.
I installed on my Fedora9. Gimp is like photoshop but I do not find that as good as Photoshop.

1. inkscape
Features: An Open Source vector graphics editor, with capabilities similar to Illustrator, CorelDraw,
or Xara X, using the W3C standard Scalable Vector Graphics (SVG) file format.
Installation command
[root@localhost purab]# yum install inkscape
Site Url: http://www.inkscape.org/index.php

2. Dia
Features:Dia is a program for creating diagrams of all kinds. It can create many types of diagrams, including UML, network and flowchart diagrams. The engine is very flexible and dynamically loads diagram-types from disk. Dia can also print diagrams and export tham to a number pf formats including EPS, SVG, and PNG
Installation command
[root@localhost purab]# yum install dia
Site Url:http://live.gnome.org/Dia

Nov
04

The hosts file is a computer file used by an operating system to map hostnames to IP addresses.
On many operating systems, the host file content is used preferentially over other methods,
such as the Domain Name System (DNS). Unlike DNS, the hosts file is under the control of the local computer’s administrator

Locate the file “Hosts” on your computer:
Windows
Windows 95/98/Me c:\windows\hosts
Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts
Windows XP Home c:\windows\system32\drivers\etc\hosts

Linux
/etc/hosts or /etc/host.conf or /etc/nsswitch.conf

Symbian
C:\system\data\hosts

Mac OS
/private/etc/hosts or /etc/hosts

In that file you can edit entry like this

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost yourlocaldomain.com , example.com
::1 localhost6.localdomain6 localhost6
192.168.2.200 intranet

directory.example.com 71.155.186.91