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

2010. 9. 20.

[CentOS] 아파치 2개 이상 설치한 경우 해결책

(98) address already in use make_sock could not bind to address 80

아파치를 중복 설치 했을 때 이런 에러가 나기도 한다.

이런 경우 원상복구를 하기 위해서 다음과 같은 조치를 해주자.

# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd

소스 디렉토리의 apachectl을 httpd로 파일명을 변경해서 복사하면 된다.

2010. 8. 25.

[CentOS] service apachectl does not support chkconfig

# chkconfig --add apacheclt  
service apachectl does not support chkconfig

위의 예처럼 데몬을 자동으로 수행하려는데 에러가 발생한다면
다음과 같은 해결책을 사용해보세요.

# vi /etc/init.d/apachectl

# chkconfig: 2345 90 90
# description: init file for apachectl server daemon
# processname: /usr/local/apache2/bin/apachectl
# config: /usr/local/apache2/conf/httpd.conf
# pidfile: /usr/local/apache2/logs/httpd.pid

편집기를 열고 다음의 주석달린 5문장을 입력하면 놀랍게도 해결이 될것이다.

화이팅!!