Fantastico Buggy version of wget.

April 30, 2008 on 8:38 am | In Cpanel | No Comments

If you get such an issue, you need to install the stable version of wget.

If it is wget-1.10.2-3.3.fc5 or wget-1.10.2-7.el5 or wget-1.10.2-8.fc6.1, you need to replace it with an older and/or stabler version.

This is easy,
A version we suggest is wget-1.10.2-3.2.1

For 32-bit:

rpm -qa wget
wget http://mirrors.kernel.org/fedora/core/5/i386/os/
Fedora/RPMS/wget-1.10.2-3.2.1.i386.rpm
rpm -e wget
rpm -ivh –force wget-1.10.2-3.2.1.i386.rpm
rpm -qa wget

For 64-bit:

rpm -qa wget
wget http://download.fedora.redhat.com/pub/fedora/linux/releases/7/
Everything/x86_64/os/Fedora/wget-1.10.2-15.fc7.x86_64.rpm
rpm -e wget
rpm -ivh –force wget-1.10.2-15.fc7.x86_64.rpm
rpm -qa wget

only root can do this

You will also want to put wget* on /etc/yum.conf exclude= line so the OS doesn’t automatically reinstall the buggy version.

How to install Python in linux server

April 29, 2008 on 2:38 pm | In Installation, Python | No Comments

Easy…..

cd /usr/local/src
wget http://www.python.org/ftp/python/2.5/Python-2.5.tgz
tar -zxvf Python-2.5.tgz
make
make install

How to install Mod_Python in Linux server

April 29, 2008 on 2:35 pm | In Installation, Python | 2 Comments

Both instruction for Apache 1.x and Apache 2.x are given below.

First, you need to check what version of Python you are running.

python -V

If you are running Apache 1.3.x, you should use mod_python version 2.7.11 and for Apache 2.2.x, use 3.3.1.

Python with version 2.1.x greater than are only supported
latest is to use Python2.5.5

The step are for Apache 1.3.x. However, for Apache 2.1.x download mod_python 3.3.1 and follow the same steps

cd /usr/local/src
wget http://www.trieuvan.com/apache/httpd/modpython/mod_python-2.7.11.tgz
tar -xvzf mod_python-2.7.11.tgz
cd mod_python-2.7.11

./configure –with-apxs=/usr/local/apache/bin/apxs –with-python=/usr/local/bin/python

The –with-python path should reflect the location of the python binary

If you are on Apache 1.3, follow the steps below. If not, go for make and make install.

vi src/Makefile
Locate the ‘CFLAGS’ line, and add the -DEAPI switch so it looks like this:
CFLAGS=$(OPT) $(INCLUDES) -DEAPI

Then add -lutil to the LIBS line like so:
LIBS=-lm /usr/local/src/Python-2.5.1/libpython2.5.a -lutil

Run the make and make install.

This should be done. for both Apache versions.

Edit httpd.conf and create your handlers.

Apache 1.3.x
LoadModule python_module libexec/mod_python.so
AddModule mod_python.c
AddHandler mod_python .psp .py

Apache 2.1.x
LoadModule python_module modules/mod_python.so
AddHandler mod_python .psp .py

How to install docutils in Linux server

April 29, 2008 on 1:50 pm | In Installation, Python | No Comments

Download manually the docutils tar gz from http://prdownloads.sourceforge.net/docutils/docutils-0.4.tar.gz?download

cd /usr/local/src/
wget http://prdownloads.sourceforge.net/docutils/docutils-0.4.tar.gz?download

sudo easy_install /pathto/docutils-0.4.tar.gz

:)

How to install Python Imaging Library PIL on Linux server

April 29, 2008 on 1:47 pm | In Installation, Python | No Comments

Python Imaging Library (PIL)

Make sure Python is installed.

Prerequisites.

If you need any of the features described below, make sure you
have the necessary libraries before building PIL.

feature library
—————————————————————–
JPEG support libjpeg (6a or 6b)

http://www.ijg.org

http://www.ijg.org/files/jpegsrc.v6b.tar.gz

ftp://ftp.uu.net/graphics/jpeg/

PNG support zlib (1.1.4 or later is recommended)

http://www.gzip.org/zlib/

OpenType/TrueType freetype2 (2.1.3 or later is recommended)
support

http://www.freetype.org

http://freetype.sourceforge.net

Installation

Make sure Python is installed.

Then go for

wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz
tar -zxf Imaging-1.1.6.tar.gz
cd Imaging-1.1.6/

python setup.py install

Thant’s all

How to change Windows password.

April 29, 2008 on 11:16 am | In Windows | No Comments

An easier way to change your Administrator password is given below.
Open the command prompt.

Start > run > type cmd

Then in the window give the command below. (To change administrator password)

net user Administrator *

It will ask for the new password
If you need to change the password of another user

net user username *

Dont forget to put the start at the end.
It will ask for the new password.

:)

How to see all the users in Linux.

April 27, 2008 on 7:55 am | In Linux | No Comments

This list the users.

======================
cat /etc/passwd | grep /home | cut -d: -f1
======================

you may add users using

useradd
passwd
It will ask for password

delete the user using

userdel

jmorecfg.h

April 26, 2008 on 3:06 pm | In Installation, PHP | No Comments

If this header file is not found when you give make for gd installation download it

===================
wget http://www.ece.cmu.edu/~ece796/project99/7/final/code/jmorecfg.h

mv jmorecfg.h /usr/lib/
===================

===================
updatedb
===================
or
===================
ldconfig
===================

jpeglib.h

April 26, 2008 on 3:04 pm | In Installation, PHP | No Comments

If this header file is not found when you give make for gd installation download it

===================
wget http://dev.w3.org/cvsweb/Amaya/libjpeg/jpeglib.h?rev=1.2

mv jpeglib.h?rev=1.2 /usr/lib/
===================

===================
updatedb
===================
or
===================
ldconfig
===================

configure: error: freetype.h not found

April 26, 2008 on 2:58 pm | In Installation, PHP | 1 Comment

Download the version you need from

http://download.savannah.gnu.org/releases/freetype/

Example for freetype-2.1.10

cd /usr/local/src
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10.tar.gz
tar -zxf freetype-2.1.10.tar.gz
cd freetype-2.1.10
./configure
make
make install

Next Page »