Eaccelerator Cached Scripts

Feb 8, 2007

Using version 0.9.5 with the default settings. The cache fills up the shared memory in less than a day. I noticed the cached script is stuck at 176, what happens after this? Will it cache content to disk in the temporary folder (/tmp/eaccelerator/) when the shared memory is full?

View 0 Replies


ADVERTISEMENT

Eaccelerator Eaccelerator.shm_ttl

Apr 30, 2008

Does anyone have a recommendation for the eaccelerator eaccelerator.shm_ttl setting? If it was left at the default of "0", this means no newer scripts would ever be cached once the memory is full. Or would it do additional caching on disk as well and not show up in the phpino.php file?

We have alloted 32 Megs of Ram for eA. Maybe something like this would help move some old scripts out of the cache?

eaccelerator.shm_ttl="86400"
eaccelerator.shm_prune_period="0"

View 0 Replies View Related

Cached Memory

Aug 24, 2007

I have a dedicated server with 1gb ram, now I see 468.02 MB used for Cached memory, this is the first time. Why could this be? I have not changed any settings except for turning off safe mode for an account.

View 6 Replies View Related

Users With Old SSL Certificates Cached

May 28, 2009

We renewed our SSL certificate about two weeks before it expired, and pushed the new one to our servers.

All has worked well, but a very small percentage of users are complaining that they're seeing errors that the certificate is expired.

Is there some browser or something that would cache the old certificate client-side even past its expiry?

View 2 Replies View Related

Cat /proc/meminfo Cached Value Too High

May 26, 2009

I have bough a dedicated server with 2GB Ram, i have installed Hypervm and so surpise when my server is using most of my memory.

I type cat /proc/meminfo
[root@srv ~]# cat /proc/meminfo
MemTotal: 1784832 kB
MemFree: 47576 kB
Buffers: 62976 kB
Cached: 1454172 kB
SwapCached: 84 kB
Active: 251024 kB
Inactive: 1347412 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 1784832 kB
LowFree: 47576 kB
SwapTotal: 2097144 kB
SwapFree: 2096988 kB
Dirty: 96 kB
Writeback: 0 kB
AnonPages: 81324 kB
Mapped: 26076 kB
Slab: 62488 kB
PageTables: 8844 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 2989560 kB
Committed_AS: 416152 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 2252 kB
VmallocChunk: 34359735799 kB

Is this normal when Cached: 1454172 kB?

View 3 Replies View Related

Redirect Cached Search Engine To New Dir

Aug 7, 2008

I recently reorganized my music site, putting my songs in their own directory (off of public_html), and now a couple of search engines are generating a boatload of 404 errors.

Can I redirect the file requests to the new location and, if so, how?

View 3 Replies View Related

Apache :: Secure Page Can Be Cached

Dec 18, 2013

When running OWASP ZAP web security tool, I get the following flag: Secure page can be cached in browser. Cache control is not set in HTTP header nor HTML header. Sensitive content can be recovered from browser storage.

I was surprised since i had the no cache header in both html code and httpd header.

After investigating the flag, i noticed that the response was a generic 302 found error response from Apach (located in apache/src/modules/http/http_protocol.c).

I have added a patch to code when adding the cache-control & pragma html headers with no-cache - and that had solved the security flag (patch attached).

full response given:
header:
HTTP/1.1 302 Found
Date: Sat, 30 Nov 2013 10:44:40 GMT
Server: Apache
X-Frame-Options: DENY
Location: https://*****
Content-Length: 376
Content-Type: text/html; charset=iso-8859-1

body:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://******">here</a>.</p>
<hr>
<address>Apache Server at 10.209.0.81 Port 443</address>
</body></html>

In conclusion:
Issue is "Secure page can be cached in browser." (found by owasp zap) for https page response "302 Found" from Apache.

View 1 Replies View Related

Mod_cache Does Not Cache The Homepage But The Rest Is Cached

Mar 23, 2009

