웹마스터 팁
page_full_width">
(LAMPLinux,Apache,MySQL,PHP) 새로운 기능 및 설치
2004.09.15 12:27
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
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
댓글 0
제목 | 글쓴이 | 날짜 |
---|---|---|
태그 (Tag) 관련글 보여줄 때 상단에 선택된 태그 보여주는 방법 [1] | calko | 2015.08.08 |
DB에서 직접 시퀀스 생성하기 [3] | 기진곰 | 2015.07.18 |
FTP로 폴더가 삭제가 안될때~!
[6]
![]() | 웹엔진 | 2012.01.30 |
사이트접속시 제로보드XE폴더로 이동되게 하는 쉬운방법 [8] | 부찬™ | 2007.08.17 |
member 모듈 메일인증을 사용할때 모바일 기본스킨에서 회원가입 후 이메일 발송 안내 띄우기
[2]
![]() | 후하니 | 2015.08.01 |
새로고침 없는 실시간 웹서비스를 위한 기술과 간략한 역사(?) [1] | onTrust | 2015.07.27 |
Startssl 설치과정!!
[83]
![]() | 제이엔지 | 2012.08.13 |
홈페이지 제작 시 점검사항 15가지 [1] | 유래유거 | 2015.06.29 |
[실험팁] XE 고용량/큰사진 썸네일 깨지는 것 해결 | socialskyo | 2015.07.20 |
레이아웃 메뉴에서 메뉴옆에 글수 표시하기 | 반걸 | 2015.07.20 |
config 파일을 일반 유저가 쓸 수 없는 문제 해결법 [15] | wkp | 2015.07.09 |
lang.xml 파일 다이어트 자동화
[5]
![]() | 산하2 | 2014.07.09 |
스크립트파일(js)을 하단부에서 불러오게 하기 [1] | Treasurej | 2011.12.09 |
IIS서버 자동 설치 프로그램(PHP, MySQL, phpMyAdmin) [1] | 공처아찌 | 2015.07.12 |
모바일에 최적화된 화면으로 보기 문구가 레이아웃을 가리는 문제 | creative8 | 2015.07.11 |
회원도 모듈별 적용된 포인트 보게하는 방법. [11] | :DunhillBoy | 2014.02.01 |
문서페이지가 수정이 되지 않는 문제
[2]
![]() | monet | 2015.07.07 |
비회원이 게시글 추천할수있게하는방법
[4]
![]() | 토끼매니아 | 2011.08.03 |
홈페이지 속도가 느린 이유.(팁같지도 않은 팁) [11] | 가브리엘조 | 2015.06.27 |
원하는 그룹에게 아이피를 전부다 표시해주기 [1] | 불금 | 2015.06.16 |