RadarURL
Skip to content
조회 수 1420 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

이제 기본적인 Apache 실행환경을 설정해보자.
/usr/local/server/apache/conf/httpd.conf 파일을 편집한다.

User 와 Group 지시어에 설정되어 있는 기본값인 daemon 을 nobody 로 변경한다. root 권한으로 실행된 아파치의 하위 프로세스를 이곳에서 지정한 사용자로 실행한다는 의미이다.

ServerName 항목의 주석을 해제하고, 도메인 또는 서버의 IP주소를 적어준다. 만약 이 항목을 설정하지 않으면 127.0.0.1 으로만 접속이 된다.

User nobody
Group nobody

ServerName 192.168.75.129 




이제 Apache 를 실행하여 접속해 보자.

# /etc/init.d/httpd start




출처 - http://batsu05.tistory.com/53









drwx---r-x    3 userid usergroup        4096  3월 10 14:59 testdir 

위와 같이 testdir 이란 디렉토리가 있고 userid 란 계정으로 해당 디렉토리를 만들었습니다. 
그런데 웹을 통해 php로 이 디렉토리의 권한 수정하려고 힙니다 

웹을 통한 php는 아파치의 모듈로서 동작을 하기에 아파치의 실행권한을 가지고 움직입니다 
아파치의 실행권한은 httpd.conf 화일에서 
User nobody 
Group nobody 
일반적으로 이런식으로 지정되어 있습니다. 즉 php 가 nobody 란 유저에 nobody 란 그룹으로 
실행된다는 것이죠 

그럼 testdir 이란 디렉토리의 권한과 nobody 를 비교하면 testdir 은 userid 계정을 가진사람이 
읽고 쓰고 실행할수 있으며 usergroup 에 속하는 그룹들은 아무런 권한도 없으며 
그외의 계정에 관해서는 읽고 실행만 된다는 것입니다 

아파치 실행계정인 nobody 는 testdir 의 입장에서 봤을때 그외의 계정에 속하게되고 
읽고 실행만 된다는 것이죠. 해당 디렉토리명을 바꾸고 권한을 변경하려면 
drwx---rwx    3 userid usergroup        4096  3월 10 14:59 testdir 
과 같이 되어 있어야만 됩니다.


출처 - 
http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_other&wr_id=105695  

?

  1. 아파치 httpd.conf 재시작 없이 설정 적용하기

    Date2016.05.02 ByJAESOO Views178
    Read More
  2. 톰캣 8 소개

    Date2016.01.01 ByJAESOO Views250
    Read More
  3. 리눅스 아파치 로그 뷰어 webalizer, utf-8로 변환하기

    Date2014.12.22 ByJAESOO Views426
    Read More
  4. Webalizer Configuration – Configure Webalizer for SEO

    Date2014.12.22 ByJAESOO Views707
    Read More
  5. Webalizer, AWStats에서 국가 정보 확인하기

    Date2014.12.22 ByJAESOO Views359
    Read More
  6. Webalizer에서 국가별 로그 출력하기

    Date2014.12.22 ByJAESOO Views624
    Read More
  7. Apache: A good Webalizer.conf for the Webalizer Apache Log Analyzer utility

    Date2014.12.22 ByJAESOO Views1122
    Read More
  8. 아파치 로그분석 webalizer 설치

    Date2014.12.21 ByJAESOO Views365
    Read More
  9. Permission denied: .htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

    Date2014.12.19 ByJAESOO Views677
    Read More
  10. Permission denied: /home/.htaccess pcfg_openfile: unable to check htaccess file

    Date2014.12.19 ByJAESOO Views446
    Read More
  11. pcfg_openfile: unable to check htaccess file, ensure it is readable

    Date2014.12.19 ByJAESOO Views455
    Read More
  12. Tomcat 버전별 설명

    Date2014.06.04 ByJAESOO Views2223
    Read More
  13. Apache 실행환경을 nobody 사용자로 변경

    Date2014.05.28 ByJAESOO Views1420
    Read More
  14. 리눅스 사용자 계정별 웹서버 운영하기

    Date2014.05.27 ByJAESOO Views1749
    Read More
  15. Apache 서버에서 확장자 .htm 파일 내의 php 코드가 실행되지 않는 문제 해결 방법

    Date2014.05.26 ByJAESOO Views1546
    Read More
  16. php 웹사이트에서 파일을 업로드 하는중 100%에서 멈춰버리는 현상 해결

    Date2014.05.16 ByJAESOO Views1709
    Read More
  17. Apache Struts 버전 확인 방법

    Date2014.05.09 ByJAESOO Views2081
    Read More
  18. robots.txt를 현명하게 사용하는 방법

    Date2014.04.11 ByJaeSoo Views1669
    Read More
  19. robots.txt 파일(로봇배제 표준)

    Date2014.04.11 ByJaeSoo Views1684
    Read More
  20. Windows / apache_2.4.3 + php_5.4.10 + mod_fcgid_2.3.7

    Date2013.04.18 ByJaeSoo Views4166
    Read More
Board Pagination Prev 1 2 3 4 Next
/ 4

PageViews   Today : 112 Yesterday : 16624 Total : 21708287  /  Counter Status   Today : 95 Yesterday : 943 Total : 1138676

Edited by JAESOO

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소