Install SVN PHP module from PECL on EasyApache 4

Basically, something is broken while attempting to install SVN module for PHP via “Modules installer” option. To manually install extension follow these steps: Download the SVN PECL package: wget pecl.php.net/get/svn-1.0.3.tgz Extract the package: tar xzf svn-1.0.3.tgz Run phpize for appropriate PHP version: /opt/cpanel/ea-php56/root/usr/bin/phpize Configure with appropriate PHP configuration: ./configure –with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config Edit the Makefile to add following CFLAGS: CFLAGS = -g -O2 -std=c99 Compile and install extension: make make install Create configuration for SVN extension: vi /opt/cpanel/ea-php56/root/etc/php....

May 23, 2017 · 1 min · Ivan Tomica

Enable GeoIP on PHP 7.0 on FreeBSD

Since pecl extension is compiled against PHP 5.6 in official FreeBSD repositories you’ll need to manually compile this PECL extension to have it included in PHP 7.0. Luckily for you process is really simple. Install autoconf so PHP can detect variables: pkg install autoconf Download latest PECL extension version from PHP’s website: fetch https://pecl.php.net/get/geoip-1.1.1.tgz Extract and configure it: tar -xzvf geoip-1.1.1.tgz cd geoip-1.1.1/ ./configure Finally, compile and install: make make install To have it loaded by your PHP-FPM (assuming you’re using it) include it in your php....

April 5, 2017 · 1 min · Ivan Tomica

Redis as PHP session handler on FreeBSD

This one is quite simple to be honest. Assuming you have Redis already installed and set up correctly you can just change your php-fpm pool definition to include: php_value[session.save_handler] = redis php_value[session.save_path] = "tcp://127.0.0.1:6379" If you’re using password for logging into redis you would specify it like: php_value[session.save_path] = "tcp://127.0.0.1:6379?auth=PASSWORD" Restart php-fpm after that: service php-fpm restart and you should now see PHP saving sessions within Redis service: 127.0.0.1:6379> keys PHPREDIS_SESSION* 1) "PHPREDIS_SESSION:GFtHQ69XH6C7xe5LLYzhJ35zUQACJw" ....

February 14, 2017 · 1 min · Ivan Tomica