솔라리스9(64bit) 에 Apache 설치하기 질문입니다

innu의 이미지

솔라리스9 (64bit) 설치되어 있고 C 컴파일러가 설치되지 않아 32bit 바이너리 포맷 gcc(3.4.2) 패키지로 설치했습니다.

Quote:

# uname -a
SunOS MINSAPP1 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-V240
# pkgadd -d gcc....

gcc 설치후 아파치 2.0.54 소스설치를 했고 ( /http/apache2 ) http/apache2/conf/httpd.conf 설정에서 ServerName 만 현재 ip로 바꾸고
Quote:

/http/apache2/bin/apachectl start

하니깐 아파치 데몬이 안뜹니다.
80 포트도 안열려 있구요.
Quote:

# /http/apache2/bin/apachectl start
# echo $?
0
# ps -ef | grep http | grep -v grep
#

스크립트는 정상실행 된거 같은데 데몬이 안뜨네요.
jongwooh의 이미지

error log 파일을 보시고 판단하셔야죠.

you must know the power of dark side.

innu의 이미지

jwhan wrote:
error log 파일을 보시고 판단하셔야죠.

제가 미쳤나 봅니다..
아파치에러로그는 확인안하고 애꿎은 시스템로그만 ..ㅋ

어쨌든 해결했습니다.
httpd.conf 의 user/group 보시면 아래 항목이 나오네요.

Quote:

# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!

이 문제였네요... 솔라리스의 nobody sid/gid 가 default 60001 이더군요..

Debian Spirit !!!