본문 바로가기
PHP
2012.03.13 08:06

PHP Upload Progress Bar (APC)

조회 수 4542 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
Installing PHP APC on GNU/Linux Centos 5/6

1. install packages
yum install php-pear php-devel httpd-devel pcre-devel

2. install apc via the pecl command
pecl install apc 

-------------------//----------------------
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.....................done: 155,540 bytes
54 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
config.m4:180: warning: AC_CACHE_VAL(PHP_APC_GCC_ATOMICS, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
config.m4:180: the top level
config.m4:180: warning: AC_CACHE_VAL(PHP_APC_GCC_ATOMICS, ...): suspicious cache-id, must contain _cv_ to be cached

[...]

Build process completed successfully
Installing '/usr/include/php/ext/apc/apc_serializer.h'
Installing '/usr/lib64/php/modules/apc.so'
install ok: channel://pecl.php.net/APC-3.1.9
configuration option "php_ini" is not set to php.ini location
You should add "extension=apc.so" to php.ini
-------------------//----------------------

3. enable apc in Apache's configuration
echo "extension=apc.so" > /etc/php.d/apc.ini

4. add "apc.rfc1867 = On" to php.ini
vi php.ini
----------------------
apc.rfc1867 = On
----------------------

5. restart Apache
service httpd restart

6. check if apc.rfc1867 is on
------ info.php -------
<?php phpinfo(); ?>
-----------------------

7. Test Code


Title
List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
36 PHP What does PHP keyword 'var' do? Hojung 2013.12.04 3459
35 MySQL How to reset MySQL’s root password on Mac OS X Hojung 2013.04.24 4824
34 PHP easy way would it be to use str_replace() on the whole file (파일내용변경) Hojung 2012.12.12 5128
33 MySQL Mysql SELECT inside UPDATE Hojung 2012.03.28 4965
32 PHP PHP-MySQLi-Wrapper Hojung 2012.03.28 6294
31 PHP MySQL 연결에서 결과값 얻는 PHP 예 (추천) Hojung 2012.03.28 4439
30 PHP MySQL 주요 PHP 함수 (추천) Hojung 2012.03.28 4073
29 PHP Send email using SMTP server's settings Hojung 2012.03.13 4173
28 PHP Send email with mail() Hojung 2012.03.13 3780
» PHP PHP Upload Progress Bar (APC) Hojung 2012.03.13 4542
26 PHP Rename if exists Hojung 2012.03.12 3908
25 PHP Program execution Functions (exec, system, shell_exec) Hojung 2012.03.11 5609
24 PHP email address validation Hojung 2012.03.11 3654
23 PHP file put contents Hojung 2012.03.01 4191
22 PHP The MVC Design Pattern for PHP Hojung 2012.02.14 5507
21 PHP PHP XML 파서 Hojung 2012.02.02 6539
20 MySQL 모든 호스트의 MySQL 액세스 Hojung 2012.01.27 4705
19 MySQL How Do I Enable Remote Access To MySQL Database Server? Hojung 2012.01.27 5370
18 MySQL 특정게시판의 메일리스트 정보 업데이트 Hojung 2011.12.15 5715
17 MySQL Xpressengine 정회원 메일주소만 Hojung 2011.12.15 5916
Board Pagination ‹ Prev 1 2 Next ›
/ 2

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5