linux - Install APC on centos - /etc/php.d/apc.ini: No such file or directory -


i trying install apc on vps. followed these instructions seemed found on several websites:

yum install php-pear php-devel httpd-devel pcre-devel gcc make pecl install apc 

next there following command failed:

echo "extension=apc.so" > /etc/php.d/apc.ini 

this because there no php.d directory. did 2 things 1) created php.d directory , added apc.ini file 1 line:

extension=apc.so 

and added line php.ini file in

/usr/local/lib 

i restarted apache:

/sbin/service httpd restart 

and apc configuration info still not show in php.ini file.

i added extension website's local php.ini file. missing here?

thanks.

you need find php.ini file , add config apc.ini file it. copy apc.ini file in w3-total-cache

extension = apc.so apc.enabled = 1 apc.shm_segments = 1 apc.shm_size = 32m apc.optimization = 0 apc.num_files_hint = 4096 apc.ttl = 7200 apc.user_ttl = 7200 apc.gc_ttl = 0 apc.cache_by_default = 1 apc.filters = "" apc.mmap_file_mask = "/tmp/apc.xxxxxx" apc.slam_defense = 0 apc.file_update_protection = 2 apc.enable_cli = 0 apc.max_file_size = 10m apc.stat = 0 apc.write_lock = 1 apc.report_autofilter = 0 apc.include_once_override = 0 ;apc.rfc1867 = 0 ;apc.rfc1867_prefix = "upload_" ;apc.rfc1867_name = "apc_upload_progress" ;apc.rfc1867_freq = 0 apc.localcache = 0 apc.localcache.size = 2048 apc.coredump_unmap = 0 apc.stat_ctime = 0 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -