Programming/php2014. 10. 15. 15:45
Zend opcache에 실패하고 뱅글뱅글 돌아 다시 컴백...
일단 arm용 lighttpd에서 쑈하다가 또 다시 벽에 부딛힌.. ㅠㅠ

[링크 : http://xcache.lighttpd.net/wiki/Faq]

'Programming > php' 카테고리의 다른 글

lighttpd + php 퍼미션 문제  (0) 2014.10.21
php.ini extension_dir  (0) 2014.10.20
php 5.5.17 opcache / arm  (0) 2014.10.14
php - extensions are not supported on this platform / arm  (0) 2014.10.14
php php-cgi 차이점?  (0) 2014.10.10
Posted by 구차니
Programming/php2014. 10. 14. 17:12
php 5.5 부터 Zend에서 기본 내장된 opcache라는 녀석이 있는데..
ARM에서 크로스 컴파일로 하려니

일단 dlopen 에서 패스를 하지 못해
extensions are not supported on this platform 이런 에러 발생..
이거야 configure에서 해당 부분을 강제로 스킵하게 하면 되지만

flock structure도 배를 째서..
그냥 강제로 flock_type=linux로 해서 컴파일 하는데 성공!

하지만 
정작 기능을 활성화 시키면
Fatal Error Unable to allocate shared memory segment of 8388608 bytes: unknown: Numerical result out of range (34)
에러를 발생한다.
opcache의 경우 opcache.memory_consumption 캐싱용량을 최소 8MB 이상으로 하기에 그 이하로 지정해도
무조건 8MB 이상으로 하기에 php.ini나 opcache.ini 에서 opcache.memory_consumption = 1M로 해도
뜬금없이 8MB로 나와서 헤메게 하는 부분.. -_-
그런 중요(?)한건 좀 메뉴얼에 제대로 명시하라고!! (디버깅 모드로 메시지 출력하도록 해서 발견)

opcache.memory_consumption integer
The size of the shared memory storage used by OPcache, in megabytes.
 
[링크 : http://php.net/manual/en/opcache.configuration.php] 

아무튼.. shared 메모리를 자꾸 외쳐서
/etc/sysctl.conf에서 설정해주고 리부팅 해도
이래저래 안되서.. 결론적으로 포기 ㅠㅠ

[링크 : https://www.msi.umn.edu/.../support/download/Linux_shared_mem_seg.html] shared memory
[링크 : http://pic.dhe.ibm.com/...com.ibm.swg.im.soliddb.accel.doc%2Fdoc%2Fsma.kernels.linux.html] sysctl
[링크 : http://stackoverflow.com/questions/17224798/how-to-use-php-opcache]
[링크 : https://github.com/zendtech/ZendOptimizerPlus/issues/134

'Programming > php' 카테고리의 다른 글

php.ini extension_dir  (0) 2014.10.20
php 5.3.22 / xcache 1.3.2  (0) 2014.10.15
php - extensions are not supported on this platform / arm  (0) 2014.10.14
php php-cgi 차이점?  (0) 2014.10.10
<? <?php 설정  (0) 2014.10.10
Posted by 구차니
Programming/php2014. 10. 14. 10:57
크로스컴파일 해서 넣는데
php / php-cgi를 실행하면 계속 확장기능을 쓸수 없다고 나와서
의아한 나머지 검색을 해보니

dlopen 이라는 녀석에서 no가 뜬다 -_-!!
Running system checks
checking for sendmail... no
checking whether system uses EBCDIC... no
checking whether byte ordering is bigendian... unknown
checking whether writing to stdout works... no
checking for socket... yes
checking for socketpair... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... yes
checking for yp_get_default_domain... no
checking for __yp_get_default_domain... no
checking for yp_get_default_domain in -lnsl... yes
checking for dlopen... no
checking for __dlopen... no
checking for dlopen in -ldl... yes 

소스를 뒤져보면.. dlopen이라는게 이렇게 있는데 
$ vi Zend/zend.h
#if defined(HAVE_LIBDL) && !defined(ZEND_WIN32)

# ifndef RTLD_LAZY
#  define RTLD_LAZY 1    /* Solaris 1, FreeBSD's (2.1.7.1 and older) */
# endif

# ifndef RTLD_GLOBAL
#  define RTLD_GLOBAL 0
# endif

# if defined(RTLD_GROUP) && defined(RTLD_WORLD) && defined(RTLD_PARENT)
#  define DL_LOAD(libname)          dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
# elif defined(RTLD_DEEPBIND)
#  define DL_LOAD(libname)          dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_DEEPBIND)
# else
#  define DL_LOAD(libname)          dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
# endif
# define DL_UNLOAD                  dlclose
# if defined(DLSYM_NEEDS_UNDERSCORE)
#  define DL_FETCH_SYMBOL(h,s)      dlsym((h), "_" s)
# else
#  define DL_FETCH_SYMBOL           dlsym
# endif
# define DL_ERROR                   dlerror
# define DL_HANDLE                  void *
# define ZEND_EXTENSIONS_SUPPORT    1
#elif defined(ZEND_WIN32)
# define DL_LOAD(libname)           LoadLibrary(libname)
# define DL_FETCH_SYMBOL            GetProcAddress
# define DL_UNLOAD                  FreeLibrary
# define DL_HANDLE                  HMODULE
# define ZEND_EXTENSIONS_SUPPORT    1
#else
# define DL_HANDLE                  void *
# define ZEND_EXTENSIONS_SUPPORT    0
#endif 

[링크 : http://www.opensource.apple.com/.../apache_mod_php-18.8/php/Zend/zend_extensions.c

*.so로 제공되는 확장기능을 당연히 dlopen()을 쓸수 없으면 dynamic linking을 쓸수 없기에 비활성화 되는 것 -_-
configure에서 강제로 해당 부분을 주석 처리하고 넘기는 수 밖에 없다. 
Name
dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym - programming interface to dynamic linking loader

Synopsis
#include <dlfcn.h>
void *dlopen(const char *filename, int flag);
char *dlerror(void);
void *dlsym(void *handle, const char *symbol);
int dlclose(void *handle);

Link with -ldl.

[링크 : http://linux.die.net/man/3/dlopen

'Programming > php' 카테고리의 다른 글

php 5.3.22 / xcache 1.3.2  (0) 2014.10.15
php 5.5.17 opcache / arm  (0) 2014.10.14
php php-cgi 차이점?  (0) 2014.10.10
<? <?php 설정  (0) 2014.10.10
lighttpd + php-fpm  (0) 2014.10.10
Posted by 구차니
embeded/ARM2014. 10. 13. 12:10
target만 지정하면 되는줄 알았는데 음..
target으로 지정할 경우
libtool에서 인식을 하지 못해 shared object등을 생성하지 못하는 문제가 있기에
host로 지정을 하라고 한다.

--build=BUILD BUILD 상에서의 빌드를 위한 설정 (i686?)
--host=HOST HOST 상에서 실행되는 프로그램을 빌드하기 위한 크로스 컴파일러 (arm-none-linux-gnueabi)
--target=TARGET TARGET을 위한 빌딩 컴파일러를 위한 설정

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

[링크 : http://stackoverflow.com/.../libtool-claims-it-does-not-support-shared-libraries-during-cross-compilation

'embeded > ARM' 카테고리의 다른 글

freescale imx283 boot error code  (0) 2015.01.07
Unknown HZ value! (91) Assume 100.  (0) 2015.01.05
iWMMX / iWMMXt - Intel XScale SIMD instructions  (0) 2014.10.08
thumb의 장단점?  (0) 2014.09.29
dsp & simd / neon  (0) 2014.09.22
Posted by 구차니
개소리 왈왈/컴퓨터2014. 10. 12. 23:28
집에 NAS를 하나 둘까 만들까 하면서
분가하면서 버려두었던 녀석을 다시 가져 왔는데..
케이스 사서 메인보드 이식하고 ATX 파워 넣고
SATA 스왑되는 케이스 사서 하나 만들어 볼까 싶기도 한데...



---

메인보드는 IPX7A-ION
[링크 : http://downloads.pointofview-online.com/Other/Mainboards/ION-MB330/manual_MB-ION-330_Mainboard.pdf]

cpu별 벤치마크
GbE의 경우 확실히 Atom 330으로 커버하기는 좀 힘든듯 하다
그래도 아주 부족하지는 않은 꽤 쓸만한 수준으로 나와 줄 것 같긴한데
물론 내장된 게 100M Fast Ethernet이라.. pci-ex GbE를 따로 사야 하는게 문제지만? -_-
[링크 : http://www.smallnetbuilder.com/...?option=com_content&task=view&id=30911&pop=1&page=0&Itemid=77]

예전부터 들어오던 녀석인데..
나중에 한번 USB로 부팅하도록 하고 구성한 다음에 웹 UI 살펴봐야 할 듯
[링크 : http://www.freenas.org/]
[링크 : http://honghome.tistory.com/539]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

UMID M1 블랙이 입양!  (0) 2014.12.23
umid m1 한대 더 지르기!!  (0) 2014.12.20
은근.. 붕 떠버린 내 데탑..  (0) 2014.10.03
nforce 560 / amd 770 HT 차이점?  (0) 2014.09.11
간만에 지름  (0) 2014.09.10
Posted by 구차니
게임/마비노기2014. 10. 12. 23:05
드디어!!  35만 두카트를 모아서 코끼리를 샀는데!!!
코끼리 엉덩이만 화면 가득 보이는 사태가 발생 -_-

부랴부랴 검색해보니..
언팩 계열 밖에 없는데.. 아내꺼를 보니 엉덩이보다는 멀리 보여서
이것저것 설정을 하보니 -_-!!!

줌 아웃 확장이라고 하니 맞는건 맞는데
딱히 와닫지 않아서 이게 시야각 관련 설정이라고는 상상도 못했네 -_-!!

 
Posted by 구차니
근데 영문판! ㅠㅠ

 
Posted by 구차니
하드웨어2014. 10. 10. 17:22



 

페이지 하나 띄우는데 못해도 30초..
하.. 쓰란거야 말란거야 -_ㅠ
(NAS지 웹서버가 아니란다?) 



결론 : 걍 NAS 만으로도 버거워 하는 애란다. 노인학대 하지마 

'하드웨어' 카테고리의 다른 글

HBM - High Bandwidth Memory  (0) 2015.06.17
HBA - Host Bus Adaptor  (0) 2015.03.19
LG NAS N2R1DD2 리셋  (0) 2014.09.23
자전거 속도계 센서  (0) 2013.12.14
OV7725  (0) 2013.06.20
Posted by 구차니
Programming/php2014. 10. 10. 16:58

php


php-cgi


php-cgi로 사용시에는
php를 강제로 바꿔치기 하면 위와 같이 텍스트로 깨져 나와버린다.

즉, php-cgi와 php는 비슷하지만 전혀 다른 결과물을 내는 별개의 프로그램이란 것 

'Programming > php' 카테고리의 다른 글

php 5.5.17 opcache / arm  (0) 2014.10.14
php - extensions are not supported on this platform / arm  (0) 2014.10.14
<? <?php 설정  (0) 2014.10.10
lighttpd + php-fpm  (0) 2014.10.10
php 5.3.22 버전 크로스컴파일시 주의사항  (0) 2014.10.08
Posted by 구차니
Programming/php2014. 10. 10. 14:49
기본값은
short_open_Tag = Off
(우분투 14.04 LTS / php5.5.9)

기본값이 Off 라서
<? phpinfo(); ?>가 실행이 안되었던 듯

일단 웹 표준(?) 문제나 파싱 문제로 인해서
기본은 Off 인 듯 하니 기억은 해둬야겠다 -_ㅠ

[링크 : http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=15692 ]
[링크 : http://php.net/manual/en/ini.core.php#ini.short-open-tag ]

'Programming > php' 카테고리의 다른 글

php - extensions are not supported on this platform / arm  (0) 2014.10.14
php php-cgi 차이점?  (0) 2014.10.10
lighttpd + php-fpm  (0) 2014.10.10
php 5.3.22 버전 크로스컴파일시 주의사항  (0) 2014.10.08
php - register_globals  (0) 2014.10.07
Posted by 구차니