Installing memcache

Installing memcache pecl
First, we need to install the libevent dev library, so when we install pecl memcache, it will compile correctly.
To do this, we run the following command:
aptitude install libevent-dev
Now we are ready to install pecl memcache, which happens to be 2.2.3 at the time of this article.
pecl install memcache
All goes well, and the memcache.so […]

How to recompile or install PHP with mcrypt module?

<!– /* Font Definitions */ @font-face {font-family:”Cambria Math”; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style […]

<!– /* Font Definitions */ @font-face {font-family:”Cambria Math”; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:”"; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:”Calibri”,”sans-serif”; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:”Times New Roman”; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:”Times New Roman”; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} –>

Few things you will need to get: libmcrypt, mhash, mcrypt, and of course PHP

cd /usr/local/src

wget http://kent.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.7.tar.gz

tar -pxzf libmcrypt-2.5.7.tar.gz

cd libmcrypt-2.5.7

./configure –disable-posix-threads

make

make install

cd ..

echo “/usr/local/lib” >>/etc/ld.so.conf

ldconfig

cd /usr/local/src

wget http://kent.dl.sourceforge.net/sourceforge/mhash/mhash-0.9.4a.tar.gz

tar -pxzf mhash-0.9.4a.tar.gz

cd mhash-0.9.4

./configure

make

make install

cd ..

** you can use yum to install mhash if you like, that also works fine.

cd /usr/local/src

wget http://easynews.dl.sourceforge.net/sourceforge/mcrypt/mcrypt-2.6.4.tar.gz

tar -pxzf mcrypt-2.6.4.tar.gz

cd mcrypt-2.6.4

./configure

make

make install

cp /usr/local/lib/libmcrypt.* /usr/lib

ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2

ldconfig

at this point you can compile PHP with mcrypt by adding: –with-mcrypt

-->

Installing memcache on linux and add to PHP

Here are the steps you will need to install memcache on linux:
These direction are from: Crazytoon.com site, go there to read more about memcache and what people have suggested in the comments on this topic
wget http://monkey.org/~provos/libevent-1.3e.tar.gz
tar zxpfv libevent*
cd libevent*
./configure
make install
Now let’s download the newest Memcached source (at time of writing this was 1.2.4)
wget http://www.danga.com/memcached/dist/memcached-1.2.4.tar.gz
tar […]

Installing SubVersion from source on CentOS

when you are installing subversion 1.5.0 or 1.4.3 on a clean install on CentOS you will most likely get few error messages.
Most of the error regarding dependencies can be done using yum install application, but one item I had issue with was the error message: /usr/bin/ld: cannot find “-lexpat”
this was diffecult to deal with since […]

Basic setup of MySQL on CentOS and Linux OS

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure –prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> bin/mysql_install_db –user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> bin/mysqld_safe –user=mysql &

I hate spam especially if the info is not true!

This was interesting. Criss Angel showed how this worked on one of his shows, but it was still kind of surprising when I checked out several people I knew. Not superstitious, but I need all the luck I can get.
Once you have opened this e-mail, there’s no turning back. Below are True descriptions of zodiac […]

Evil Sanita

This story is about a link between the devil’s realm, and those who could have made a difference.
It starts with a little girl sitting in a round room the walls are dark red, there are three long bright red couches with no backs, just the seats, the fabric is fur(very soft) each one has three […]

Cisco CCNA,CCNP,CCENT,and CompTIA Network+ And Security+ Questions: VLANs,SYN Attacks,And More!

Let’s test your knowledge of important topics such as SYN attacks and VLANs for your Cisco CCNA, CCNP, and CCENT exams, as well as the CompTIA Security+ and Network+ certification exams!CCNA / CCENT / CompTIA Network+ Certification:Host A and Host B are in the same VLAN. Host C and Host D are in a different […]

Removing Duplicate files with specific file extesion in Linux

how to remove a list of files under multiple subfolder while keeping the same folder structure. If you have already tried using rm -rf then you will end up removing the entire subfolder structure with all the subfiles, but that is not what we want to do here. The solution for this withought having to […]

Setting up JAVA_HOME environment in Linux (CentOS 5)

export JAVA_HOME=/usr/local/blackdown/jdk1.2.2
The $JAVA_HOME/bin directory has the Java compiler (javac) and the Java Virtual Machine (java) as well as other necessary programs for development. Add $JAVA_HOME/bin to your PATH.
export PATH=$JAVA_HOME/bin:$PATH
Note that $JAVA_HOME/bin was added to the front of the PATH so that the installed JDK will be used rather than any JDK that might have come […]