Tar Incremental Backup Perl Script 
#!/usr/bin/perl

### Design By Andrew Choi
### Backup Directory

$backupdir = "/etc /u0 /usr/local/mysql /usr/local/apache2/conf /var/spool/cron/crontabs";
$targetdir = "/backup131/files/";
$incremental_recode = $targetdir."data-backup-record";
$tar = "/usr/local/bin/tar";

### Main Program

# Gen Date Code

my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime time;

$year = $year + 1900;
$mon = substr "0".$mon,-2;
$mday = substr "0".$mday,-2;
$hour = substr "0".$hour,-2;
$min = substr "0".$min,-2;
$sec = substr "0".$sec,-2;


$datecode = $year.$mon.$mday.$hour.$min.$sec;

# Run Backup
$command = $tar." zcvf ".$targetdir.$datecode."-incremental-data-backup.tar.gz -g ".$incremental_recode." ".$backupdir;
print $command."\n";

$a = `$command`;


[ 發表回應 ] ( 19預覽 )   |  常註連結  |   ( 3 / 1694 )
POP Time out behine Microsoft ISA Server 
POP Time out behine Microsoft ISA Server

Solution

HKLM\System\CurrentControlSet\Services\FwSrv\Parameters

create or change MinTickBeforePortReuse DWORD and give it a value of 240000.
delete MaxSocketsInAllPools if it exists.
delete MaxTimeInFreePool if it exists.

[ 發表回應 ] ( 43預覽 )   |  常註連結  |   ( 3 / 1417 )
Apache 1.3.xx 增加SSL安全保護 
原文:http://fanqiang.chinaunix.net/a3/b3/20020220/07150097_b.html
原文內容經過修定。

SSL = Secure Sockets Layer

建立在Socket層的安全協議,它屏蔽了高層協議如telnet、ftp、http的區別,把安全建立在了傳輸之上。

所需資源

Apache 1.3.xx
openssl 0.9.6
mod_ssl 2.8.0
More...

[ 發表回應 ] ( 24預覽 )   |  常註連結  |   ( 3 / 1540 )
解決PHP輸入完「許功蓋」後,反回「許\功\蓋\」的處理方法。 
解決PHP輸入完「許功蓋」後,反回「許\功\蓋\」的處理方法。

e.g.
$word = "許\功\蓋\";
echo str_replace("\\\\","\\",$word);

[ 發表回應 ] ( 17預覽 )   |  常註連結  |   ( 3 / 1474 )
php 編譯、安裝應該注意的事項 
安裝步驟: Apache > MySQL > Php

Php 其它程式需求:
GNU Autoconf
GNU automake
GNU sed
gcc
GNU Make
flex
Bison
Perl
GNU Tar
libxml2
Apache
MySQL

Php Install Script :

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --enable-dbase --with-libxml-dir=/usr/local/include --with-gd --with-jpeg-dir=/usr/local/include --with-png-dir=/usr/local/include --with-zlib --enable-mbstring

./configure --with-apxs2=/usr/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --enable-dbase --with-libxml-dir=/usr/local/include --with-gd=/usr/local --with-jpeg-dir=/usr/local/include --with-png-dir=/usr/local/include --with-zlib --with-freetype-dir=/usr/local/include/freetype2 --with-xpm-dir=/usr/local/include --enable-mbstring

[ 發表回應 ] ( 14預覽 )   |  常註連結  |   ( 3 / 1695 )

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |