SPATIUM Desktop
주소복사
About Operating System Languages Tools Favorites Notice Visit TEST  
     ADK (3)
     android (3)
     ASP (5)
     ASP.Net (1)
     C# (5)
     HTML (9)
     JAVA (7)
     JavaScript (9)
     jQuery (5)
     Mobile Web (2)
     node.js (1)
     Oracle (8)
     PHP (7)
     Spring Framework (4)
     SQL (16)
     WPF (5)
   ID  
   Password  
  |  
  Location United States
  IP Address 3.227.252.191
2020. 02
1
2345678
9101112131415
16171819202122
232425262728
29
Category  OperatingSystem, Solaris10
Writer 김태우 Date 2011-08-22 11:17:00 Visit 6508
apache2 설치 및 실행


아래와 같이 실행하였음.

환경. "i386 64Bit 솔라리스 10"

-bash-3.00$ tar xvf httpd-2.0.59.tar
-bash-3.00$ mv ./httpd-2.0.59 /usr/local/httpd-2.0.59
-bash-3.00# cd /usr/local/httpd-2.0.59/
-bash-3.00#
-bash-3.00# ./configure \
> --prefix=/usr/local/apache2 \
> --enable-so \
> --enable-modules=so \
> --enable-mods-shared=most \
> --with-ssl
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
..
..
.
-bash-3.00# make
Making all in srclib
Making all in apr
Making all in strings
/bin/bash /usr/local/httpd-2.0.59/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I../include -I../include/arch/unix  -c apr_cpystrn.c && touch apr_cpystrn.lo
/bin/bash /usr/local/httpd-2.0.59/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I../include -I../include/arch/unix  -c apr_snprintf.c && touch apr_snprintf.lo
/bin/bash /usr/local/httpd-2.0.59/srclib/apr/libtool --silent --mode=compile gcc -g -O2   -DHAVE_CONFIG_H -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I../include -I../include/arch/unix  -c apr_strnatcmp.c && touch apr_strnatcmp.lo
..
..
.
-bash-3.00#
-bash-3.00# make install
Making install in srclib
Making install in apr
Making all in strings
Making all in passwd
..
..
.
Installing build system files
-bash-3.00#
-bash-3.00#
-bash-3.00# // 아래 두줄을 수정한 수 apache 실행
-bash-3.00# vi /usr/local/apache2/conf/httpd.conf   
..
..
..
#ServerName
www.example.com:80
ServerName 127.0.0.1:80
..
..
#Group #-1
Group nobody
..
..
-bash-3.00# /usr/local/apache2/bin/apachectl start
-bash-3.00#
-bash-3.00#

ServerName 를 변경하지 않으면 서버가 실행이 되지 않음

Group 를 변경하지 않으면 역시 서버 실행하지 않으며 /usr/local/apache2/logs/error_log 에 오류 남김
   오류내용-Invalid argument: setgid: unable to set group id to Group

 


설치 후 서버 아이피로 접속, 아파치 설치 확인, 아래 화면이 뜨면 "설치 성공"

http://123.123.123.123

아파치 설치 화면

 

Tags  solaris, apache2 install, 아파치 설치
  Relation Articles
[OperatingSystem-Solaris10] Solaris 사용자 관련(생성, 변경, 삭제) (2012-06-04 11:21:18)
[OperatingSystem-Solaris10] apache2 설치 및 실행 (2011-08-22 11:17:00)
[OperatingSystem-Solaris10] 데몬, 서버 프로세스 개념 (2011-08-22 09:53:54)
[OperatingSystem-Solaris10] mysql 소스 설치 (2011-07-21 15:54:39)
[OperatingSystem-Solaris10] SMF (2011-07-21 09:34:18)
[OperatingSystem-Solaris10] 소스 설치 시 configure, make, make install (2011-07-18 10:01:00)
[OperatingSystem-Solaris10] 초기 프로그램 설치 (2011-07-11 15:31:13)
[OperatingSystem-Solaris10] 서버 인스톨 후, 초기 설정 (2011-07-07 09:49:55)
[OperatingSystem-Solaris10] Zone 구성 (2011-07-05 20:55:17)
[OperatingSystem-Solaris10] IP setting (2011-07-04 20:31:54)
  Your Opinion
Member ID
150 letters
Copyright (C) SPATIUM. All rights reserved.
[SPATIUM]WebMaster Mail