As many of you may know mod_cache does not cache directory index
files, this can be fixed with mod_rewrite but the index page of the domain (the homepage) seems to be impossible to cache it. The following rules cache the folders but not the homedir (this means that www.thedomain.com/folder is cached but www.thedomain.com is not):
DirectorySlash Off
RewriteEngine On
RewriteCond %{REQUEST_URI} ([^.*])
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.htm" -f
RewriteRule "^(.*)$" "$1/index.htm" [NC,L]
RewriteCond %{REQUEST_URI} ^([^.*])$
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.html" -f
RewriteRule "^(.*)$" "$1/index.html" [NC,L]
RewriteCond %{REQUEST_URI} ^([^.*])$
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_URI}/index.php" -f
RewriteRule "^(.*)$" "$1/index.php" [NC,L]

Note that DirectorySlash should be off (or mod_dir not loaded) in
order to work also with URL that end with no slash

As I said before this will work for any folder but it does not work for public homedir
directory. So when a user visit [url] it does not
work (unless you type the name of the index file: [url]

For me it is critical to make this work in someway, the index homepage
is the main page that needs to be cached in my case (and in many
others).

Do you know any solution for this? I found the first message about
this in the Internet in 2002 but I'm using last version of apache
httpd and still does not work.

If you have no idea about how to fix it, maybe you know some other easy alternative. Lighttpd + mod_cache + mod_deflate are not compatible: "mod_cache can be used in conjunction with other lighttpd plugins (except mod_deflate and mod_secdownload)"

View 0 Replies View Related

Eaccelerator

Apr 14, 2008

When eAccelerator doesn't have enough free shared memory to cache a new script it will remove all scripts from shared memory cache that haven't been accessed in at least shm_ttl seconds. By default this value is set to "0" which means that eAccelerator won't try to remove any old scripts from shared memory.

Does that mean that once the shared memory is full, that even if a script that is in shared memory hasn't been accessed in 5 months, any new scripts will have to be ran off of the compiled versions on disk instead of being read out of the much-faster RAM?

View 3 Replies View Related

EAccelerator

Feb 4, 2007

i installed eAccelerator, everything look good, exept i have a problem with Wifidog-auth server that i have installed, it gives me errors that it cant connect to database.... but not all the times, could eaccelarator be doing this? it was fine before i installed EA

Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to database on localhost' in /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php:96 Stack trace: #0 /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php(321): AbstractDb->connect(NULL) #1 /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/Server.php(227): AbstractDb->execSqlUniqueRes('SELECT server_i...', NULL, false, true) #2 /home/lavals/public_html/auth1/wifidog-auth/wifidog/include/common.php(107): Server::getCurrentServer(true) #3 /home/lavals/public_html/auth1/wifidog-auth/wifidog/hotspot_status.php(53): require_once('/home/lavals/pu...') #4 {main} thrown in /home/lavals/public_html/auth1/wifidog-auth/wifidog/classes/AbstractDb.php on line 96

View 4 Replies View Related

EAccelerator And PHP 5.2.5

Nov 12, 2007

It seems that eAccelerator 0.9.5.2 is incompatible with the latest PHP 5.2.5.

Any else can confirm this?

View 3 Replies View Related

SuPHP Or EAccelerator

Jul 22, 2009

I have a Linux server for shared hosting in which I am using Cpanel/WHM. I have PHP running as suPHP which I believe is for security. The problem I am facing is a lot of PHP based websites create load on the server and consume as much as 10% of the CPU and sometimes some script even consumes 50% CPU. I think I can reduce the load caused by the PHP scripts by installing eAccelerator. However, it does not work with PHP running as suPHP. Can anybody tell me which one should I choose of the both? Is there any other way to reduce the load on the server?

View 14 Replies View Related

APC Vs EAccelerator Vs XCache

Mar 30, 2009

if anyone has run any tests or if there is a way to tell one of the other. I would like benchmark test them, just not sure how.

View 2 Replies View Related

Installing EAccelerator

Jun 22, 2009

I successfully installed eAccelerator and its already working fine then I decided to update my PHP version which is 5.1.6 to 5.2.6 after the upgrade eAccelerator is no longer loaded I tried recompiling eAccelerator but to no avail it doesnt load anymore I double checked eaccelerator.ini and it was already set. Someone said that the phpize that was installed in my server is not compatible to PHP5.2.6 and it needs to be updated also but I cant seem to update it since it always says that it is already updated.

I am using CentOS5.3.

View 2 Replies View Related

Install EAccelerator

Jun 6, 2008

I've got a CentOS 5.0 machine running PHP 4 & 5 in FastCGI mode with suPHP.

I've read the instructions to install eAccelerator at: InstallFromSource - eAccelerator - Trac

However there is a line at the beginning that says it is safe to follow those directions if you have ONE php install.

I have php5 as default and php4 optional. Does this count as 1 or 2 installs?

View 8 Replies View Related

Xcache Or Eaccelerator?

Jul 21, 2008

What do you think is better Xcache or eAccelerator and why?

I can see that xcache is a little bit faster but what is better to use?

View 4 Replies View Related

Xcache Or Eaccelerator

Mar 27, 2008

I have a server and I have several proxies on it together with some of my websites.
The thing is sometime it will overload.

I was thinking to install xcache or eaccelerator.

which should I install? Which is better?

View 7 Replies View Related

EAccelerator FC2 Install

Nov 6, 2007

running php5 on FC2 server and wish to install eAccelerator, if i do 'yum info eaccelerator' it shows following as available.

Quote:

Looking in Available Packages:

Name : php-eaccelerator
Arch : i386
Version: 4.3.11_0.9.3
Release: 4.1.fc2.rf
Size : 231.11 kB
Group : Development/Languages
Repo : Dag RPM Repository for Fedora Core 2

This seems out of date?

Is this correct package or should be looking for another one?

View 1 Replies View Related

Eaccelerator Crashing

Feb 22, 2007

After upgrading to php 4.4.5 from 4.4.4 I am getting this error in modern bill

[23126] EACCELERATOR: PHP crashed on opline 245 of session_register() at /home/user/public_html/modernbill/include/functions.inc.php:99

Anyone face this issue before? I've always used both EA and MB.

[eAccelerator]
zend_extension="/usr/lib/php/eaccelerator/eaccelerator.so"
eaccelerator.shm_size="4096"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="3"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="1"
eaccelerator.keys="shm_and_disk"
eaccelerator.sessions="shm_and_disk"
eaccelerator.content="shm_and_disk"

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.2
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.2
zend_optimizer.version=3.2.2

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

.htaccess file:

<Files .htaccess>
order allow,deny
deny from all
</Files>

DirectoryIndex index.php
Options -Indexes

php_value "magic_quotes_gpc" "1"
php_value "register_globals" "1"
php_value "error_reporting" "2039"

View 6 Replies View Related

How To Remove EAccelerator

Dec 8, 2007

How to remove eAccelerator, I updated my apache and there I got the option to install it ,and I installed it

View 7 Replies View Related

EAccelerator Error

Apr 5, 2007

Everything was working fine until I upgraded from PHP 5.2.0 to PHP 5.2.1. I compiled from source to upgrade, and I installed PHP 5.2.0 from source. Once I upgraded, eAccelerator complained that I had to recompile it again for it to work on 5.2.1. I did and it gave me the same error. I recompiled maybe 10 times and it has still complained about it. How do I fix this error?

View 2 Replies View Related

EAccelerator Settings

Nov 6, 2007

whether if its a good diea to enable these settings for eAccelerator?

eaccelerator.shm_max
eaccelerator.shm_ttl
eaccelerator.shm_prune_period

There are scripts which are accessed once a day and i guess i shoudl set to prune those scripts which arent accessed for a few hours or so?

View 9 Replies View Related

Module 'eAccelerator' Already Loaded

Oct 28, 2009

how I can get rid of this?

Code:
[28-Oct-2009 16:01:08] PHP Warning: Module 'eAccelerator' already loaded in Unknown on line 0

View 4 Replies View Related

Zend Optimizer & Eaccelerator

Feb 22, 2008

I read on some threads here, that installing Zend Optimizer and Eaccelerator, speeds up the box.

I already installed ZEND optimizer on my box, can someone explain benefit's of Eaccelerator , and how to install it and tweak it for best performance ?

Current Specs -

Quote:

PHP 4.4.8 (cli) (built: Feb 21 2008 01:17:23)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

View 9 Replies View Related

EAccelerator And Zend Optimizer

Feb 23, 2007

I am using PHP 5.2.1 (recently upgraded), Apache 2.2.4.

Before the upgrade, I had Zend Optimer and eAccelerator installed.

However, after upgrade of Apache and PHP + I had to reboot the server, I went on to reinstall eAccelerator.

Here is what php -v gave me :

=================
eAccelerator requires Zend Engine API version 220051024.
The zend Engine API version 220060519 which is installed, is newer.

contact eAccelerator at http://eaccelerator.net for a later version of eAccelerator.

PHP 5.2.1 (cli) (built: Feb 23 2007 11:36:11)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2006, by zend Technologies
with zend Optimizer v3.2.2, Coopyright (c) 1998-2006, by zend Technologies

=========================

the version of eAccelerator I tried to install is the latest one ( 0.95)

View 4 Replies View Related

Php 5.1 And Eaccelerator - Extra Performance

Feb 19, 2007

I tested eaccelerator with php 5.1.6 but I noticed just a very minor performance improvement. Eaccelerator is known for his incompatiblities, also php 5.1 is a big boy now and no longer need an accelerator.

View 2 Replies View Related

EAccelerator Cache Size

Feb 1, 2007

how big I should set the cache size for eaccelerator?

Here's the information from the control.php

Caching enabled yes
Optimizer enabled yes
Memory usage 100.00% (16.00MB/ 16.00MB)
Free memory 0.00MB
Cached scripts 148
Removed scripts 0
Cached keys 0

View 1 Replies View Related

Zend Opt., IonCube, EAccelerator [all At Once]

Apr 8, 2007

Install IonCube:
==================================

Code:
wget [url]
#### replace below with the version tree you have (I will use 4.4)
cp ioncube_loader_lin_4.4.so /usr/local/lib/php/extensions
Add this line BEFORE any other zend_extension (e.g. Zend Optimizer or eAccelerator).
(#### replace below with the version tree you have (I will use 4.4))

Code:
zend_extension = /usr/local/lib/php/extensions/ioncube_loader_lin_4.4.so
==================================

Install Zend Optimizer:
==================================

Code:
wget [url]
==================================

Install eAccelerator (cPanel):
==================================

Code:
wget [url]
==================================

View 14 Replies View Related

Eaccelerator Cache Emptying Cron

Apr 9, 2009

I'm sure all of you who use eaccelerator know how big the cache can get and that it needs emptied manually. Well at least to my knowledge it does, the only thing I have seen that you can configure is the shm pruning. If anyone does know such a feature with eaccelerator please share. But I also notice a performance decrease and a few php errors mostly related to memory allocations here and there.

Anyway I was piddling around and came up with a command to disable eaccelerator from php.ini, delete the cache folder and then enable it back. I figured this would be good as a daily cron. I would like some input if anyone knows any better ways.

So I wanted to share this in case someone else here has the same problems with eaccelerator cache folder getting huge. If anyone knows a way to make this better or shorter please reply with solution.

Of course this will vary depending on where your php.ini is and where your eaccelerator cache is. Just replace those values with yours. I'm sure there is also a way to use similar commands to find and input these values, again if anyone knows please share.

Code:
find /usr/local/lib -name 'php.ini' | xargs perl -pi -e 's/extension="eaccelerator.so"/;extension="eaccelerator.so"/g' ; rm -rf /usr/lib/php/eacc ; mkdir /usr/lib/php/eacc ; chmod 4777 /usr/lib/php/eacc ; find /usr/local/lib -name 'php.ini' | xargs perl -pi -e 's/;extension="eaccelerator.so"/extension="eaccelerator.so"/g'

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved