开发者

Is there any PHP cache for ARM (AT91)?

开发者 https://www.devze.com 2022-12-21 22:34 出处:网络
I have a php application running on busybox httpd on an ARM-based embedded system. The application is quite slow but I would prefer not to rewrite it in C++开发者_StackOverflow. I\'m looking for a way

I have a php application running on busybox httpd on an ARM-based embedded system. The application is quite slow but I would prefer not to rewrite it in C++开发者_StackOverflow. I'm looking for a way to precompile/cache it on ARM but cannot find any of the systems to be available for this architecture.


I was able to compile APC into as static extension to PHP. The procedure is more or less following (using buildroot):

  • copy apc files to php/ext/apc
  • edit package/php/php.mk file and add --with-apc --enable-apc
  • remove .stamp_configured or similar file, remove configure, run ./buildconf --force
  • due to missing shm functions in uclibc, comment out whole part in apc_mmap.c that calls shm_open. There is a medium-size "if" there that calls shm
  • edit php Makefile and add -lpthread (ugly way)
  • make php from buildroot main dir
  • add apc configuration to php.ini

Good luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号