I used a custom php build on My Centos server. Now I want to enable openssl extension in order to communicate with SSL.
Download and install openssl
#./configure && make && make install
You may use yum method to install it (yum install openssl*)
2. Next step is to start the php re-compilation. For this, have modified my config parameter in order to work with ‘openssl’
./configure –prefix=/usr/local/php –with-apxs2=/usr/sbin/apxs –with-xsl –with-mysql –with-config-file-scan-dir=/etc/php.d –prefix=/usr –exec-prefix=/usr –bindir=/usr/bin –sbindir=/usr/sbin –sysconfdir=/etc –datadir=/usr/share –includedir=/usr/include –libdir=/usr/lib –libexecdir=/usr/libexec –with-config-file-path=/etc –with-bz2 –with-curl –with-exec-dir=/usr/bin –with-png –with-zlib –with-pear=/usr/share/pear –with-zml –with-gd –with-libxml=/usr/lib –enable-calendar –with-openssl=shared –with-png –with-bcmath –with-mysqli –enable-soap -with-jpeg –enable-sockets –enable-mbstring –enable-shared –with-jpeg-dir=/usr/local –with-freetype-dir=/usr/local/lib –with-pdo-mysql=shared –with-gettext
#make && make install
I have modify the ext_dir (extension_dir = “/usr/lib/extensions/no-debug-non-zts-20060613″) location on php.ini and add a new line “extension=openssl.so” at the end of /etc/php/ini “file
[root@rc-040 php-5.2.9]# php -r 'phpinfo();' | grep openssl
Open the browser and verify “openssl “ is showing on phpinfo() function.