theThe problem was openssl, well, I installed openssl 0.9.8 from source:
https://www.openssl.org/source/old/0.9.x/openssl-0.9.8.tar.gz:
moveMove to /usr/src/usr/src compile it, and install it without man pages due to an error:
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl no-asm -fPIC
make
make install_sw
thenThen i compile phpphp with this options:
./configure --with-openssl=/usr/local/openssl --with-openssl-dir=/usr/local/openssl --with-curl --enable-ftp --with-ldap --with-apxs2 --enable-bcmath --with-bz2 --enable-calendar --enable-exif --enable-mbstring --with-mhash --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-zip --with-zlib
make
UPDATE: works for 5.6.28 too