일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- A2000UA
- 히파티아
- 아낙사고라스
- 아리스티포스
- 윈도우10
- PG
- 아낙시만드로스
- 다날
- 피론
- NetDrive
- 소도마
- mysl
- Server
- 알키비아데스
- ExpanDrive
- php
- 아이스키네스
- RaiDrive
- 플로티노스
- httpd
- VMware
- 아베로에스
- CentOS
- 프톨레 마이오스
- short_open_tag
- 고르기아스
- 서버
- bridged
- 크세노크라테스
- 디아고라스
- Today
- Total
개발자의 하루
APM설치-PHP (CentOS 6.9) 본문
PHP설치를 이전에는 소스 컴파일해서 사용했지만 요새는 YUM으로도 다양한 설치가 가능해서 YUM설치를 기본으로 합니다.
1. PHP 기본 설치
[root@testserver work]# yum install \
php \
php-devel \
php-mysql \
php-mbstring \
php-mcrypt \
libxml2 \
libxml2-devel \
libjpeg \
libjpeg-devel \
libpng \
libpng-devel \
freetype \
freetype-devel \
gmp \
gmp-devel \
libc-client-devel \
openssl \
openssl-devel \
mhash \
mhash-devel \
libmcrypt \
libmcrypt-devel
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: ftp.daumkakao.com
* extras: ftp.daumkakao.com
* updates: ftp.daumkakao.com
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.5 MB 00:00
No package php-mcrypt available.
Package libxml2-2.7.6-21.el6_8.1.x86_64 already installed and latest version
Package gmp-4.3.1-12.el6.x86_64 already installed and latest version
Package openssl-1.0.1e-57.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
No package mhash available.
No package mhash-devel available.
No package libmcrypt available.
No package libmcrypt-devel available.
Resolving Dependencies
--> Running transaction check
---> Package freetype.x86_64 0:2.3.11-17.el6 will be installed
---> Package freetype-devel.x86_64 0:2.3.11-17.el6 will be installed
---> Package gmp-devel.x86_64 0:4.3.1-12.el6 will be installed
---> Package libc-client-devel.x86_64 0:2007e-11.el6 will be installed
--> Processing Dependency: libc-client = 2007e-11.el6 for package: libc-client-devel-2007e-11.el6.x86_64
--> Processing Dependency: libc-client.so.2007()(64bit) for package: libc-client-devel-2007e-11.el6.x86_64
---> Package libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 will be installed
---> Package libjpeg-turbo-devel.x86_64 0:1.2.1-3.el6_5 will be installed
---> Package libpng.x86_64 2:1.2.49-2.el6_7 will be installed
---> Package libpng-devel.x86_64 2:1.2.49-2.el6_7 will be installed
---> Package libxml2-devel.x86_64 0:2.7.6-21.el6_8.1 will be installed
---> Package php.x86_64 0:5.3.3-49.el6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-49.el6 for package: php-5.3.3-49.el6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-49.el6 for package: php-5.3.3-49.el6.x86_64
---> Package php-devel.x86_64 0:5.3.3-49.el6 will be installed
--> Processing Dependency: automake for package: php-devel-5.3.3-49.el6.x86_64
--> Processing Dependency: autoconf for package: php-devel-5.3.3-49.el6.x86_64
---> Package php-mbstring.x86_64 0:5.3.3-49.el6 will be installed
---> Package php-mysql.x86_64 0:5.3.3-49.el6 will be installed
--> Processing Dependency: php-pdo(x86-64) for package: php-mysql-5.3.3-49.el6.x86_64
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
---> Package libc-client.x86_64 0:2007e-11.el6 will be installed
---> Package php-cli.x86_64 0:5.3.3-49.el6 will be installed
--> Processing Dependency: libedit.so.0()(64bit) for package: php-cli-5.3.3-49.el6.x86_64
---> Package php-common.x86_64 0:5.3.3-49.el6 will be installed
---> Package php-pdo.x86_64 0:5.3.3-49.el6 will be installed
--> Running transaction check
---> Package libedit.x86_64 0:2.11-4.20080712cvs.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
freetype x86_64 2.3.11-17.el6 base 361 k
freetype-devel x86_64 2.3.11-17.el6 base 365 k
gmp-devel x86_64 4.3.1-12.el6 base 171 k
libc-client-devel x86_64 2007e-11.el6 base 56 k
libjpeg-turbo x86_64 1.2.1-3.el6_5 base 174 k
libjpeg-turbo-devel x86_64 1.2.1-3.el6_5 base 96 k
libpng x86_64 2:1.2.49-2.el6_7 base 182 k
libpng-devel x86_64 2:1.2.49-2.el6_7 base 112 k
libxml2-devel x86_64 2.7.6-21.el6_8.1 base 1.1 M
php x86_64 5.3.3-49.el6 base 1.1 M
php-devel x86_64 5.3.3-49.el6 base 513 k
php-mbstring x86_64 5.3.3-49.el6 base 460 k
php-mysql x86_64 5.3.3-49.el6 base 86 k
Installing for dependencies:
autoconf noarch 2.63-5.1.el6 base 781 k
automake noarch 1.11.1-4.el6 base 550 k
libc-client x86_64 2007e-11.el6 base 515 k
libedit x86_64 2.11-4.20080712cvs.1.el6 base 74 k
php-cli x86_64 5.3.3-49.el6 base 2.2 M
php-common x86_64 5.3.3-49.el6 base 530 k
php-pdo x86_64 5.3.3-49.el6 base 80 k
Transaction Summary
====================================================================================================================================
Install 20 Package(s)
Total download size: 9.4 M
Installed size: 37 M
Is this ok [y/N]: y
Downloading Packages:
(1/20): autoconf-2.63-5.1.el6.noarch.rpm | 781 kB 00:00
(2/20): automake-1.11.1-4.el6.noarch.rpm | 550 kB 00:00
(3/20): freetype-2.3.11-17.el6.x86_64.rpm | 361 kB 00:00
(4/20): freetype-devel-2.3.11-17.el6.x86_64.rpm | 365 kB 00:00
(5/20): gmp-devel-4.3.1-12.el6.x86_64.rpm | 171 kB 00:00
(6/20): libc-client-2007e-11.el6.x86_64.rpm | 515 kB 00:00
(7/20): libc-client-devel-2007e-11.el6.x86_64.rpm | 56 kB 00:00
(8/20): libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm | 74 kB 00:00
(9/20): libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm | 174 kB 00:00
(10/20): libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64.rpm | 96 kB 00:00
(11/20): libpng-1.2.49-2.el6_7.x86_64.rpm | 182 kB 00:00
(12/20): libpng-devel-1.2.49-2.el6_7.x86_64.rpm | 112 kB 00:00
(13/20): libxml2-devel-2.7.6-21.el6_8.1.x86_64.rpm | 1.1 MB 00:00
(14/20): php-5.3.3-49.el6.x86_64.rpm | 1.1 MB 00:00
(15/20): php-cli-5.3.3-49.el6.x86_64.rpm | 2.2 MB 00:00
(16/20): php-common-5.3.3-49.el6.x86_64.rpm | 530 kB 00:00
(17/20): php-devel-5.3.3-49.el6.x86_64.rpm | 513 kB 00:00
(18/20): php-mbstring-5.3.3-49.el6.x86_64.rpm | 460 kB 00:00
(19/20): php-mysql-5.3.3-49.el6.x86_64.rpm | 86 kB 00:00
(20/20): php-pdo-5.3.3-49.el6.x86_64.rpm | 80 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------
Total 1.9 MB/s | 9.4 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-common-5.3.3-49.el6.x86_64 1/20
Installing : autoconf-2.63-5.1.el6.noarch 2/20
Installing : automake-1.11.1-4.el6.noarch 3/20
Installing : php-pdo-5.3.3-49.el6.x86_64 4/20
Installing : 2:libpng-1.2.49-2.el6_7.x86_64 5/20
Installing : libjpeg-turbo-1.2.1-3.el6_5.x86_64 6/20
Installing : freetype-2.3.11-17.el6.x86_64 7/20
Installing : libc-client-2007e-11.el6.x86_64 8/20
Installing : libedit-2.11-4.20080712cvs.1.el6.x86_64 9/20
Installing : php-cli-5.3.3-49.el6.x86_64 10/20
Installing : php-5.3.3-49.el6.x86_64 11/20
Installing : php-devel-5.3.3-49.el6.x86_64 12/20
Installing : libc-client-devel-2007e-11.el6.x86_64 13/20
Installing : freetype-devel-2.3.11-17.el6.x86_64 14/20
Installing : libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 15/20
Installing : 2:libpng-devel-1.2.49-2.el6_7.x86_64 16/20
Installing : php-mysql-5.3.3-49.el6.x86_64 17/20
Installing : php-mbstring-5.3.3-49.el6.x86_64 18/20
Installing : libxml2-devel-2.7.6-21.el6_8.1.x86_64 19/20
Installing : gmp-devel-4.3.1-12.el6.x86_64 20/20
Verifying : php-mbstring-5.3.3-49.el6.x86_64 1/20
Verifying : php-pdo-5.3.3-49.el6.x86_64 2/20
Verifying : automake-1.11.1-4.el6.noarch 3/20
Verifying : libedit-2.11-4.20080712cvs.1.el6.x86_64 4/20
Verifying : gmp-devel-4.3.1-12.el6.x86_64 5/20
Verifying : php-mysql-5.3.3-49.el6.x86_64 6/20
Verifying : libc-client-2007e-11.el6.x86_64 7/20
Verifying : php-common-5.3.3-49.el6.x86_64 8/20
Verifying : freetype-2.3.11-17.el6.x86_64 9/20
Verifying : 2:libpng-devel-1.2.49-2.el6_7.x86_64 10/20
Verifying : php-cli-5.3.3-49.el6.x86_64 11/20
Verifying : autoconf-2.63-5.1.el6.noarch 12/20
Verifying : libxml2-devel-2.7.6-21.el6_8.1.x86_64 13/20
Verifying : php-5.3.3-49.el6.x86_64 14/20
Verifying : libjpeg-turbo-1.2.1-3.el6_5.x86_64 15/20
Verifying : php-devel-5.3.3-49.el6.x86_64 16/20
Verifying : freetype-devel-2.3.11-17.el6.x86_64 17/20
Verifying : libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64 18/20
Verifying : libc-client-devel-2007e-11.el6.x86_64 19/20
Verifying : 2:libpng-1.2.49-2.el6_7.x86_64 20/20
Installed:
freetype.x86_64 0:2.3.11-17.el6 freetype-devel.x86_64 0:2.3.11-17.el6 gmp-devel.x86_64 0:4.3.1-12.el6
libc-client-devel.x86_64 0:2007e-11.el6 libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 libjpeg-turbo-devel.x86_64 0:1.2.1-3.el6_5
libpng.x86_64 2:1.2.49-2.el6_7 libpng-devel.x86_64 2:1.2.49-2.el6_7 libxml2-devel.x86_64 0:2.7.6-21.el6_8.1
php.x86_64 0:5.3.3-49.el6 php-devel.x86_64 0:5.3.3-49.el6 php-mbstring.x86_64 0:5.3.3-49.el6
php-mysql.x86_64 0:5.3.3-49.el6
Dependency Installed:
autoconf.noarch 0:2.63-5.1.el6 automake.noarch 0:1.11.1-4.el6 libc-client.x86_64 0:2007e-11.el6
libedit.x86_64 0:2.11-4.20080712cvs.1.el6 php-cli.x86_64 0:5.3.3-49.el6 php-common.x86_64 0:5.3.3-49.el6
php-pdo.x86_64 0:5.3.3-49.el6
Complete!
추후 필요한 모듈은 yum으로 추가 설치하면 자동 적용되서 관리가 편합니다.
2. eaccelerator 설치
공식 홈페이지 : http://eaccelerator.net/
[root@testserver work]# php -v
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[root@testserver work]# wget https://github.com/eaccelerator/eaccelerator/tarball/master
--2017-07-29 19:16:17-- https://github.com/eaccelerator/eaccelerator/tarball/master
Resolving github.com... 192.30.255.112, 192.30.255.113
Connecting to github.com|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/eaccelerator/eaccelerator/legacy.tar.gz/master [following]
--2017-07-29 19:16:18-- https://codeload.github.com/eaccelerator/eaccelerator/legacy.tar.gz/master
Resolving codeload.github.com... 192.30.255.120, 192.30.255.121
Connecting to codeload.github.com|192.30.255.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 131579 (128K) [application/x-gzip]
Saving to: `master'
100%[==========================================================================================>] 131,579 300K/s in 0.4s
2017-07-29 19:16:19 (300 KB/s) - `master' saved [131579/131579]
[root@testserver work]# ll
?⑷퀎 156
drwxr-xr-x. 6 root root 4096 2017-07-29 19:16 ./
dr-xr-xr-x. 23 root root 4096 2017-07-29 18:35 ../
drwxr-xr-x. 3 root root 4096 2017-06-02 12:51 homepage/
drwxr-xr-x. 2 root root 4096 2017-06-02 12:49 index/
-rw-r--r-- 1 root root 131579 2017-07-29 19:16 master
drwxr-xr-x. 3 root root 4096 2017-06-02 12:49 secure/
[root@testserver work]# mv master master.tar.gz
`master' -> `master.tar.gz'
[root@testserver work]# tar xzvf master.tar.gz
eaccelerator-eaccelerator-42067ac/
eaccelerator-eaccelerator-42067ac/.gitignore
eaccelerator-eaccelerator-42067ac/AUTHORS
eaccelerator-eaccelerator-42067ac/COPYING
eaccelerator-eaccelerator-42067ac/ChangeLog
eaccelerator-eaccelerator-42067ac/Makefile.frag
eaccelerator-eaccelerator-42067ac/Makefile.in
eaccelerator-eaccelerator-42067ac/NEWS
eaccelerator-eaccelerator-42067ac/PHP_Highlight.php
eaccelerator-eaccelerator-42067ac/README
eaccelerator-eaccelerator-42067ac/README.win32
eaccelerator-eaccelerator-42067ac/bugreport.php
eaccelerator-eaccelerator-42067ac/config.m4
eaccelerator-eaccelerator-42067ac/config.w32
eaccelerator-eaccelerator-42067ac/control.php
eaccelerator-eaccelerator-42067ac/dasm.php
eaccelerator-eaccelerator-42067ac/debug.c
eaccelerator-eaccelerator-42067ac/debug.h
eaccelerator-eaccelerator-42067ac/doc/
eaccelerator-eaccelerator-42067ac/doc/php/
eaccelerator-eaccelerator-42067ac/doc/php/dasm.php
eaccelerator-eaccelerator-42067ac/doc/php/info.php
eaccelerator-eaccelerator-42067ac/doc/phpdoc.ini
eaccelerator-eaccelerator-42067ac/ea_dasm.c
eaccelerator-eaccelerator-42067ac/ea_dasm.h
eaccelerator-eaccelerator-42067ac/ea_info.c
eaccelerator-eaccelerator-42067ac/ea_info.h
eaccelerator-eaccelerator-42067ac/ea_restore.c
eaccelerator-eaccelerator-42067ac/ea_restore.h
eaccelerator-eaccelerator-42067ac/ea_store.c
eaccelerator-eaccelerator-42067ac/ea_store.h
eaccelerator-eaccelerator-42067ac/eaccelerator.c
eaccelerator-eaccelerator-42067ac/eaccelerator.h
eaccelerator-eaccelerator-42067ac/eaccelerator.ini
eaccelerator-eaccelerator-42067ac/eaccelerator_version.h
eaccelerator-eaccelerator-42067ac/fnmatch.c
eaccelerator-eaccelerator-42067ac/fnmatch.h
eaccelerator-eaccelerator-42067ac/mm.c
eaccelerator-eaccelerator-42067ac/mm.h
eaccelerator-eaccelerator-42067ac/opcodes.c
eaccelerator-eaccelerator-42067ac/opcodes.h
eaccelerator-eaccelerator-42067ac/optimize.c
eaccelerator-eaccelerator-42067ac/win32/
eaccelerator-eaccelerator-42067ac/win32/eAccelerator.dsp
eaccelerator-eaccelerator-42067ac/win32/eAccelerator.dsw
eaccelerator-eaccelerator-42067ac/win32/eAccelerator.sln
eaccelerator-eaccelerator-42067ac/win32/eAccelerator.vcproj
[root@testserver work]# cd eaccelerator-eaccelerator-42067ac/
[root@testserver eaccelerator-eaccelerator-42067ac]# ll
?⑷퀎 700
drwxrwxr-x 4 root root 4096 2012-08-16 22:34 ./
drwxr-xr-x. 7 root root 4096 2017-07-29 19:16 ../
-rw-rw-r-- 1 root root 204 2012-08-16 22:34 .gitignore
-rw-rw-r-- 1 root root 670 2012-08-16 22:34 AUTHORS
-rw-rw-r-- 1 root root 17992 2012-08-16 22:34 COPYING
-rw-rw-r-- 1 root root 49163 2012-08-16 22:34 ChangeLog
-rw-rw-r-- 1 root root 627 2012-08-16 22:34 Makefile.frag
-rw-rw-r-- 1 root root 269 2012-08-16 22:34 Makefile.in
-rw-rw-r-- 1 root root 9761 2012-08-16 22:34 NEWS
-rw-rw-r-- 1 root root 17053 2012-08-16 22:34 PHP_Highlight.php
-rw-rw-r-- 1 root root 7281 2012-08-16 22:34 README
-rw-rw-r-- 1 root root 2760 2012-08-16 22:34 README.win32
-rw-rw-r-- 1 root root 2634 2012-08-16 22:34 bugreport.php
-rw-rw-r-- 1 root root 9235 2012-08-16 22:34 config.m4
-rw-rw-r-- 1 root root 1827 2012-08-16 22:34 config.w32
-rw-rw-r-- 1 root root 20130 2012-08-16 22:34 control.php
-rw-rw-r-- 1 root root 11082 2012-08-16 22:34 dasm.php
-rw-rw-r-- 1 root root 10882 2012-08-16 22:34 debug.c
-rw-rw-r-- 1 root root 4131 2012-08-16 22:34 debug.h
drwxrwxr-x 3 root root 4096 2012-08-16 22:34 doc/
-rw-rw-r-- 1 root root 29207 2012-08-16 22:34 ea_dasm.c
-rw-rw-r-- 1 root root 2145 2012-08-16 22:34 ea_dasm.h
-rw-rw-r-- 1 root root 13629 2012-08-16 22:34 ea_info.c
-rw-rw-r-- 1 root root 2432 2012-08-16 22:34 ea_info.h
-rw-rw-r-- 1 root root 36098 2012-08-16 22:34 ea_restore.c
-rw-rw-r-- 1 root root 2464 2012-08-16 22:34 ea_restore.h
-rw-rw-r-- 1 root root 40204 2012-08-16 22:34 ea_store.c
-rw-rw-r-- 1 root root 2302 2012-08-16 22:34 ea_store.h
-rw-rw-r-- 1 root root 83840 2012-08-16 22:34 eaccelerator.c
-rw-rw-r-- 1 root root 14630 2012-08-16 22:34 eaccelerator.h
-rw-rw-r-- 1 root root 3524 2012-08-16 22:34 eaccelerator.ini
-rw-rw-r-- 1 root root 75 2012-08-16 22:34 eaccelerator_version.h
-rw-rw-r-- 1 root root 5963 2012-08-16 22:34 fnmatch.c
-rw-rw-r-- 1 root root 2648 2012-08-16 22:34 fnmatch.h
-rw-rw-r-- 1 root root 35480 2012-08-16 22:34 mm.c
-rw-rw-r-- 1 root root 3688 2012-08-16 22:34 mm.h
-rw-rw-r-- 1 root root 20278 2012-08-16 22:34 opcodes.c
-rw-rw-r-- 1 root root 5946 2012-08-16 22:34 opcodes.h
-rw-rw-r-- 1 root root 152359 2012-08-16 22:34 optimize.c
drwxrwxr-x 2 root root 4096 2012-08-16 22:34 win32/
[root@testserver eaccelerator-eaccelerator-42067ac]# phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
[root@testserver eaccelerator-eaccelerator-42067ac]# ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable eaccelerator support... yes, shared
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking mandatory system headers... yes
checking whether union semun is defined in sys/sem.h... no
checking for sysvipc shared memory support... yes
checking for mmap shared memory support... yes
checking for mmap on /dev/zero shared memory support... yes
checking for anonymous mmap shared memory support... yes
checking for posix mmap shared memory support... no
checking for best shared memory type... sysvipc
checking for spinlock semaphores support... yes
checking for pthread semaphores support... yes
checking for posix semaphores support... no
checking for sysvipc semaphores support... yes
checking for fcntl semaphores support... yes
checking for flock semaphores support... yes
checking for best semaphores type... spinlock
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
[root@testserver eaccelerator-eaccelerator-42067ac]# make && make install
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/eaccelerator.c -o eaccelerator.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/eaccelerator.c -fPIC -DPIC -o .libs/eaccelerator.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/opcodes.c -o opcodes.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/opcodes.c -fPIC -DPIC -o .libs/opcodes.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/debug.c -o debug.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/debug.c -fPIC -DPIC -o .libs/debug.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/ea_restore.c -o ea_restore.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/ea_restore.c -fPIC -DPIC -o .libs/ea_restore.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/ea_store.c -o ea_store.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/ea_store.c -fPIC -DPIC -o .libs/ea_store.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/ea_info.c -o ea_info.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/ea_info.c -fPIC -DPIC -o .libs/ea_info.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/ea_dasm.c -o ea_dasm.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/ea_dasm.c -fPIC -DPIC -o .libs/ea_dasm.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/mm.c -o mm.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/mm.c -fPIC -DPIC -o .libs/mm.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=compile cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/optimize.c -o optimize.lo
libtool: compile: cc -I. -I/work/eaccelerator-eaccelerator-42067ac -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /work/eaccelerator-eaccelerator-42067ac/optimize.c -fPIC -DPIC -o .libs/optimize.o
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=link cc -DPHP_ATOM_INC -I/work/eaccelerator-eaccelerator-42067ac/include -I/work/eaccelerator-eaccelerator-42067ac/main -I/work/eaccelerator-eaccelerator-42067ac -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o eaccelerator.la -export-dynamic -avoid-version -prefer-pic -module -rpath /work/eaccelerator-eaccelerator-42067ac/modules eaccelerator.lo opcodes.lo debug.lo ea_restore.lo ea_store.lo ea_info.lo ea_dasm.lo mm.lo optimize.lo
libtool: link: cc -shared .libs/eaccelerator.o .libs/opcodes.o .libs/debug.o .libs/ea_restore.o .libs/ea_store.o .libs/ea_info.o .libs/ea_dasm.o .libs/mm.o .libs/optimize.o -Wl,-soname -Wl,eaccelerator.so -o .libs/eaccelerator.so
libtool: link: ( cd ".libs" && rm -f "eaccelerator.la" && ln -s "../eaccelerator.la" "eaccelerator.la" )
/bin/sh /work/eaccelerator-eaccelerator-42067ac/libtool --mode=install cp ./eaccelerator.la /work/eaccelerator-eaccelerator-42067ac/modules
libtool: install: cp ./.libs/eaccelerator.so /work/eaccelerator-eaccelerator-42067ac/modules/eaccelerator.so
libtool: install: cp ./.libs/eaccelerator.lai /work/eaccelerator-eaccelerator-42067ac/modules/eaccelerator.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /work/eaccelerator-eaccelerator-42067ac/modules
----------------------------------------------------------------------
Libraries have been installed in:
/work/eaccelerator-eaccelerator-42067ac/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/lib64/php/modules/
+-------------------------------------------------------+
| !!! Attention !!! |
| |
| For disk cache users (using eaccelerator.shm_only=0): |
| |
| Please remember to empty your eAccelerator disk cache |
| when upgrading, otherwise things will break! |
+-------------------------------------------------------+
[root@testserver eaccelerator-eaccelerator-42067ac]# mkdir /tmp/eaccelerator
[root@testserver eaccelerator-eaccelerator-42067ac]# chmod 0777 /tmp/eaccelerator
[root@testserver eaccelerator-eaccelerator-42067ac]# vi /etc/php.ini
...
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
zend_extension="/usr/lib64/php/modules/eaccelerator.so"
eaccelerator.shm_size="128"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
;extension=memcache.so
// eaccelerator.so 위치를 모르면 검색해서 위치를 찾습니다.
[root@testserver eaccelerator-eaccelerator-42067ac]# find / -name eaccelerator.so
/work/eaccelerator-eaccelerator-42067ac/.libs/eaccelerator.so
/work/eaccelerator-eaccelerator-42067ac/modules/eaccelerator.so
/usr/lib64/php/modules/eaccelerator.so
[root@testserver eaccelerator-eaccelerator-42067ac]# php -v
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
예전에는 Zend Optimizer도 따로 받아 설치해야 됬지만 php v5.3이상부터는 자동 설치가 되니 따로 설치해 줄 필요가 없습니다.
[root@testserver eaccelerator-eaccelerator-42067ac]# php -v
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
'Server' 카테고리의 다른 글
Unclean shutdown of previous Apache run? 아파치 실행 에러 (0) | 2017.09.18 |
---|---|
php 소스가 그대로 출력된다면? (0) | 2017.07.29 |
client denied by server configuration (0) | 2017.07.21 |
VMware Bridged vs NAT 차이 (0) | 2017.06.20 |
date(): It is not safe to rely on the system's timezone settings. (0) | 2017.06.09 |