SDpower

PHP 5.3.3 FreeBSD 安裝調整.

by on 八月.10, 2010, under FreeBSD, PHP & MYSQL

php 5.3.3之後整合了php-fpm進去對於使用輕量化web server的使用者不再麻煩了.
以下是安裝畫面,安裝選項.

# cd /usr/ports/lang/php5; make install clean;



編輯/etc/rc.onf
加入

php_fpm_enable="YES"

即可.

php.ini 參考設定.

short_open_tag = On
realpath_cache_size = 64k
realpath_cache_ttl = 120
display_errors = Off
magic_quotes_gpc = Off
date.timezone = "Asia/Taipei"
 
; APC Setting
apc.enabled=1
apc.shm_segments=1
apc.shm_size=256
apc.ttl=300
apc.user_ttl=300
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
Fork me on GitHub

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!