Solved

PHP APC and rfc1867

Posted on 2011-02-17
2
921 Views
Last Modified: 2012-05-11
hi,

I'm installed the PHP APC extension on a server that's running plesk. I've edited the php.ini file so that it loads the extension and enables rfc 1867, however, for some reason phpinfo shows that APC is enabled, but doesn't show that rfc1867 is enabled.

I've had a similar problem in the past where Apache was setup as CGI, however I've checked and apache is using Apache 2.0 Handler.

Does anyone have any ideas why rfc1867 isn't appearing in the phpinfo?
APC Support	enabled
Version	3.1.6
APC Debugging	Disabled
MMAP Support	Enabled
MMAP File Mask	no value
Locking type	pthread mutex Locks
Revision	$Revision: 303642 $
Build Date	Feb 8 2011 20:25:38

Directive	Local Value	Master Value
apc.cache_by_default	On	On
apc.canonicalize	On	On
apc.coredump_unmap	Off	Off
apc.enable_cli	Off	Off
apc.enabled	On	On
apc.file_md5	Off	Off
apc.file_update_protection	2	2
apc.filters	no value	no value
apc.gc_ttl	3600	3600
apc.include_once_override	Off	Off
apc.lazy_classes	Off	Off
apc.lazy_functions	Off	Off
apc.max_file_size	1M	1M
apc.mmap_file_mask	no value	no value
apc.num_files_hint	1000	1000
apc.preload_path	no value	no value
apc.report_autofilter	Off	Off
apc.shm_segments	1	1
apc.shm_size	32M	32M
apc.slam_defense	On	On
apc.stat	On	On
apc.stat_ctime	Off	Off
apc.ttl	0	0
apc.use_request_time	On	On
apc.user_entries_hint	4096	4096
apc.user_ttl	0	0
apc.write_lock	On	On

Open in new window

0
Comment
Question by:SheppardDigital
  • 2
2 Comments
 

Accepted Solution

by:
SheppardDigital earned 0 total points
ID: 34914845
I've managed to resolve this myself. It turned out that the server needed to be running the latest version 5.2 of PHP, so I removed the extension, updated php, installed apc again and restarted the server.

It was simple.

pecl uninstall apc
wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh
yum update php
pecl install apc

then I checked to make sure that I had these lines in my php.ini file
extension=apc.so
apc.rfc1867 = On
0
 

Author Closing Comment

by:SheppardDigital
ID: 34914848
Resolved this issue myself
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now