Closed MichaelMarkieta closed 11 years ago
Try it without Suhosin. We only test with stock PHP, although I don't really see why Suhosin would get in the way here.
Under @rlerdorf guidance, I set off to disable Suhosin
suhosin.simulation = On
Without any luck...
So I upgraded PHP:
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
which brought me up to PHP 5.4. I also updated my zendopcache installation
sudo pecl uninstall zendopcache-7.0.2
sudo pecl install zendopcache-7.0.2
Updated my opcache.ini
zend_extension=/usr/lib/php5/20100525/opcache.so
opcache.enable=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.error_log=/tmp/opcache.log
and enabled it
sudo php5enmod opcache
and now it works!
Note... the other option would have been to rebuild PHP 5.3 without Suhosin but I am not reliant on that version.
I wanted to see if the Zend opcache would work in my environment so I installed a standard drupal 7 site here: http://geoweb.geography.ryerson.ca/
Here is my opcache.ini
phpinfo() here: http://geoweb.geography.ryerson.ca/info.php
Wondering why enabling opcache breaks the standard drupal installation? Can someone see something obvious that I am missing (the site works with Zend opcache disabled)