Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

php eaccelerator messes up virtual webapps [solved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Vereinsinder
n00b
n00b
User avatar
Posts: 14
Joined: Fri Feb 18, 2005 12:23 pm
Location: Munich
Contact:
Contact Vereinsinder
Website

php eaccelerator messes up virtual webapps [solved]

  • Quote

Post by Vereinsinder » Sat Jun 30, 2007 6:49 am

Hi,

I encountered a really annoying behavior of eccelerator.

On my server I run several installs of wordpress using gentoo's webapp-config, all up to the same version. When the cache is empty all works as expected, it caches the called php pages. BUT when I access a different install of wordpress I get the sites that were cached for the installation i accessed before.

In the log of eaccelerator I see that the hits are for the wrong locations on the file system, it seems that eaccelerator only caches an checksum of the files accessed but not their actual path. E.g. all index.php for all wordpress installs are the same, as they are installed via webapp-config, and the cache hits for the first one accessed.

Are there any possibilities getting eaccelerator to run on a vhost environment?

Any help appreciated,
Steelynose
Last edited by Vereinsinder on Sat Jun 30, 2007 2:22 pm, edited 1 time in total.
Top
Vereinsinder
n00b
n00b
User avatar
Posts: 14
Joined: Fri Feb 18, 2005 12:23 pm
Location: Munich
Contact:
Contact Vereinsinder
Website

  • Quote

Post by Vereinsinder » Sat Jun 30, 2007 2:21 pm

Problem is solved, it was a use flag's fault ;-)

As webapp-config per default creates hard links, all installs of web apps point to the same inodes in /usr/share/webapp. When the use flag "inode" of eaccelerator is disabled, it checks not for the inodes anymore but creates md5 hashes of the accessed file.
Top
elgato319
Guru
Guru
Posts: 546
Joined: Thu Sep 15, 2005 9:45 am

  • Quote

Post by elgato319 » Thu Jan 22, 2009 12:58 pm

thanks for the great tip!

i've been looking for this problem for ages. it seems that xcache and apc have exactly the same problem.
but unfortunately those don't seem to have a switch to disable the inode check.

maybe webapp-config can be tuned to not use any symlinks at all
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic