본문 바로가기
PHP
2012.03.13 08:06

PHP Upload Progress Bar (APC)

조회 수 5119 추천 수 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
번호 분류 제목 글쓴이 날짜 조회 수
16 PHP PHP XML 파서 Hojung 2012.02.02 7176
15 PHP The MVC Design Pattern for PHP Hojung 2012.02.14 6130
14 PHP file put contents Hojung 2012.03.01 4685
13 PHP email address validation Hojung 2012.03.11 4151
12 PHP Program execution Functions (exec, system, shell_exec) Hojung 2012.03.11 6241
11 PHP Rename if exists Hojung 2012.03.12 4424
» PHP PHP Upload Progress Bar (APC) Hojung 2012.03.13 5119
9 PHP Send email with mail() Hojung 2012.03.13 4304
8 PHP Send email using SMTP server's settings Hojung 2012.03.13 4682
7 PHP MySQL 주요 PHP 함수 (추천) Hojung 2012.03.28 4604
6 PHP MySQL 연결에서 결과값 얻는 PHP 예 (추천) Hojung 2012.03.28 5000
5 PHP PHP-MySQLi-Wrapper Hojung 2012.03.28 6985
4 MySQL Mysql SELECT inside UPDATE Hojung 2012.03.28 5593
3 PHP easy way would it be to use str_replace() on the whole file (파일내용변경) Hojung 2012.12.12 5774
2 MySQL How to reset MySQL’s root password on Mac OS X Hojung 2013.04.24 5443
1 PHP What does PHP keyword 'var' do? Hojung 2013.12.04 4166
Board Pagination ‹ Prev 1 2 Next ›
/ 2

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


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

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

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5