Apache

Fixing Fatal PHP PharException without disabling your accelerator

When you encounter Fatal error: PharException with message __HALT_COMPILER(); must be declared in a phar the easiest solution to keep your project environment the same is to convert the phar file into multiple PHP files and include them in the classic style !

Phar archive

Tags: , , ,

How to install eAccelerator in PHP 5.3 under CentOS 6

Current working system:

  • CentOS 6.4 final
  • PHP 5.3.3
  • Apache 2.2.15

Here is the issue: once you install eaccelerator (RPM from EPEL CentOS Repository with command: yum install php-eaccelerator) and phpMyAdmin 4.0.10.4 (also from RPM), you notice a big issue.

PhpMyAdmin

Php will start crashing running phpMyAdmin and in apache error logs.
[notice] child pid NUMBER exit signal Segmentation fault (11)

Tags: , , ,