how to use eAccelerator with PHP 5.3.2 and open_basedir
If you are getting an error like this after upgrading your PHP to 5.3.2 while using eAccelerator 0.9.6
open_basedir restriction. in Unknown on line 0
Then you have to re-compile eAccelerator with this option disabled:
--without-eaccelerator-use-inode
UPDATE: ignore my suggestion below for the disabled features – sadly the user cache is completely removed in eAccelerator 0.9.6 for reasons I don’t understand, except maybe their complexity against PHP 5.3
While you are at it you might as well turn on some of the other nifty features that are turned off by default:
--with-eaccelerator-shared-memory
--with-eaccelerator-sessions
--with-eaccelerator-content-caching
And don’t forget to lock down the control panel for eAccelerator if you are in a shared environment where others can upload PHP. This should be in your php.ini settings:
eaccelerator.allowed_admin_path="/home/example/public_html/path-to-control-panel/"
(obviously change the path to your control.php file)
also recommended once you recompile with “eaccelerator-sessions” in your php.ini
session.save_handler=eaccelerator
Which will speed up session data for PHP by using common memory instead of disk.
Leave a comment