#34 closed defect (duplicate)
Apache can't start with PHP/xcache
| Reported by: | apachephp@… | Owned by: | moo |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.1 |
| Component: | cacher | Version: | 1.0 |
| Keywords: | Cc: | ||
| Blocked By: | PHP Version: | ||
| Application: | Need User Feedback: | ||
| Other Exts: | SAPI: | ||
| Probability: | Blocking: |
Description (last modified by moo)
My apache just does not to start with PHP/xcache with no log info.
Apache: 2.0.59
PHP: 5.1.6
uname -m;uname -r;uname -s;uname -v x86_64 2.6.13-15-smp Linux #1 SMP Tue Sep 13 14:56:15 UTC 2005 SUSE LINUX 10.0 (X86-64) model name : AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ stepping : 2 cpu MHz : 2010.328 cache size : 512 KB
How to deal with it?
Change History (6)
comment:1 Changed 7 years ago by moo
- Description modified (diff)
comment:2 Changed 7 years ago by moo
and paste your ini config here
comment:3 Changed 7 years ago by anonymous
Hi,
end of strace output:
open("/usr/local/accelerators/php/lib/php/extensions/no-debug-non-zts-20050922/xcache.so", O_RDONLY) = 11
read(11, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300g\0\0\0\0\0\0@\0\0\0\0\0\0\0\230\304\4\0\0\0\0\0\0\0\0\0@\0008\0\5\0@\0%\0\"\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\264:\1\0\0\0\0\0\264:\1\0\0\0\0\0\0\0\20\0\0\0\0\0\1\0\0\0\6\0\0\0\0@\1\0\0\0\0\0\0@\21\0\0\0\0\0\0@\21\0\0\0\0\0(\27\0\0\0\0\0\0\0\30\0\0\0\0\0\0\0\0\20\0\0\0\0\0\2\0\0\0\6\0\0\0xF\1\0\0\0\0\0xF\21\0\0\0\0\0xF\21\0\0\0\0\0\220\1\0\0\0\0\0\0\220\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0P\345td\4\0\0\0\30%\1\0\0\0\0\0\30%\1\0\0\0\0\0\30%\1\0\0\0\0\0|\4\0\0\0\0\0\0|\4\0\0\0\0\0\0\4\0\0\0\0\0\0\0Q\345td\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0\305\0\0\0\360\0\0\0V\0\0\0r\0\0\0\0\0\0\0g\0\0\0\0\0\0\0\0\0\0\0\255\0\0\0p\0\0\0M\0\0\0\356\0\0\0\226\0\0\0\0\0\0\0\0\0\0\0\245\0\0\0\220\0\0\0\0\0\0\0\334\0\0\0\247\0\0\0\323\0\0\0\267\0\0\0\35\0\0\0\271\0\0\0?\0\0\0\177\0\0\0H\0\0\0}\0\0\0\0\0\0\0\347\0\0\0\314\0\0\0\270\0\0\0\313\0\0\0\0\0\0\0\215\0\0\0\0\0\0\0\0\0\0\0w\0\0\0\231\0\0\0I\0\0\0\263\0\0\0\0\0\0\0\211\0\0\0\0\0\0\0\326\0\0\0\345\0\0\0\264\0\0\0\337\0\0\0\357\0\0\0\265\0\0\0\335\0\0\0B\0\0\0]\0\0\0\0\0\0\0(\0\0\0\0\0\0\0\0\0\0\0\277\0\0\0\344\0\0\0\305\0\0\0\0\0\0\0\254\0\0\0\340\0\0\0\0\0\0\0/\0\0\0\350\0\0\0\320\0\0\0\250\0\0\0\202\0\0\0\256\0\0\0\275\0\0\0>\0\0\0\0\0\0\0\240\0\0\0", 640) = 640
fstat(11, {st_mode=S_IFREG|0755, st_size=328783, ...}) = 0
mmap(NULL, 1136640, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 11, 0) = 0x2aaaac455000
madvise(0x2aaaac455000, 1136640, MADV_SEQUENTIAL|0x1) = 0
mprotect(0x2aaaac469000, 1054720, PROT_NONE) = 0
mmap(0x2aaaac569000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 11, 0x14000) = 0x2aaaac569000
close(11) = 0
futex(0x2aaaac3ea6f8, FUTEX_WAKE, 2147483647) = 0
brk(0x6d6000) = 0x6d6000
brk(0x6f7000) = 0x6f7000
brk(0x718000) = 0x718000
brk(0x739000) = 0x739000
brk(0x75a000) = 0x75a000
brk(0x77b000) = 0x77b000
rt_sigaction(SIGSEGV, {0x2aaaac462470, [SEGV], SA_RESTORER|SA_RESTART, 0x2aaaab6394c0}, {SIG_DFL}, 8) = 0
open("/dev/zero", O_RDWR) = 11
ftruncate(11, 128) = -1 EINVAL (Invalid argument)
mmap(NULL, 128, PROT_READ|PROT_WRITE, MAP_SHARED, 11, 0) = 0x2aaaac56b000
munmap(0, 128) = 0
close(11) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGSEGV, {SIG_DFL}, {0x2aaaac462470, [SEGV], SA_RESTORER|SA_RESTART, 0x2aaaab6394c0}, 8) = 0
chdir("/tmp/core") = 0
tgkill(7368, 7368, SIGSEGV) = 0
rt_sigreturn(0x1cc8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
I took php.ini-recommended from php 5.1.6 and added lines from xcache.ini.
my currect xcache sections:
[xcache-common]
;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
zend_extension = /usr/local/accelerators/php/lib/php/extensions/no-debug-non-zts-20050922/xcache.so
;; For windows users, replace xcache.so with php_xcache.dll
;zend_extension_ts = c:/php/extensions/php_xcache.dll
;; or install as extension, make sure your extension_dir setting is correct
; extension = xcache.so
;; or win32:
; extension = php_xcache.dll
; required for >=php5.1 if you turn XCache on
auto_globals_jit = Off
[xcache.admin]
xcache.admin.user = "mOo"
; xcache.admin.pass = md5($your_password)
xcache.admin.pass = ""
[xcache]
; ini only settings, all the values here is default unless explained
; to disable: xcache.size=0
; to enable : xcache.size=any size > 0 and your system mmap allows
xcache.size = 128
; uncomment and set to cpu count (cat /proc/cpuinfo |grep -c processor)
xcache.count = 2
; just a hash hints, you can always store count(items) > slots
xcache.slots = 8K
; same as aboves but for variable cache
xcache.var_size = 0
xcache.var_count = 1
xcache.var_slots = 8K
xcache.test = Off
; N/A for /dev/zero
xcache.readonly_protection = Off
; for win32, xcache.mmap_path=anonymous map name, not file path
; uncomment and change to "/tmp/xcache" for readonly protection
; 2 group of php won't share the same /tmp/xcache
xcache.mmap_path = "/dev/zero"
; leave it blank(disabled) or "/tmp/phpcore/"
; make sure it's writable by php (without checking open_basedir)
xcache.coredump_directory = "/tmp/core"
; per request settings
xcache.cacher = On
xcache.optimizer = Off
[xcache.coverager]
; ini only settings
; make sure it's readable (care open_basedir) coverage viewer script
xcache.coveragedump_directory = "/tmp/pcov/"
; per request settings, will be auto disabled if xcache.coveragedump_directory is not set
xcache.coveragedumper = Off
comment:4 Changed 7 years ago by anonymous
sorry, your wiki engine broke newlines in outputs
comment:5 Changed 7 years ago by judas_iscariote
We mantain SUSE packages of xcache and are tested in all distro targets with no problem
add this as a yast/smart/rug repository.
http://ftp-1.gwdg.de/pub/opensuse/repositories/server:/php/SUSE_Linux_10.0/
choose your PHP flavor , there is php5_hardened (currenly 5.1.6) and plain php5 (currently 5.2.0 RC3), both supporting xcache flawlessly.
comment:6 Changed 7 years ago by moo
- Resolution set to duplicate
- Status changed from new to closed
hrm... duplicate #35. upgrade to 1.0.1. and let's talk there.


i have no problem with apache2+mod_php5+xcache on linux
maybe u have wrong ini settings for xcache?
can u pls do a "strace -s1024 -f httpd ..."