RedHad 9.0에서 apache 가 설정이 안됩니다 도와주세요
작성자 정보
- help me 작성
- 작성일
컨텐츠 정보
- 2,072 조회
- 0 추천
- 목록
본문
저는 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
를 해서나 나타나지를 않고 파일이 다운로드 창 화면이 나타납니다.
고수님 제발 도와 주세요
관련자료
-
이전
-
다음