Contents

조회 수 18849 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

전체적인 설치순서
1. MySQL 설정, make (make install)
2. gd 라이브러리 설치 (gd 생략가능)
3. apache 설정
4. php 설정, make (make install)
5. apache 재설정, make (make install)


1. MySQL 설정, make(make install)
./configure 
--prefix=/usr/local/mysql  (설치 경로)
--localstatedir=/usr/local/mysql/data  (저장 경로)
--with-charset=euc_kr  (지원 언어)
make
make install
1.2 MySQL5 설정, make(make install)
./configure 
--prefix=/usr/local/mysql  (설치 경로)
--localstatedir=/usr/local/mysql/data  (저장 경로)
--with-unix-socket-path=/tmp/mysql.sock 
--sysconfdir=/etc 
--with-mysqld-user=mysql 
--without-debug 
--enable-assembler 
--with-gnu-ld 
--with-big-tables 
--with-plugins=innobase 
--with-charset=euckr 
--with-collation=euckr_korean_ci 
--with-extra-charsets=all
--with-mysqld-ldflags=-all-static 
--with-client-ldflags=-all-static 
make
make install


2. gd 라이브러리 설치
< zlib > 압축과 관련된 라이브러리
./configure
make
make install

< libpng > png 포맷을 다루기 위한 라이브러리
cp scripts/makefile.linux Makefile  (설치할 플랫폼의 makefile.* 을 복사)
make test
make install

< freetype 2 > 글자를 그릴 때 쓰는 라이브러리
./configure
make
make install

< libjpeg > jpg 포맷을 다루는 라이브러리
./configure --enable-shared --enable-static
make
make test
mkdir /usr/local/man/man1
make install

< libxml2 >
./configure
make
make install

< gd > 그래픽 라이브러리
./configure --prefix=/usr/local/gd
make
make install


3. 문자코드 변환 라이브러리 설치
< iconv > libiconv 라이브러리
./configure --prefix=/usr/local
make
make install


4. apache 설정
./configure 
--prefix=/usr/local/www  (설치될 경로)


5. php 설정, make(make install)
./configure
--with-mysql=/usr/local/mysql (MySQL 경로)
--with-apache=/usr/local/src/apache_1.3.33  (apache 소스 경로)
--enable-track-vars=yes  (post,get 방식 지원)
--with-config-file-path=/usr/local/www/conf  (웹서버 환경설정 디렉토리)
--with-exec-dir=/usr/local/www/bin  (웹서버 실행 디렉토리)
--with-gd=/usr/local/gd
--with-jpeg-dir=/usr
--with-libxml2-dir=/usr/local
--with-charset=euc_kr
--enable-module=so
--with-iconv=/usr/local
make
make install
5.1 php5 설정, make(make install)
./configure
--with-mysql=/usr/local/mysql
--with-apache=/usr/local/src/apache_1.3.33
--with-config-file-path=/usr/local/www/conf
--with-exec-dir=/usr/local/www/bin
--with-gd=/usr/local/gd
--with-jpeg-dir=/usr
--with-libxml2-dir=/usr/local
--with-freetype-dir=/usr
--with-iconv=/usr/local
--with-gettext
--with-ttf
--enable-track-vars=yes
--enable-module=so
--enable-sockets
make
make install


6. apache 재설정, make(make install)
./configure 
--prefix=/usr/local/www  (설치 경로)
--enable-module=most
--enable-rule=SHARED_CORE 
--enable-module=so 
--enable-shared=max  (DSO 로 컴파일 for JSP)
--activate-module=src/modules/php4/libphp4.a  (php모듈 경로)
(apache 소스 디렉토리에 src/modules/php4/ 디렉토리에..)
make
make install
6.1 apache 재설정, make(make install)
./configure 
--prefix=/usr/local/www  (설치 경로)
--enable-module=most
--enable-rule=SHARED_CORE 
--enable-module=so 
--enable-shared=max  (DSO 로 컴파일 for JSP)
--activate-module=src/modules/php5/libphp5.a  (php모듈 경로)
(apache 소스 디렉토리에 src/modules/php5/ 디렉토리에..)
make
make install


apache,php 설정파일 경로
apm 설치가 다 끝나면 php소스 디렉토리에 있는 php.ini-dist 파일을
웹서버 설정 디렉토리에 php.ini파일로 복사함
cp  ./php.ini-dist  /usr/local/www/conf/php.ini

/usr/local/www/conf/httpd.conf (apache)
/usr/local/www/conf/php.ini (php)


MySQL 설치후 기본 DB세팅
/usr/local/mysql/bin/mysql_install_db  &  (mysql DB를 생성)


MySQL 실행,종료
/usr/local/mysql/bin/safe_mysqld -u mysql --skip-locking &
/usr/local/mysql/bin/mysqladmin -uroot -p암호 shutdown


apache 실행,종료
/usr/local/www/bin/apachectl start
/usr/local/www/bin/apachectl stop


<부팅할 때 자동적으로 데이터베이스서버를 기동시키고 싶다면>
/etc/rc.d/rc.local 파일의 맨 마지막에 두 명령어를 적어주면 된다.


linux.saraing.net에서 퍼온자료..

