Our PHP 7 Update - Catch404

Datetime:2016-08-23 01:29:30          Topic: PHP  Memcached           Share

Over the years I got tired of doing custom builds, so I been running off the Ondrej repository for PHP for quite sometime now. Unfortunately I am impatient and Ondrej does not yet have all the things you (and I mean, I) need to actually run a full PHP application. So here is what I had to do to get our server up on 7 using as much as Ondrej as I could, then manually adding Memcached and Imagick support running on Apache, on Ubuntu 14.04 Trusty Whatever.

Preparing and Installing PHP 7’s Core.

This process installed/replaced/updated the already existing PHP on the system that existed from a previous Ondrej 5.6 install. After installing you may have to change permissions on the session storage location. You will know because you will see it in the log.

Without the php-mysql your PDO won’t do jack.

Adding Imagick (ImageMagick) to PHP 7.

Of course watch the result from ./configure to see if you are missing any packages and resolve them via apt-get. Don’t forget the -dev version too.

After installing I had to manually add extension=imagick.so to /etc/php/7.0/cli/php.ini.

Adding Memcache (MemcacheD, actually).

This required me to update my source. You have to give it the D: new Memcache to new Memcached . API seems to be the same I changed nothing else and it is going.

Of course watch the result from ./configure to see if you are missing any packages and resolve them via apt-get. Don’t forget the -dev version too.

After installing I had to manually add extension=memcached.so to /etc/php/7.0/cli/php.ini





About List