eAccelerator issue

blog

Verified User
Joined
Jan 28, 2011
Messages
131
Hi

I have centos 6 php 5.3.19 install eAccelerator I have this error

eAccelerator: Unable to change cache directory /var/cache/eaccelerator permissions

permissions are set as 0777 and I have restarted the server

How I can fix issue?

many thanks.
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
Check the permissions and ownership for both /var and for /var/cache.

Jeff
 

blog

Verified User
Joined
Jan 28, 2011
Messages
131
Check the permissions and ownership for both /var and for /var/cache.

Jeff
Thank you for respond

I should change perm to 0777 for /var and /var/cache ?
What is ownership for both?

check perm and ownership

/var 0755 root
/var/cache 0755 root
/var/cache/eaccelerator 0777 root
 
Last edited:

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
Since I don't use eaccelerator, someone else will need to respond to your question.

Jeff
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,140
Location
GMT +7.00
Here what the official wiki says:

Step 4. Creating cache directory

One last very important step is creating the cache directory that you configured in the previous step. The default value is /tmp/eaccelerator It's easy because it's writable to everyone, but it isn't very smart because on a lot of systems this directory is cleaned on reboot. A better place would be /var/cache/eaccelerator. Create the directory and make sure it's writable for the user eAccelerator runs under (usually the user which you webserver runs as).

A safe bet is making it world writable. A safer and cleaner way would be to change the owner of the directory to the same user PHP runs as (most of the time the same user as Apache or Lighttpd) and set 0644 permissions.

The lazy way:
Code:
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
https://github.com/eaccelerator/eaccelerator/wiki/InstallFromSource#wiki-Step_4_Creating_cache_directory

So, if you use /var/cache/eaccelerator, then it also should be chowned to 0777.
 
Top