カテゴリー : server
このカテゴリーの登録数:112件 表示 : 1 - 5 / 112
2008-09-23
postfix rblによるスパムメール拒否
postfix rblによるスパムメール拒否
rbl.jpを使う
vi /etc/postfix/main.cf
smtpd_client_restrictions = permit_mynetworks, reject_rbl_client all.rbl.jp, permit
maps_rbl_reject_code = 550
default_rbl_reply = $rbl_code <$recipient>: Recipient address rejected: User unknown in local recipient tables
2008-09-20
phpMyAdmin
phpMyAdminのためにphpにmcryptを入れる
tar zxfv libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure -disable-posix-threads
make
su -
make install
phpのコンパイル
cd /src/php-5.2.6
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/usr/local/bin/mysql_config --with-mysql=/usr/local/ --enable-mbstring --enable-mbregex --with-curl=/usr/local/ --with-curlwrappers --with-gd --with-jpeg-dir=/usr/local/lib/ --with-png-dir=/usr/local/lib/ --with-zlib --with-freetype-dir=/usr/local/lib/ --without-sqlite --disable-cgi --with-mcrypt=/usr/local/lib/
make
su -
make install
httpd restart
2008-09-19
php configureエラー
configure: error: xml2-config not found. Please check your libxml2 installation.
libxml2がないのか
yum install libxml2でやるがすでにインストール済
yum install libxml2-develで次はOKだ
2008-09-18
apache自動起動
リンク
# ln -s /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/apachectl # cd ../rc2.d # ln -s /etc/rc.d/init.d/apachectl S81apachectl # cd ../rc3.d # ln -s /etc/rc.d/init.d/apachectl S81apachectl # cd ../rc4.d # ln -s /etc/rc.d/init.d/apachectl S81apachectl # cd ../rc5.d # ln -s /etc/rc.d/init.d/apachectl S81apachectl
libjpegのインストール
tar zxfv jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --enable-shared
make
libtoolがないといわれるので
vi config.status
s%@LIBTOOL@%/usr/bin/libtool%g
make
make install
make install-lib
libpngのインストール
tar zxfv libpng-1.2.32
cd libpng-1.2.32
./configure
make
make install
freetype2のインストール
tar zxfv freetype-2.3.7.tar.gz
cd freetype-2.3.7
./configure
make
make install
phpのインストール
cd php-5.2.6
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/usr/local/bin/mysql_config --with-mysql=/usr/local/ --enable-mbstring --enable-mbregex --with-curl=/usr/local/ --with-curlwrappers --with-gd --with-jpeg-dir --with-png-dir --with-zlib --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf --without-sqlite --disable-cgi --with-mcrypt
make
make install
phpのmake時にltdlがないといわれる
cd libmcrypt-2.5.8
cd libltdl
./configure --enable-ltdl-install
make
make install