php-fpm 실행시 unknown entry 'security.limit_extensions' error
pph-fpm을 로컬에서 실행할때와 달리 다른서버의 php-fpm을 실행할때 'security.limit_extensions' 를
기술해주어야한다. (was서버처럼 분산처리할때)
Starting php-fpm server...
[08-Apr-2014 19:14:46] ERROR: [/usr/local/etc/php-fpm.conf:17] unknown entry 'security.limit_extensions'
[08-Apr-2014 19:14:46] ERROR: failed to load configuration file '/usr/local/etc/php-fpm.conf'
[08-Apr-2014 19:14:46] ERROR: FPM initialization failed
php-fpm.conf 에
security.limit_extensions 를 아무데나 기술하면 위와 같이 에러가 나므로
반드시 [www] 탭 하단에 기술해주어야한다.
[www]
security.limit_extensions = .php .php3
모니위키(moniwiki) 를 사용하시는분이 요즘 있을까 하지만,
자료찾기가 좀 쉽지 않아서 정리해봅니다.
http://wiki.test.com/wiki.php/xxxxxxxxxxx
이런식의 URL방식을 사용하기 때문에
모니위키를 nginx 에서 사용하시려면, 아래와 같이 추가하셔야하시면 됩니다
참고하세요~ ㅎㅎ
try_files $uri $uri/ /wiki.php;
location ~ \.php($|/) {
include fastcgi_params;
fastcgi_pass unix:/var/run/fastcgi.socket;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param HOST testserver
fastcgi_read_timeout 120;
..
..
}
2014년 부터 도로명 주소 사용 의무화로 개발자들 사이에선
도로명 주소가 화두네요..
기존 우편번호가 5만건 데이터에서 데이터가 600만건으로 늘어나면서,
작은 호스팅 사용하시는분들이 구축하기에는 기술적/시간적/용량/관리적
여러가지 어려운면이 있는거 같습니다.
PHP개발자 커뮤티니 PHPSCHOOL.COM 에서
무료로 도로명 주소 우편번호 오픈API를 제공하네요.
테스트 예제 페이지 http://post.phpschool.com/post.html
신청 페이지 http://post.phpschool.com/join.html
PHPSCHOOL 기술팁텍란 http://www.phpschool.com/link/tipntech/77844
간단한 정보입력과 메일인증으로 바로 사용할수 있네요.
PHP예제 소스 제공하고 있고, PHP 시리얼라이즈 형식과 JSON형식으로 리턴해주니
자바사용자분은 JSON으로 사용하시면 되겠네요~
DB인덱스 사용하지 않고, 검색엔진을 사용해서 검색속도가 빠른게 장점이며,
통합검색을 지원하네요.
"가산동 371-50" "에이스하이엔드 3차" 등 여러단어 조합검색도 되고,
좋은거 같습니다.
기존 지번주소인 구주소로도 도로명주소를 쉽게 찾을 수 있게도 되어 있네요.
급하게 붙이시려는분 참고하세요~!
bind보안패치로 최신bind설치후 재구동시 아래와 같은 에러가 나타난다.ㅠ
Jul 29 16:13:51 xxx named[73049]: zone xxx.net/IN: ''xxx.net'' found SPF/TXT record but no SPF/SPF
record found, add matching type SPF record
Adds a new configuration option, "check-spf"; valid values are
"warn" (default) and "ignore". When set to "warn", checks SPF
and TXT records in spf format, warning if either resource record
type occurs without a corresponding record of the other resource
record type. [RT #33355]
spf를 체크하는 루틴이 추가되면서 나오는 워닝인데.. 모든 zone의 파일을 spf설정을 TXT -> SPF로 변경이 힘들다면,
아래와 같이 하면 된다.
vi /etc/named.conf
options {
version "bind xx";
directory "/var/named";
pid-file "/var/run/named/named.pid";
check-spf ignore;
..
..
};
check-spf ignore; 추가!! ㅎㅎ
FreeBSD9.x / php5.3.x
--enable-fpm 설치시 아래와 같은 에러가 난다! ㅎ
/usr/local/php-5.3.9/sapi/fpm/fpm/fpm_sockets.c: In function 'fpm_socket_get_listening_queue':
/usr/local/php-5.3.9/sapi/fpm/fpm/fpm_sockets.c:400: error: 'struct tcp_info' has no member named 'tcpi_sacked'
/usr/local/php-5.3.9/sapi/fpm/fpm/fpm_sockets.c:405: error: 'struct tcp_info' has no member named 'tcpi_unacked'
/usr/local/php-5.3.9/sapi/fpm/fpm/fpm_sockets.c:409: error: 'struct tcp_info' has no member named 'tcpi_sacked'
*** [sapi/fpm/fpm/fpm_sockets.lo] Error code 1
아래와 같이 소스를 수정..
/usr/local/php-5.3.9]$ find . -name "fpm_sockets.c"
./sapi/fpm/fpm/fpm_sockets.c
vi ./sapi/fpm/fpm/fpm_sockets.c
tcpi_sacked -> __tcpi_sacked
tcpi_unacked -> __ tcpi_unacked
if (info.tcpi_sacked == 0) {
return -1;
}
if (cur_lq) {
*cur_lq = info.tcpi_unacked;
}
if (max_lq) {
*max_lq = info.tcpi_sacked;
}
아래와 같이 수정
if (info.__tcpi_sacked == 0) {
return -1;
}
if (cur_lq) {
*cur_lq = info.__tcpi_unacked;
}
if (max_lq) {
*max_lq = info.__tcpi_sacked;
}
재컴파일... 잘된다..ㅎㅎ