Skip to content

Instantly share code, notes, and snippets.

@pzorn
pzorn / gist:4522456
Created January 13, 2013 05:21
apc settings
[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 128M
apc.num_files_hint = 1000
apc.user_entries_hint = 4096
apc.ttl = 0
apc.user_ttl = 0
apc.gc_ttl = 3600
apc.cache_by_default = 1
@pzorn
pzorn / nginx
Last active February 8, 2019 15:27
php-fpm and nginx init.d script
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /usr/local/nginx/conf/nginx.conf
# pidfile: /usr/local/nginx/logs/nginx.pid