admin 2013.03.07 apache virtualhost (가상호스트) 특정 아이피 허용 차단 <VirtualHost *:80>DocumentRoot /home/xinet/html/ServerName reject.xinet.krCustomLog logs/access_log vcommon env=!CodeRed<Directory “/home/xinet/html”>Order deny,allowDeny from allAllow from 192.168.0.1 192.168.10.1 </Directory></VirtualHost>위에서 Allow from 만 접속이 허용되고 나머지는 모두 denyEX 1Order allow,deny -> Deny는 막고 Allow는 열어준다, 그외 모조리 차단Allow from 192.168.10.1Deny from 192.168.15.1EX2Order deny,allow ... Read More..
admin 2013.02.27 특정폴더 php 실행금지 apache 특정 폴더 php 실행금지 [crayon-66052ef5cf4a4347329902/] apache httpd.conf 파일에 넣으면 된다 Read More..
admin 2013.02.22 bash 어제(과거) , 내일(미래) 날짜, 시간 구하기 과거 date –d ‘yesterday’ # 어제 date –d ‘1 day ago’ # 1일전 = 어제 date –d ‘2 day ago’ # 2일전 date –d ’35 day ago’ # 20일전 date –d ‘1 week ago’ # 1주일전 date –d ‘2 month ago’ # 1달전 date –d ‘3 year ago’ # 3년전 date –d ’10 second ago’ # 10초전 date –d ’20 minute ago’ # 20분전 date –d ’30 hour ago’ # 30시간전 date –d ‘3 year 7 month ago’ # 3년 7개월전 미래 * 과거에서 ago 를 빼면 됨 date –d ‘tomorrow’ # 내일 date –d ‘1 day’ # 1일후 = 내일 d... Read More..
admin 2013.02.20 oops-firewall-7 버전 설치 다운로드 http://mirror.oops.org/pub/oops/oops-firewall/여기서 oops-firewall-7.0.0.tar.bz2 다운로드 후 빌딩 작업rpmbuild -tb oops-firewall-7.0.0.tar.bz2cd /usr/src/redhat/RPMS/noarch설치 진행rpm -Uvh oops-firewall-7.0.0-1.noarch.rpm Read More..
admin 2013.02.19 configure error dba could not find necessary header file(s) configure error dba could not find necessary header file(s) yum -y install gdbm-devel Read More..
admin 2013.02.05 PHP 5.3 설치 진행시 작업 안내 우선 PHP 5.3 설치시에는 몇가지 조건이 발생한다 1. 아파치를 prefork 로 설치를 진행해야 한다 worker 방식으로 설치 진행하는 경우 최종 설치 진행후 Zend Guard Loader 설치 직 후 ZendGuardLoader.so: undefined symbol: compiler_globals 에러가 발생한다 그러기 위해서 꼭 아파치 설치시에 ./configure \–prefix=/usr/local/apache \–enable-mods-shared=all \–enable-module=shared \–enable-rewrite \–enable-ssl \–with-ssl \–with-mpm=prefork \–with-included-apr 2. PHP 설치시에도 역시 config 옵션이... Read More..
admin 2013.02.04 php 5.3 install error configure: error: Please reinstall the BZip2 distribution configure: error: Please reinstall the BZip2 distribution yum -y install bzip2 bzip2-devel configure: error: xslt-config not found. Please reinstall the libxsl yum -y install libxslt-devel Read More..
admin 2013.02.04 php 설치시 configure: error: Unable to locate gmp.h php 설치시에 아래와 같이 메세지가 출력되는 경우 configure: error: Unable to locate gmp.h yum -y install gmp gmp-devel 라이브러리 설치를 진행한다 Read More..
admin 2013.01.10 bash 문자열 길이 확인 문자열 길이 확인 expr “xinet.kr” : ‘.*’ [root@xinet ~]# expr “xinet.kr” : ‘.*’ 8 간단하게 처리 Read More..