질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

RedHad 9.0에서 apache 가 설정이 안됩니다 도와주세요

작성자 정보

  • hyom 작성
  • 작성일

컨텐츠 정보

본문

scrap.gif


저는 RetHat 9.0에 아파치는 아래와 같이 설치를 했습니다.
설치 작업은
local]#  wget http://ftp.superuser.co.kr/pub/apache/httpd-2.0.49.tar.gz
local]# tar xvfz httpd-2.0.49.tar.gz
local]# cd httpd-2.0.49
httpd-2.0.49 ]# ./configure --enable-so --prefix=/usr/local/apache
httpd-2.0.49 ]# make
httpd-2.0.49 ]# make install
httpd-2.0.49 ]#  cd .. 

 

웹서버운영 환경설정은
local]# vi /usr/local/apache/conf/httpd.conf
에서==================================================================
AddType application/x-httpd-php .phtml .php3 .html .htm
AddType application/x-httpd-php-source .phps

(789) AddDefaultCharset ISO-8859-1 -> AddDefaultCharset EUC-KR

(396) DirectoryIndex index.html index.htm index.php index.php3 index.cgi


(505) CustomLog logs/access_log common ->
SetEnvIfNoCase Request_URI (gif|png|jpg|css|js|bmp|jpeg|swf)$ IMAGE=1
CustomLog /usr/local/apache/logs/access_log coomon env=!IMAGE
-----------------------------------------------------------------------------
local]# /usr/local/apache/bin/apachectl start

local]# echo ' /usr/local/mysql/bin/mysqld_safe &
           /usr/local/apache/bin/apachectl start' >> /etc/rc.d/rc.local

local]# echo "<? phpinfo(); ?>"> /usr/local/apache/htdocs/index.php

이렇게 하서 localhost로 확인을 화면 화면에 <? phpinfo(); ?>

라고 뜹니다. 정상적으로 apache는 실행이 되는것 같은데

home]# adduser aaa
해서 aaa 디렉토리 만들어서 그안에
aaa]# mkdir public_html
해서 디렉토리 만들고 그안에
public_html]# vi index.html
을 이용해서 index.html을 만들어 확인하면

===================================================
Forbidden
You don't have permission to access /~aaa on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


-------------------------------------------------------------------------
메세지가 나와서
home]# chmod -R 755 aaa
를 해서나 나타나지를 않고 파일이 다운로드 창 화면이 나타납니다.

고수님 제발 도와 주세요

----------------------------------------------------------------------------

-----------------------------------------------------------------------------

저두 잘모르지만 첫번째문제를 보면 apache의 셋팅보다도

php와 연동이 안된듯한데 APM설치하셨을 때 어케 설치하셨는지

그리고 aaa user에서 안읽히는건 index.html 파일의 권한을 확인해 보셨는지

잘은 모르지만 aaa user권한이 아니라 index.html 파일의 권한을 한번 살펴 보시는게 ....

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,437 명
  • 현재 강좌수 :  37,183 개
  • 현재 접속자 :  244 명