I started getting a lot of errors with the following pattern
[Wed Mar 14 20:02:51 2012] [error] [client 126.96.36.199] PHP Warning: include(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www) in /var/www/zebulak/wp-admin/post-new.php on line 48, referer: https://www.zebulak.com/zebulak/wp-admin/edit.php
This is obviously related to the open_basedir setting in the /etc/php.ini.
But disabling open_pasedir is not an option since that would make the system less secure.
It turns out in the directory /etc/php.d there is an eAccelerater.ini.
moving this file to eaccelerator.ini-disabled fixes the problem. I have no other solution for this. I suspect that this is not needed if I am using APC (Alternative PHP Cache).
But now i get these errors:
PHP Warning: require(): Unable to allocate memory for pool.
So I disabled APC.ini and that made the error go away.
Some links advise an increasing the shared memory from 32M to 64M and decreasing the ttl to 0 in the apc.ini file. But since I don’t have enough memory to begin with I think I’ll hold off on this. At this point in time the performance of the site is pretty good for my small client-ail.