Step 0 : Install Packages ¶
[edit]
Zlib 깔기 ¶
#wget http://www.gzip.org/zlib/zlib-1.2.1.tar.gz
// zlib파일 다운로드
#tar -xzvf zlib-1.2.1.tar.gz // 압축해제
#cd zlib-1.2.1 // 압축해제된 폴더로 이동
#./configure // 컴파일 환경설정
#make
#make install
#cd .. //상 위폴더로 이동
#rm -rf zlib* // 다운받은파일과 압축해제된폴더 삭제
[edit]
libpng 깔기 ¶
#wget http://optusnet.dl.sourceforge.net/sourceforge/libpng/
libpng-1.2.8.tar.gz
#tar -xzvf libpng-1.2.8.tar.gz
#cd libpng-1.2.8
#./configure
#make
#make install
#cd ..
#rm -rf libpng*
[edit]
freetype 설치하기 ¶
#wget http://aleron.dl.sourceforge.net/sourceforge/freetype/
freetype-1.3.1.tar.gz
#tar -xzvf freetype-1.3.1.tar.gz
#cd freetype-1.3.1
#./configure
#make
#make install
#cd ..
#rm -rf freetype*
[edit]
libjpeg 설치하기 ¶
#wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz
#tar -xzvf jpegsrc.v6b.tar.gz
#cd jpeg-6b
#./configure --enable-shared --enable-static
#make
#make install
#make test
#make install
#cd ..
#rm -rf jpeg*
[edit]
gd설치하기 ¶
#wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
#tar -xzvf gd-2.0.33.tar.gz
#cd gd-2.0.33
#./configure
#make
#make install
#cd ..
#rm -rf gd*
[edit]
glibxml2 설치하기 ¶
#wget http://xmlsoft.org/sources/libxml2-2.6.16.tar.gz
#tar -xzvf libxml2-2.6.16.tar.gz
#cd libxml2-2.6.16
#./configure
#make
#make install
#cd ..
#rm -rf libxml*
[edit]
Step 1 : Install MySQL ¶
#wget http://mysql.byungsoo.net/Downloads/MySQL-5.0/
mysql-5.0.19.tar.gz
#tar -xzvf mysql-5.0.19.tar.gz
#cd mysql-5.0.19
./configure \
--prefix=/usr/local/mysql
--localstatedir=/usr/local/mysql/data \
--disable-shared --enable-assembler \
--with-thread-safe-client --with-mysqld-user="mysql" \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--with-readline --without-debug \
--without-docs --without-bench \
--with-charset=euckr
#make
#make install
#cd /usr/local/mysql/share/mysql/
#cp my-medium.cnf /etc/my.cnf
#/usr/local/mysql/bin/mysql_install_db
[edit]
Step 2 : Install Apache ¶
#wget http://apache.justdn.org/httpd/httpd-2.2.0.tar.bz2
#tar -xjvf httpd-2.2.0
#cd httpd-2.2.0
# ./configure --prefix=/usr/local/apache2
--enable-modules=so --enable-so
#make
#make install
[edit]
Step 3 : Install PHP ¶
#wget http://ftp.superuser.co.kr/pub/php/php-5.0.3.tar.gz
#tar -xzvf php-5.0.3.tar.gz
#mv php-5.0.3 /usr/local/php
#cd /usr/local/php
#./configure
--prefix=/usr/local/php \
--with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-sysvshm=yes --enable-sysvsem=yes \
--enable-debug=no --enable-track-vars=yes \
--enable-url-fopen-wrapper=yes --with-ttf \
--with-png-dir=/usr --with-zlib-dir --with-jpeg-dir=/usr \
--with-gdbm=/usr --enable-ftp --with-tiff-dir=/usr \
--enable-memory-limit --enable-mbstring \
--with-expat-dir=/usr --enable-sockets \
--enable-wddx --with-freetype-dir=/usr \
--enable-bcmath --enable-mbstr-enc-trans \
--enable-mbregex --enable-exif --with-gd \
--enable-gd-native-ttf --enable-gd-imgstrttf \
--enable-calendar --with-openssl=/usr
#make
#make install
#cp php.ini-dist /usr/local/lib/php.ini
[edit]
Step 4 : Install ZendOptimizer ¶
#wget http://downloads.zend.com/optimizer/3.0.0/
ZendOptimizer-3.0.0-linux-glibc21-i386.tar.gz
#tar -xzvf ZendOptimizer-3.0.0-linux-glibc21-i386.tar.gz
#cd ZendOptimizer-3.0.0-linux-glibc21-i386
#./install.sh
[Enter]
[Enter]
[Enter]
[Enter]
[edit]
Apache ¶
#vi /usr/local/apache/conf/httpd.conf
// php파일을 웹서버에서 인식하기 위해 아래두줄 추가
AddType application/x-httpd-php .php .phtml .php3
// php파일로 해석할 확장명설정
AddType application/x-httpd-php-source .phps
// php 소스로 해석할 확장명설정
// 처음페이지로 인식할 파일명설정
DireactoryIndex index.html index.php
[edit]
MySQL ¶
// MySQL 디비관리자 비번설정
shell> mysql -u root mysql
mysql> SET PASSWORD FOR root=PASSWORD('new_password');
#cd /usr/local/mysql/bin
// 루트로 로그인
#./mysql -u root -p
// 데이타베이스 생성
mysql> CREATE database DB_NAME;
Query OK, 0 rows affected (0.00 sec)
// 디비서버에 계정을 생성
mysql> GRANT all privileges on DB_NAME.* TO
USER_NAME@localhost
> IDENTIFIED BY 'PASSWORD';
Query OK, 0 rows affected (0.00 sec)
mysql> quit // 디비서버 나오기
bye
Zlib 깔기 ¶
#wget http://www.gzip.org/zlib/zlib-1.2.1.tar.gz
// zlib파일 다운로드 #tar -xzvf zlib-1.2.1.tar.gz // 압축해제 #cd zlib-1.2.1 // 압축해제된 폴더로 이동 #./configure // 컴파일 환경설정 #make #make install #cd .. //상 위폴더로 이동 #rm -rf zlib* // 다운받은파일과 압축해제된폴더 삭제
[edit]
libpng 깔기 ¶
#wget http://optusnet.dl.sourceforge.net/sourceforge/libpng/
libpng-1.2.8.tar.gz #tar -xzvf libpng-1.2.8.tar.gz #cd libpng-1.2.8 #./configure #make #make install #cd .. #rm -rf libpng*
[edit]
freetype 설치하기 ¶
#wget http://aleron.dl.sourceforge.net/sourceforge/freetype/
freetype-1.3.1.tar.gz #tar -xzvf freetype-1.3.1.tar.gz #cd freetype-1.3.1 #./configure #make #make install #cd .. #rm -rf freetype*
[edit]
libjpeg 설치하기 ¶
#wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz #tar -xzvf jpegsrc.v6b.tar.gz #cd jpeg-6b #./configure --enable-shared --enable-static #make #make install #make test #make install #cd .. #rm -rf jpeg*
[edit]
gd설치하기 ¶
#wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz #tar -xzvf gd-2.0.33.tar.gz #cd gd-2.0.33 #./configure #make #make install #cd .. #rm -rf gd*
[edit]
glibxml2 설치하기 ¶
#wget http://xmlsoft.org/sources/libxml2-2.6.16.tar.gz #tar -xzvf libxml2-2.6.16.tar.gz #cd libxml2-2.6.16 #./configure #make #make install #cd .. #rm -rf libxml*
[edit]
Step 1 : Install MySQL ¶
#wget http://mysql.byungsoo.net/Downloads/MySQL-5.0/
mysql-5.0.19.tar.gz #tar -xzvf mysql-5.0.19.tar.gz #cd mysql-5.0.19 ./configure \ --prefix=/usr/local/mysql
--localstatedir=/usr/local/mysql/data \ --disable-shared --enable-assembler \ --with-thread-safe-client --with-mysqld-user="mysql" \ --with-client-ldflags=-all-static \ --with-mysqld-ldflags=-all-static \ --with-readline --without-debug \ --without-docs --without-bench \ --with-charset=euckr #make #make install #cd /usr/local/mysql/share/mysql/ #cp my-medium.cnf /etc/my.cnf #/usr/local/mysql/bin/mysql_install_db
[edit]
Step 2 : Install Apache ¶
#wget http://apache.justdn.org/httpd/httpd-2.2.0.tar.bz2 #tar -xjvf httpd-2.2.0 #cd httpd-2.2.0 # ./configure --prefix=/usr/local/apache2
--enable-modules=so --enable-so #make #make install
[edit]
Step 3 : Install PHP ¶
#wget http://ftp.superuser.co.kr/pub/php/php-5.0.3.tar.gz #tar -xzvf php-5.0.3.tar.gz #mv php-5.0.3 /usr/local/php #cd /usr/local/php #./configure --prefix=/usr/local/php \ --with-mysql=/usr/local/mysql \ --with-apxs2=/usr/local/apache2/bin/apxs \ --enable-sysvshm=yes --enable-sysvsem=yes \ --enable-debug=no --enable-track-vars=yes \ --enable-url-fopen-wrapper=yes --with-ttf \ --with-png-dir=/usr --with-zlib-dir --with-jpeg-dir=/usr \ --with-gdbm=/usr --enable-ftp --with-tiff-dir=/usr \ --enable-memory-limit --enable-mbstring \ --with-expat-dir=/usr --enable-sockets \ --enable-wddx --with-freetype-dir=/usr \ --enable-bcmath --enable-mbstr-enc-trans \ --enable-mbregex --enable-exif --with-gd \ --enable-gd-native-ttf --enable-gd-imgstrttf \ --enable-calendar --with-openssl=/usr #make #make install #cp php.ini-dist /usr/local/lib/php.ini
[edit]
Step 4 : Install ZendOptimizer ¶
#wget http://downloads.zend.com/optimizer/3.0.0/
ZendOptimizer-3.0.0-linux-glibc21-i386.tar.gz #tar -xzvf ZendOptimizer-3.0.0-linux-glibc21-i386.tar.gz #cd ZendOptimizer-3.0.0-linux-glibc21-i386 #./install.sh [Enter] [Enter] [Enter] [Enter]
[edit]
Apache ¶
#vi /usr/local/apache/conf/httpd.conf // php파일을 웹서버에서 인식하기 위해 아래두줄 추가 AddType application/x-httpd-php .php .phtml .php3
// php파일로 해석할 확장명설정 AddType application/x-httpd-php-source .phps
// php 소스로 해석할 확장명설정 // 처음페이지로 인식할 파일명설정 DireactoryIndex index.html index.php
[edit]
MySQL ¶
// MySQL 디비관리자 비번설정 shell> mysql -u root mysql mysql> SET PASSWORD FOR root=PASSWORD('new_password'); #cd /usr/local/mysql/bin // 루트로 로그인 #./mysql -u root -p // 데이타베이스 생성 mysql> CREATE database DB_NAME; Query OK, 0 rows affected (0.00 sec) // 디비서버에 계정을 생성 mysql> GRANT all privileges on DB_NAME.* TO
USER_NAME@localhost > IDENTIFIED BY 'PASSWORD'; Query OK, 0 rows affected (0.00 sec) mysql> quit // 디비서버 나오기 bye