웹마스터 팁

http://www.ihelpers.co.krMySQL 4.0 New Features

Application 속도 향상을 위한 Query Cache 기능 지원
Union 구문 지원
ACID transactions, foreign keys with cascading UPDATE and DELETE,row-level locking을
위한 MyISAM storage engine을 표준으로 제공한다.
기능이 강화된 FullText 검색기능 제공 ( 한글 사용 안됨 )


MySQL 4.1.3 New Features

Subqueries 와 Derived tables 지원
Prepared Statement과 Parameter Binding 지원을 위한 프로토콜 개선
Heap Tables에 BTREE Indexing 지원
Unicode 지원(utf8,ucs2 character sets)
다양한 언어를 사용하는 웹사이트를 위한 Database,Table,Column 별 Character Sets 정의
지리학적 자료 저장을 위한 OpenGis spatial types 지원
SSL 상에서의 Replication 지원

* MySQL 5.0에서는 View,Stored Procedures 기능 지원

http://dev.mysql.com/doc/mysql/en/Nutshell_4.0_features.html
http://dev.mysql.com/doc/mysql/en/Nutshell_4.1_features.html

PHP5.0 New Features

The Zend Engine II with a new object model and dozens of new features.
XML support has been completely redone in PHP 5, all extensions are now focused around the excellent libxml2 library (http://www.xmlsoft.org/).
A new SimpleXML extension for easily accessing and manipulating XML as PHP objects. It can also interface with the DOM extension and vice-versa.
A brand new built-in SOAP extension for interoperability with Web Services.
A new MySQL extension named MySQLi for developers using MySQL 4.1 and later. This new extension includes an object-oriented interface in addition to a traditional interface; as well as support for many of MySQL's new features, such as prepared statements.
SQLite has been bundled with PHP. For more information on SQLite, please visit their website.
Streams have been greatly improved, including the ability to access low-level socket operations on streams.



1. 프로그램 다운로드


MySQL - http://dev.mysql.com/downloads/
PHP5.0 - http://www.php.net/downloads.php#v5
Apache 2.0 - http://httpd.apache.org/
libxml2 - http://xmlsoft.org/
zlib - http://www.gzip.org/zlib/

* Apache 2.0 과 PHP5.0을 함께 사용시 쓰레드처리시에 문제점이 있으니 좀 더 안정화 된후에 운영서버에 적용하는것을 추천합니다.
* libxml2는 PHP 5.0의 새로운 XML API를 기본으로 지원한다.


2.libxml2 설치

$ tar xvfz libxml2-2.6.11.tar.gz
$ cd /tmp/libxml2-2.6.11
$ .../configure
$ make && make install


3.zlib 설치

$ tar xzvf zlib-1.2.1.tar.gz
$ cd /tmp/zlib-1.2.1
$ ../configure
$ make && make install


4.MySQL 설치( Binary Version )

라이센스 문제로 PHP 5.0에는 더이상 MySQL 클라이언트 라이브러리가 포함돼 있지 않기에 PHP 설치시에 추가 옵션( --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config )으로 설치해 주어야 합니다.

PHP 5.0은 ‘MySQLi(MySQL Improved)’라는 완전히 새로운 MySQL을 제공하며 MySQLi는 MySQL의 모든 새로운 기능을 지원하지만
현재는 베타인 MySQL 4.1.2 이후 버전에서만 사용가능하므로 운영서버 적용은 잘 고려하여 적용하십시요.


$ tar -xzvf mysql-standard-4.1.3-beta-pc-linux-i686.tar.gz
$ mv /tmp/mysql-standard-4.1.3-beta-pc-linux-i686 /usr/local/mysql
$ groupadd mysql                        // MySQL 사용자와 그룹 생성
$ useradd -g mysql mysql
$ /usr/local/mysql/scripts/mysql_install_db --user=mysql [/output]
$ chown -R root  /usr/local/mysql
$ chgrp -R mysql /usr/local/mysql
$ chown -R mysql /usr/local/mysql/data
$ /usr/local/mysql/support-files/ mysql.server start [/output]


5.Apache 2.0 ( Dynamic Module )


$ tar -xzvf httpd-2.0.50.tar.gz
$ cd /tmp/httpd-2.0.50
$ ../configure --prefix=/usr/local/apache2 --enable-so
$ make
$ make install


5.PHP 5.0 설치


$ tar -xzvf php-5.0.0.tar.gz
$ cd /tmp/php-5.0.0
$ ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/lib --with-zlib --with-zlib-dir=/usr/local/lib --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-gd --enable-soap --enable-sockets
$ make
$ make install

--with-apxs2 아파치 2.0과 익스텐션 관리에 필요한 apxs 스크립트의 경로
--with-mysql PHP 5.0은 4.0 버전과 달리 기본값이 비활성화된 상태
--with-mysqli MySQL 4.1.2 이상 버전에만 해당
--enable-soap SOAP과 웹서비스에 대한 지원 기능
옵션에 대한 목록 및 설명은 "$ ./configure -help" 으로 확인할 수 있습니다.


6. PHP 확장자 옵션 추가


$ vi /usr/local/apache2/conf/httpd.conf
AddType application/x-httpd-php .php
$ /usr/local/apache2/bin/apachectl restart

6. 설치 확인


$ vi $WEBHOME/phpinfo.php
<? phpinfo() ?>


http://domain/phpinfo.php 로 확인하시면 됩니다.

Reference - http://builder.com.com/5100-6374_14-5290304.html?tag=ft


From : http://www.ihelpers.co.kr