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.
| Comment | File | Size | Author |
|---|---|---|---|
| php.ini_.txt | 663 bytes | john_b |
Comments
Comment #1
john_b commentedPS 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.
Comment #2
john_b commentedthe 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)
Comment #3
john_b commentedComment #4
john_b commentedComment #5
john_b commentedsolved: (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.
Comment #6
mja commented+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...