Migrating to Apache 2.4 and PHP 5.6
A few gotchas when migrating to debian jessie.
I recently upgraded my webserver to Debian Jessie, which included an upgrade for Apache and PHP. This resulted in a few gotchas…
Mod_python and WSGI don’t play nicely
See my previous post on the subject…
Some PHP extensions not installed
Some PHP extensions didn’t seem to be automatically upgraded/reinstalled (these may have been ones previously only available through PECL), so:
|
1 2 |
apt-get install php5-gnupg php5-mongo /etc/init.d/apache2 restart |
New permissions
Apache 2.4 uses a different permissions (access / deny) arrangement than before, so you need to change these over.
So for example, where you have:
|
1 2 |
Order deny,allow Allow from all |
You’d now have:
|
1 |
Require all granted |
Apache have a good guide here.
Random crashes with XCache
If you have XCache installed, you might start getting random crashes, often with an error about:
PHP Fatal error: Cannot redeclare class ...
This is caused because the installer installs and activates the Zend Opcache module automatically, and you can’t run two opcode caches safely.
|
1 |
php5dismod opcache; /etc/init.d/apache2 restart |
Leave a Reply