XCache + memcached?

Yes, I see two Apache restarts in the last hour, but not before that. I'm not sure how do I run PHP, how can I check this?
This is from Apache log:
Code:
[Fri Jun 21 11:35:52 2013] [error] [client 173.51.**] File does not exist: /var/www/html/404.shtml
[Fri Jun 21 11:36:16 2013] [error] [client 173.51.**] File does not exist: /var/www/html/401.shtml
[Fri Jun 21 11:36:18 2013] [error] [client 173.51.**] File does not exist: /var/www/html/favicon.ico
[Fri Jun 21 11:36:18 2013] [error] [client 173.51.**] File does not exist: /var/www/html/404.shtml
[Fri Jun 21 11:36:18 2013] [error] [client 173.51.**] File does not exist: /var/www/html/favicon.ico
[Fri Jun 21 11:36:18 2013] [error] [client 173.51.**] File does not exist: /var/www/html/404.shtml
[Fri Jun 21 13:20:12 2013] [error] [client 66.249.**] File does not exist: /var/www/html/robots.txt
[Fri Jun 21 13:20:12 2013] [error] [client 66.249.**] File does not exist: /var/www/html/404.shtml
[Fri Jun 21 15:40:36 2013] [error] [client 188.40.**] File does not exist: /var/www/html/phppath
[Fri Jun 21 15:40:36 2013] [error] [client 188.40.**] File does not exist: /var/www/html/404.shtml
[Fri Jun 21 15:40:36 2013] [error] [client 188.40.**] File does not exist: /home/admin/domains/sharedip/phppath
[Fri Jun 21 15:40:36 2013] [error] [client 188.40.**] File does not exist: /home/admin/domains/sharedip/404.shtml
[Fri Jun 21 15:58:01 2013] [error] [client 2.55.**] request failed: error reading the headers
[Fri Jun 21 15:58:17 2013] [error] [client 2.55.**] Invalid method in request mage/png,image/*;q=0.8,*/*;q=0.5
[Fri Jun 21 15:58:17 2013] [error] [client 2.55.**] File does not exist: /var/www/html/501.shtml
[Fri Jun 21 20:29:40 2013] [error] [client 173.51.**] File does not exist: /var/www/html/401.shtml
[Fri Jun 21 20:29:47 2013] [error] [client 173.51.**] File does not exist: /var/www/html/401.shtml, referer: http://80.179.**/xcache-**/cacher/
[Fri Jun 21 20:29:47 2013] [error] [client 173.51.**] File does not exist: /var/www/html/401.shtml, referer: http://80.179.**/xcache-**/cacher/
[Fri Jun 21 20:29:48 2013] [error] [client 173.51.**] File does not exist: /var/www/html/favicon.ico
[Fri Jun 21 20:29:48 2013] [error] [client 173.51.**] File does not exist: /var/www/html/404.shtml
[Fri Jun 21 23:06:10 2013] [error] [client 89.248.**] File does not exist: /var/www/html/phppath
[Fri Jun 21 23:06:10 2013] [error] [client 89.248.**] File does not exist: /var/www/html/404.shtml
[Fri Jun 21 23:06:10 2013] [error] [client 89.248.**] File does not exist: /home/admin/domains/sharedip/phppath
[Fri Jun 21 23:06:10 2013] [error] [client 89.248.**] File does not exist: /home/admin/domains/sharedip/404.shtml
[Fri Jun 21 23:52:20 2013] [error] [client 173.51.**] File does not exist: /var/www/html/favicon.ico
[Fri Jun 21 23:52:20 2013] [error] [client 173.51.**] File does not exist: /var/www/html/404.shtml


