티스토리 뷰

Old

A.P.M. Install

Bravo(브라보) 2005. 12. 5. 17:47
독립적으로 설치가능한 패키지는 Mysql이고 다음은 Apache, 가장 의존적인 PHP순으로 설치한다. 추후에 Tomcat 5도 설치 연동할 예정.

[Mysql 5.0.16]
RPM 버전으로 설치
rpm -ivh MySQL-server-5.0.16-0.i386.rpm
rpm -ivh MySQL-client-5.0.16-0.i386.rpm
rpm -ivh MySQL-devel-5.0.16-0.i386.rpm
rpm -ivh MySQL-shared-5.0.16-0.i386.rpm


[apache 2.2.0 - u20051206 ]
./configure --prefix=/usr/local/apache22 \
--enable-rule=SHARED_CORE \
--enable-modules=so \
--enable-so \
--enable-rewrite

make
make install

[edit {prefix}/conf/httpd.conf]

ServerAdmin xxx@xxx.xxx
ServerName xxxxx.xxx:80
DocumentRoot "/xxxx/xxxx/xxxx"
AllowOverride All
DirectoryIndex index.html index.htm deafult.html default.htm index.php index.jsp

아파치 2.2버전부터는 주요 설정파일을 분산시켜서 httpd.conf파일에서 include 시키는 방식을 쓴다.
# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf
: 각 플랫폼에 맞는 운영체제 설정이나 웹서버 연결 및 성능 조절. {prefix}/bin/apachectl -l 을 실행해 어떤 설정을 사용할지 사용된 모듈을 통해 확인할 수 있다. 현재 서버에서는 prefork.c가 발견됐으므로 prefork MPM을 활성화 한다.
# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf
: 에러메시지 언어선택 및 페이지 설정
# Fancy directory listings
Include conf/extra/httpd-autoindex.conf
: 디렉토리 인덱싱을 가능하게 한 경우 아이콘등 설정. 혹시 몰라서 활성화
# Language settings
Include conf/extra/httpd-languages.conf
: 지원 인코딩 언어 설정
# User home directories
Include conf/extra/httpd-userdir.conf
: 사용자 웹 홈디렉토리 설정
# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf
: 실시간 서버 정보에 관련된 설정
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
: 가상호스팅 설정.아래 코드를 입력한다.
NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin xxxxx@xxxxx.xxx
ServerName xxxxx.xxx
DocumentRoot /home/xxxxx/xxxx
</VirtualHost>

<VirtualHost *:80>
ServerAdmin xxxxx@xxxxx.xxx
ServerName blog.xxxxx.xxx
DocumentRoot /home/xxxxx/xxxx
</VirtualHost>

# Local access to the Apache HTTP Server Manual
# Include conf/extra/httpd-manual.conf
: 로컬 억세스 가능한 서버 메뉴얼
# Distributed authoring and versioning (WebDAV)
# Include conf/extra/httpd-dav.conf
<- WebDAV(인증과 버저닝 배포) 관련
# Various default settings
Include conf/extra/httpd-default.conf
: 기타 디폴트 설정들(타임아웃등)
# Secure (SSL/TLS) connections
# Include conf/extra/httpd-ssl.conf
: SSL 연결 설정

{prefix}/bin/apachectl start

[edit /etc/rc.d/rc.local]
{prefix}/bin/apachectl start <-추가


[php 5.1.1 - u20051206]
PHP 5.1.1 설치시 필요 라이브러리의 버전에 까다로움을 보인다. 걸리는건 무조건 최신버전으로 재 설치 할것.

http://www.gnu.org/software/libiconv/ 에서
libiconv-1.9.1.tar.gz 다운로드 받아서
./configure
make
make install

ftp://ftp.uu.net/graphics/jpeg/ 에서 소스를 받거나
http://rpmfind.net 에서 검색후
libjpeg-devel-6b-26.i386.rpm 다운로드후 rpm 설치

http://www.freetype.org 에서
freetype-2.1.10.tar.gz 다운로드 받아서
./configure
make
make install

http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/ 에서
libxml2-2.6.22.tar.gz 다운로드 받아서
./configure
make
make install

http://curl.haxx.se/ 에서
curl-7.15.0.tar.gz 다운로드 받아서
./configure
make
make install

php make-
./configure --prefix=/usr/local/php5 \
--with-apxs2=/usr/local/apache22/bin/apxs \
--with-zlib \
--with-gd \
--with-mysql \
--with-mod-charset \
--with-language=korean \
--with-charset=euc_kr \
--with-iconv \
--enable-mbstring \
--enable-calender \
--enable-ftp \
--enable-sockets \
--enable-bcmath \
--enable-exif \
--enable-gd-native-ttf \
--enable-safe-mode \
--disable-debug \
--with-mime-magic \
--with-curl \
--with-jpeg-dir \
--with-freetype-dir=/usr/local

make
make install

cp {source_dir}/php.ini-dist /usr/lib/php.ini

[edit {apache_prefix}/conf/httpd.conf]

AddType application/x-httpd-php .php .php3 .inc .html .htm
AddType applocation/x-httpd-php-source .phps
추가

ZendOptimizer를 http://zend.com 에서 다운로드,압축풀고

./install.sh
2.6 이상부터 5.1 지원!

[edit /usr/local/Zend/etc/php.ini]

register_globals = On
post_max_size = 000M
upload_max_filesize = 000M

{apache_prefix}/bin/appachectl restart


phpinfo() 함수 이용 설정 확인~

'Old' 카테고리의 다른 글

국가코드  (0) 2005.12.06
Teamspeak PHP Script Compact Version 1.1  (0) 2005.12.05
Qmail Install  (0) 2005.11.29
nano Install  (0) 2005.11.28
ProFTPD Install  (0) 2005.11.28
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함