0

I have set-up multiple PHP versions on single apache ubuntu instance using below tutorial.

https://gist.github.com/jbinfo/d297fcfdb151e25a299c

Both PHP versions working fine but php-geoip and php-redis extensions are missing.

How can I compile both extensions from source.

Is there any way to enable PHP extensions and modules from source

adminz
  • 397
  • 2
  • 4
  • 19

1 Answers1

1

You can compile php-redis following these steps and for GeoIP you can follow these steps and as a general rule each compilation process should generate a *.so file which you should move it to the extensions directory then enable it in php.ini for example extension="redis.so" this will make php.ini load the .so file from the extension dir that is configured for your php version. (sometimes make install will do that for you when you compile an extension)

Please note that php-redis, geoip is available through pecl in case you don't want to compile them

Mostafa Hussein
  • 136
  • 1
  • 6