Skip to main content

Posts

:: install jpegsrc on 64bit linux

:: what is please take a look at this. :: installing jpegsrc [ root:downlad ]# wget http://sourceforge.net/projects/libjpeg/files/libjpeg/6b/jpegsrc.v6b.tar.gz/download [ root:downlad ]# tar -xzf jpegsrc.v6b.tar.gz [ root:downlad ]# cd jpeg-6b/ [ root:jpeg-6b ]# ./configure --prefix=/usr/local --enable-shared --enable-static if you get some error like : checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized you can copy 'config.guess' and 'config.sub' on /usr/share/libtool/config to jpeg-6b dir source thenk configure and install : [ root:jpeg-6b ]# cp /usr/share/libtool/config/config.guess . [ root:jpeg-6b ]# cp /usr/share/libtool/config/config.sub . [ root:jpeg-6b ]# ./configure --prefix=/usr/local --enable-shared --enable-static [ root:jpeg-6b ]# make && make install :: links + googlelinux + noahorg

:: install postfix, cyrus, courier, mysql, postfixadmin, squirrelmail on opensuse

:: what is please take a look this. :: install dependency + installing berkeleyDB + installing MySQL + installing Apache + installing PHP :: remove sendmail [ root:~ ]# rpm -e sendmail --nodeps :: build cyrus-sasl [ root: ~ ]# wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.23.tar.gz [ root: ~ ]# tar -xzf cyrus-sasl-2.1.23.tar.gz [ root: ~ ]# groupadd mail [ root: ~ ]# useradd -u 96 -d /usr/cyrus -g mail cyrus [ root: ~ ]# passwd cyrus [ root: ~ ]# cd cyrus-sasl-2.1.23/ [ root: cyrus-sasl-2.1.23 ]# export CPPFLAGS="-I/usr/local/mysql/include/mysql" [ root: cyrus-sasl-2.1.23 ]# ./configure --enable-anon --enable-plain --enable-login --enable-sql --disable-krb4 --disable-otp --disable-cram --disable-digest --with-mysql=/usr/local/mysql --with-plugindir=/usr/lib/sasl2 --without-pam --without-saslauthd --without-pwcheck [ root: cyrus-sasl-2.1.23 ]# make && make install :: installing Postfix + download postfix [ root:~ ]# wget http://mirror.postfix.jp/

:: fixed awstats error

:: error message Internal Server Error and on apache log get some error message like : Insecure dependency in require while running setuid at /path/awstat/awstats.pl :: solution [root: cgi-bin ]# vi awstats.pl # # Change this : #!/usr/bin/perl # to : #!/usr/bin/perl -U -U allow unsafe operations :: links + googlelinux

:: installing berkeley db on linux

:: what is please take a look at this. :: download berkeley db [ linux:download ] # wget http://download.oracle.com/berkeley-db/db-4.8.24.tar.gz [ linux:download ] # tar -xzf db-4.8.24.tar.gz :: build/compiling berkeley db [ linux:download ] # cd db-4.8.24/build_unix/ [ linux:~/db-4.8.24/build_unix ] # ../dist/configure [ linux:~/db-4.8.24/build_unix ] # make && make install [ linux:~/db-4.8.24/build_unix ] # echo '/usr/local/BerkeleyDB.4.8/lib/' >> /etc/ld.so.conf [ linux:~/db-4.8.24/build_unix ] # ldconfig :: links + googlelinux

:: [re] compile imap on php5

:: what is please take a look at this. :: checking dependency make sure openssl installed on the box [ linux:~ ] # rpm -qa | grep openssl libopenssl0_9_8-0.9.8g-47.1 libopenssl-devel-0.9.8g-47.8 openssl-certs-0.9.8g-47.1 openssl-0.9.8g-47.1 :: installing imap for php5 from source [ linux:download ] # wget ftp://ftp.cac.washington.edu/imap/imap-2007a1.tar.Z [ linux:download ] # tar -xzf imap-2007a1.tar.Z -C /usr/local/ [ linux:download ] # cd /usr/local/imap-2007a/ [ linux:imap-2007a ] # make slx SSLINCLUDE=/usr/include/openssl/ [ linux:imap-2007a ] # cp /usr/local/imap-2007a/c-client/c-client.a /usr/lib/libc-client.a [ linux:imap-2007a ] # cp /usr/local/imap-2007a/src/c-client/mail.h /usr/include/ [ linux:imap-2007a ] # cp /usr/local/imap-2007a/src/c-client/rfc822.h /usr/include/ [ linux:imap-2007a ] # cp /usr/local/imap-2007a/c-client/linkage.h /usr/include/ :: [re] compile PHP5 from source please take a look instructions on build php on centos before do this [ linux:~ ] # cd downloa

:: [re]compile php5 with pdo mysql

:: what is please take a look at this. :: [re]compiling php5 with pdo mysql please take a look instructions on build php on centos before do this. [ root:downlad ]# wget http://nl2.php.net/get/php-5.3.0.tar.bz2/from/id.php.net/mirror [ root:downlad ]# tar -xjf php-5.3.0.tar.bz2 [ root:downlad ]# cd php-5.3.0 [ root:php-5.3.0 ]# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd=/usr/local --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-freetype-dir=/usr/local --with-zlib-dir=/usr/local --with-mcrypt=/usr/local/bin/mcrypt --enable-mbstring --enable-ftp --with-pdo-mysql=/usr/local/mysql [ root:php-5.3.0 ]# make && make install [ root:php-5.3.0 ]# cp php.ini-production /usr/local/etc/php.ini [ root:php-5.3.0 ]# vi /usr/local/etc/php.ini ; change this line include_path = ".::/usr/local/lib/php" :: testink [ root ]# php -m | grep pdo pdo_mysql pdo_sqlite :: links + googleLinux + blackonsole

:: [mod] python on apache httpd

:: whatis please take a look at this. :: installing dependency [+] please install apache httpd on your server :: installing python on apache [+] compile and install python [ root:~ ]# mkdir download [ root:~ ]# cd download/ [ root:download ]# wget http://python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2 [ root:download ]# tar -xjf Python-2.6.2.tar.bz2 [ root:download ]# cd Python-2.6.2 [ root:Python-2.6.2 ]# ./configure --enable-shared [ root:Python-2.6.2 ]# make && make install [ root:Python-2.6.2 ]# ldconfig [+] compile and install flex [ root:download ]# wget http://sourceforge.net/projects/flex/files/flex/flex-2.5.35/flex-2.5.35.tar.bz2/download [ root:download ]# tar -xjf flex-2.5.35.tar.bz2 [ root:download ]# cd flex-2.5.35 [ root:flex-2.5.35 ]# ./configure [ root:flex-2.5.35 ]# make && make install [+] compile and install mod_python [ root:download ]# wget http://apache.pesat.net.id/httpd/modpython/mod_python-3.3.1.tgz [ root:download ]# tar -xzf mod_python-3.3