centos7 /tmp 디렉토리에 존재하는 파일 clamav scan 에 대한 에러 파일 권한 [root@ip-172-31-46-175 tmp]# ll /tmp/green.exe -rw------- 1 root root 573440 10월 23 16:31 /tmp/green.exe green.exe 는 악성코드 파일 발생 에러 [root@ip-172-31-46-175 tmp]# /bin/clamdscan /tmp/green.exe /tmp/green.exe: lstat() failed: No such file or directory. ERROR조치사항 [root@ip-172-31-46-175 tmp]# /bin/clamdscan --fdpass /tmp/green.exe /tmp/green.exe: Wi..
centos6.10 에서 php 5.3.3 과 mysql connect시 발생하는 문제점 헤더와 클라이언트 버전이 다르다는 소리인데 php -i | grep 'Client API' Client API version => 5.3.12-MariaDB Client API library version => 5.3.12-MariaDB Client API header version => 5.1.73 Client API version => 5.3.12-MariaDB Client API 의 라이브러리 버전과 헤더 버전이 달라서 발생하는 문제 기존 centos6.4 에서 php 5.2 이용시에는 php-mysqlnd-5.3.27-3.el6.x86_64 5.3 버전에는 mysqlnd 를 찾을수 없음 php-..
참고 https://stackoverflow.com/questions/10458610/how-can-i-disable-phps-easter-egg-urlsPHP OLD 버전인 경우 발생하는 보안 취약점? 취약한지 테스트 http://도메인/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000php.ini 에서 조치 사항 expose_php = Off혹은 mod_rewrite 에서 처리 RewriteEngine On RewriteCond %{QUERY_STRING} \=PHP[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12} [NC] RewriteRule .* - [F] 혹은 mod_rewrite 2 RewriteEngine O..
mod_clamav 다운로드 https://fossies.org/linux/www/apache_httpd_modules/mod_clamav-0.23.tar.gz원문 (설치 참고) https://dokuwiki.tachtler.net/doku.php?id=tachtler:apache_http_server_centos_6_-_mod_clamav_-_virenscanner_einbindung설치 (tested aws centos6) 사전 준비 yum install epel-release yum install gcc httpd httpd-devel clamav clamav-devel make wget clamd wget https://fossies.org/linux/www/apache_httpd_modules/..
링크 https://github.com/sivel/speedtest-cli설치 wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py chmod +x speedtest-cli테스트 ./speedtest-cli --help ./speedtest-cli --server 서버번호 ./speedtest-cli --server 16352 --no-upload --no-upload 업로드는 트래픽 요금을 유발하여 다운로드만 측정 ping time 과 함께 초당 다운로드 되는 용량을 출력함
Unable to open logs apache 시작 에러 발생 [root@Webtest conf.d]# service httpd start httpd (을)를 시작 중: [실패]/etc/httpd/logs/error_log Unable to open logs원인 로그 파일 경로에 대한 권한 혹은 소유자 문제 httpd 설정 등 다양한 원인이 있을수 있음open file limits 설정 [root@Webtest ~]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 127..
설치 yum install yum-utilsrepo 설정 /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ gpgcheck=1 enabled=0 gpgkey=https://nginx.org/keys/n..
설치 yum install epel-release yum install jwhois
mod_geoip + httpd 참고 원문 사이트 https://www.tecmint.com/install-mod_geoip-for-apache-in-centos/ 설치 yum install epel-release yum install mod_geoip GeoIP GeoIP-devel GeoIP-data zlib-develDB 업그레이드? # cd /usr/share/GeoIP/ # mv GeoIP.dat GeoIP.dat_org # wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz # wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.t..