./configure --with-mysql=/usr/local/mysql 
--with-apache=/usr/local/src/apache_1.3.26 
--enable-magic-quotes 
--with-config-file-path=/www/conf 
--with-exec-dir=/www/bin 
--with-system-regex 
--disable-debug 
--enable-freetype-4bit-antialias-ahck 
--enable-track-vars 
--with-png 
--with-zlib 
--with-gdbm 
--enable-debugger 
--enable-safe-mode 
--enable-ftp 
--enable-inline-optimization 
--with-xml 
--enable-shared

./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a


php5 세팅 참고..
./configure \ 
    --with-mcrypt \ 
    --with-mhash \ 
    --with-mysql=/usr/local/mysql \ 
    --enable-modules=so \ 
    --with-apache=./configure \ 
    --with-mcrypt \ 
    --with-mhash \ 
    --with-mysql=/usr/local/mysql \ 
    --enable-modules=so \ 
    --with-apache=/home2/backup/setup/apache_1.3.33 \ 
    --with-png-dir=/usr/lib \ 
    --with-zlib-dir=/usr/lib \ 
    --with-iconv=/usr/local \ 
    --with-gettext \ 
    --with-ttf \ 
    --with-kerberos \ 
    --with-imap-ssl \ 
    --with-libidn=/usr/local \ 
    --with-curl \ 
    --enable-idn \ 
    --enable-exif \ 
    --enable-trans-sid \ 
    --enable-wddx \ 
    --with-imap=/usr/lib \ 
    --with-gdbm=/usr/lib \ 
    --with-db \ 
    --enable-dbx \ 
    --enable-dbase \ 
    --with-gd \ 
    --with-gif-dir=/usr/local/lib \ 
    --with-freetype-dir=/usr \ 
    --with-jpeg-dir=/usr \ 
    --with-png \ 
    --with-zlib \ 
    --with-config-file-path=/usr/local/apache/conf \ 
    --with-mod-charset \ 
    --with-language=korean \ 
    --with-charset=euc_kr \ 
    --with-xml \ 
    --enable-mbstr-enc-trans \ 
    --enable-mbregex \ 
    --enable-mbstring \ 
    --enable-magic-quotes \ 
    --enable-calendar \ 
    --enable-sockets \ 
    --enable-ftp \ 
    --enable-gd-imgstrttf \ 
    --enable-track-vars \ 
    --enable-bcmathi \ 
    --enable-force-cgi-redirect \ 
    --disable-debug \ 
    --enable-sigchild \ 
    --with-idn  \ 
    --with-png-dir=/usr/lib \ 
    --with-zlib-dir=/usr/lib \ 
    --with-iconv=/usr/local \ 
    --with-gettext \ 
    --with-ttf \ 
    --with-kerberos \ 
    --with-imap-ssl \ 
    --enable-exif \ 
    --enable-trans-sid \ 
    --enable-wddx \ 
    --with-imap=/usr/lib \ 
    --with-gdbm=/usr/lib \ 
    --with-db \ 
    --enable-dbx \ 
    --enable-dbase \ 
    --with-gd \ 
    --with-gif-dir=/usr/local/lib \ 
    --with-freetype-dir=/usr \ 
    --with-jpeg-dir=/usr \ 
    --with-png \ 
    --with-zlib \ 
    --with-config-file-path=/usr/local/apache/conf \ 
    --with-mod-charset \ 
    --with-language=korean \ 
    --with-charset=euc_kr \ 
    --with-xml \ 
    --enable-mbstr-enc-trans \ 
    --enable-mbregex \ 
    --enable-mbstring \ 
    --enable-magic-quotes \ 
    --enable-calendar \ 
    --enable-sockets \ 
    --enable-ftp \ 
    --enable-gd-imgstrttf \ 
    --enable-track-vars \ 
    --enable-bcmathi \ 
    --enable-force-cgi-redirect \ 
    --disable-debug \ 
    --enable-sigchild \ 
    --with-idn

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
70 System/OS [mac] 컨텍스트(Context) 메뉴 "다음으로 열기" 내용 정리 hooni 2013.07.10 18796
69 System/OS [mac] SVN 1.8 업데이트 방법 hooni 2013.09.24 14550
68 System/OS [linux] 우분투 APM + phpmyadmin 설치 hooni 2013.10.07 49309
67 System/OS [mac] Mac에서 Mac으로 원격제어하기 (맥에서 맥으로) file hooni 2013.10.08 36978
66 System/OS [mac] 맥에서 슬립(잠자기) 모드 진입을 막는 방법~ hooni 2013.10.10 30866
65 System/OS [linux] 특정 문자열 포함된 파일 찾는 명령어 hooni 2013.10.16 30600
64 System/OS [mac] Charlesproxy 간단한 설정 내용~ hooni 2013.11.12 12314
63 System/OS CentOS 6.5 USB 설치 6 file hooni 2013.12.18 37668
62 System/OS [linux] CentOS 터미널 언어 설정(한글/영어) hooni 2013.12.22 18508
61 System/OS [linux] root 전환시 패스워드 없이 su 사용하기 hooni 2013.12.22 12680
60 System/OS [linux] iconv를 이용하여 euc-kr 문서를 utf-8로 대량으로 변환하기 file hooni 2014.01.09 12214
59 System/OS [linux] CentOS 6.x Cati 설치 (yum) hooni 2014.01.17 48588
Board Pagination Prev 1 ... 7 8 9 10 11 12 13 14 15 16 17 Next
/ 17