레이블이 Apache인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Apache인 게시물을 표시합니다. 모든 게시물 표시

2016년 1월 22일 금요일

[HTTP Server] Apache log file Management

Learn about the access_log, error_log file to reduce file size.


# Reduce the file size without rebooting the Apache daemon
[root@www01 ]# cat /dev/null > error_log
[root@www01 ]# cat /dev/null > access_log

# If you have to restart the Apache daemon
[root@www01 ]# rm -rf error_log
[root@www01 ]# rm -rf aceess_log

* Return the capacity was in use, only you need to restart Apache daemon on your system.



2015년 8월 10일 월요일

[Linux] DocumentRoot Directory error case by Apache 2.2 & CentOS 6.5

[root@localhost ~]# vi httpd.conf
................
#DocumentRoot  = "/var/www/html"
DocumentRoot = "/var/www/newDiretory"

DocumentRoot 설정 위치에서 변경 후 재시작 하는 경우 Directory 에러 날 때는 다음과 같이 내용을 추가적으로 수정

[root@localhost ~]# chcon -R -t httpd_user_content_t /var/www/newDiretory

#selinux 의 기능을 OFF

[root@localhost ~]# vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled  # 기능 작동을 중단합니다

# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted


 다양한 채널의  블로그 작성으로  집중이 좀 안되기도 하고  나의 회사를 운영하고 관리 하다 보니  회사의 블로그로 작성 해보는 것은 어떤가 하고  하나로 옮겨 봅니다.  (주)다이닝웨이브 - 블로그 바로가기