Enabling eaccelerator gives openbasedir errors

From CPanelDirect
Jump to: navigation, search

This is a rare error, which I have seen only once. On one server enabling eaccelerator gave an openbasedir error, which was not present before:

Error Warning: Unknown: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/unfib/:/tmp:/usr/local/lib/php/) in Unknown on line 0

Which eaccelerator off there was no error.

To fix eaccelerator was compiled with --without-eaccelerator-use-inode

  ./configure \
  --enable-eaccelerator=shared \
  --with-php-config=$PHP_PREFIX/bin/php-config --without-eaccelerator-use-inode

Once compiled and enabled the error was gone.