[Fri Jun 21 23:52:36 2013] [error] [client 173.51.**] File does not exist: /var/www/html/401.shtml, referer: http://80.179.**/xcache-**/cacher/
[Fri Jun 21 23:52:37 2013] [error] [client 173.51.**] File does not exist: /var/www/html/favicon.ico
[Fri Jun 21 23:52:37 2013] [error] [client 173.51.**] File does not exist: /var/www/html/404.shtml
[Sat Jun 22 00:03:33 2013] [error] [client 188.122.**] File does not exist: /var/www/html/phppath
[Sat Jun 22 00:03:33 2013] [error] [client 188.122.**] File does not exist: /var/www/html/404.shtml
[Sat Jun 22 00:03:33 2013] [error] [client 188.122.**] File does not exist: /home/admin/domains/sharedip/phppath
[Sat Jun 22 00:03:33 2013] [error] [client 188.122.**] File does not exist: /home/admin/domains/sharedip/404.shtml
[Sat Jun 22 00:10:02 2013] [notice] SIGHUP received.  Attempting to restart
[Sat Jun 22 00:10:04 2013] [notice] SSL FIPS mode disabled
[Sat Jun 22 00:10:04 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sat Jun 22 00:10:04 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sat Jun 22 00:10:04 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sat Jun 22 00:10:04 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 PHP/5.4.16 configured -- resuming normal operations
[Sat Jun 22 00:11:01 2013] [notice] caught SIGTERM, shutting down
[Sat Jun 22 00:11:03 2013] [notice] SSL FIPS mode disabled
[Sat Jun 22 00:11:03 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sat Jun 22 00:11:03 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sat Jun 22 00:11:03 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sat Jun 22 00:11:03 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jun 22 00:11:04 2013] [notice] SSL FIPS mode disabled
[Sat Jun 22 00:11:04 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sat Jun 22 00:11:04 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Sat Jun 22 00:11:04 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sat Jun 22 00:11:04 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 PHP/5.4.16 configured -- resuming normal operations
 
It looks like it restarts at the same time, twice, everyday.

Code:
[Wed Jun 19 00:10:01 2013] [notice] SIGHUP received.  Attempting to restart
[Wed Jun 19 00:10:02 2013] [notice] SSL FIPS mode disabled
[Wed Jun 19 00:10:02 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Jun 19 00:10:02 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Jun 19 00:10:02 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed Jun 19 00:10:02 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 PHP/5.4.16 configured -- resuming normal operations
[Wed Jun 19 00:11:01 2013] [notice] caught SIGTERM, shutting down
[Wed Jun 19 00:11:02 2013] [notice] SSL FIPS mode disabled
[Wed Jun 19 00:11:02 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Jun 19 00:11:02 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Jun 19 00:11:02 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed Jun 19 00:11:02 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jun 19 00:11:03 2013] [notice] SSL FIPS mode disabled
[Wed Jun 19 00:11:03 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Jun 19 00:11:03 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Wed Jun 19 00:11:03 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed Jun 19 00:11:03 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 PHP/5.4.16 configured -- resuming normal operations
 
Hmm, just wondering if apache is restarting when it's doing a log rotate as it does with Cpanel?
 
That will do it then. I know there is a fix for Cpanel where you enabled piped log files, which stops Apache needing to be restarted (does it every two hours in Cpanel).
 
Here we go again, my lovely seg faults came back after disappearing for 2 days when downgrading to Apache 2.2 from 2.4:
Code:
[Sat Jun 22 00:11:04 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 PHP/5.4.16 configured -- resuming normal operations
[Sat Jun 22 01:27:53 2013] [error] [client 87.69.**] request failed: URI too long (longer than 8190)
[Sat Jun 22 03:03:02 2013] [notice] child pid 1660 exit signal Segmentation fault (11)
[Sat Jun 22 03:04:11 2013] [notice] child pid 1756 exit signal Segmentation fault (11)

I think I'm going to give up. I have seg faults for 3 weeks already, and I can't debug this.
 
So, I gave up on Apache's seg faults and I went with LiteSpeed. So far so good, but it broke XCache, and it looks like they don't like each other (suPHP should be disabled in order to run XCache, which is pretty dumb).

I've enabeld PHP 5.5 ZO internal opcache, but I still want Datacache as well. Any recommendations?
I've read a lot on Varnish, but it looks like HTTP cache service that can go on top everything. DP said memchaced would make it slower on a single server configuration, but I see no choices for datacache except for that?

APC is out because of LiteSpeed and PHP 5.5. I had many problems with it on 5.4, so it's not an option.
 
How do you compile xcache, i refer that with wath options ?? what phpize version ?? i use xcache from version 1 and never have a segfault. I compile yesterday with php-5.4 and dont have any segfault.

My settings
Code:
xcache.admin.enable_auth    Off
xcache.cacher    On   
xcache.count    4   
xcache.gc_interval    3600   
xcache.mmap_path    /tmp/xcache.xxx   
xcache.readonly_protection    Off
xcache.shm_scheme    mmap   
xcache.size    256M   
xcache.slots    8K   
xcache.stat    On   
xcache.ttl    7200   
xcache.var_count    4   
xcache.var_gc_interval    300
xcache.var_maxttl    7200   
xcache.var_namespace    no value   
xcache.var_namespace_mode    0
xcache.var_size    1800M   
xcache.var_slots    8K
 
APCu works fine for me with php 5.5 and ZO+.
Isn't that kind of a conflict? APC is an opcache as well as ZO+


How do you compile xcache, i refer that with wath options ?? what phpize version ?? i use xcache from version 1 and never have a segfault. I compile yesterday with php-5.4 and dont have any segfault.

My settings
Code:
xcache.admin.enable_auth    Off
xcache.cacher    On  
xcache.count    4  
xcache.gc_interval    3600  
xcache.mmap_path    /tmp/xcache.xxx  
xcache.readonly_protection    Off
xcache.shm_scheme    mmap  
xcache.size    256M  
xcache.slots    8K  
xcache.stat    On  
xcache.ttl    7200  
xcache.var_count    4  
xcache.var_gc_interval    300
xcache.var_maxttl    7200  
xcache.var_namespace    no value  
xcache.var_namespace_mode    0
xcache.var_size    1800M  
xcache.var_slots    8K

XCache hasn't caused the seg faults I have. I had them before I've installed any cache software on my server. The seg faults are a long story and the cause is unknown since debugging them can take forever. Thus, I moved to LiteSpeed ant the deal is done.
 
Yes, it's filled. Did you check apc.php (the version shipped with project) ? I've added Apc in XF config as backend by the way.
 
PHP:
$config['cache']['backend'] = 'Apc';

I'm not sure it's actually needed but before I was using 'File' and I've figured it would be better to use memory instead of disk.

Anyway, you can test without and if you see it's filled in User Cache Entries when checking apc.php ; I guess you don't need to specify backend.

I can't say if I really see a different, as I did not test really without before, but it should help fore sure considering when you look at apc.php it's well filled with entries and hit a lof of time.
 
Last edited:
I was thinking something more complicated :)
Are you sure it's APC and not APCu in the config.php? I know that APCu uses the same API, but I'm not sure if it has the same setting.
 
APCu doesn't exist as backend and it's the same as APC just minus opcode cache. So 'Apc' should be fine, but again not sure if it's really needed.
 
Top Bottom