Support request, for APC + Drupal 7 rather than the module but maybe someone here can help.

When I enable latest version of APC (3.1.9) on my cpanel server, my Drupal 7 sites return a mass of PHP errors (sometimes with WSOD), most starting with:

Notice: include_once() [function.include-once]...

Attached file shows my apc settings, which I put in php.ini. I have tried with and with the include_once override set to both 0 and 1 but it makes no difference.

However, Drupal 6 and Wordpress sites on the same server work OK with APC enabled.

I used cPanel's EasyApache to recompile Apache and PHP with latest versions, removing most unnecessary modules and eAccelerator. But the problem persists.

I will be very grateful for any pointers or solutions.

CommentFileSizeAuthor
php.ini_.txt663 bytesjohn_b

Comments

john_b’s picture

PS the only other PHP extensions enabled are "suhosin.so,pdo.so,memcache.so,pdo_mysql.so,xhprof.so,pdo_sqlite.so,sqlite.so". Using Apache prefork, and latest version of fcgi.

john_b’s picture

the problems are all with function.include_once, include, require_once
also Warning: Cannot modify header information - headers already sent by (output started at ../bootstrap.inc:1950)

john_b’s picture

Status: Active » Closed (fixed)
john_b’s picture

Status: Closed (fixed) » Active
john_b’s picture

Status: Active » Closed (fixed)

solved: (sorry to clutter the module issue queue, but maybe someone will find this useful).

pecl install APC installed showed as successful and shows up on phpinfo.php but installed a non-working apc.so (latest version). It also installed it with no exec. permissions. Manually setting the permissions on apc.so to 755 did not fix the problem.

Manual install of APC worked:
pecl -download APC
tar -xvf [name of .gz file]
cd APC.*
phpize
./configure
make
make test
make install

(If you face this problem, be aware that running pecl -install again will delete your manual install and all the directories it created.)

I have no idea what is going on here, or why the faulty install broke Drupal 7 but not Drupal 6.

mja’s picture

+1 for John_B. Couldn't get this working via PECL install of APC 3.1.9 on Ubuntu 12.04 LTS, but it did work when configuring manually. Weird...