title: php compile with old openssl
body: <p>apache (on centos) use openssl 1.0.1</p>
  
  <p><strong>I want to compile php with different openssl vesrion.</strong></p>
  
  <p>first I install openssl with config</p>
  
  <blockquote>
    <p>./config --prefix=/usr/local --openssldir=/usr/local/openssl</p>
  </blockquote>
  
  <p>then I install php with configuration</p>
  
  <blockquote>
    <p>./configure --prefix=/usr/local --with-apxs2=/usr/bin/apxs
    --disable-phpdbg --with-openssl --with-openssl-dir=/usr/local/bin --disable-phpdbg-webhelper --with-mcrypt --with-pdo-mysql=/usr --with-mysqli=/usr/bin/mysql_config --enable-calendar --enable-ftp --enable-soap --with-curl --with-mcrypt --enable-opcache --enable-mbstring  --enable-bcmath --enable-sockets --with-mhash  --with-gd --enable-gd-native-ttf --with-ttf --with-gettext --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib</p>
  </blockquote>
  
  <p>header version change successful but library version did not change</p>
  
  <p>phpinfo</p>
  
  <blockquote>
    <p>OpenSSL Library Version - OpenSSL 1.0.1</p>
    
    <p>OpenSSL Header Version - OpenSSL 0.9.8</p>
  </blockquote>
  
  <p>what i did wrong?</p>
  
  <p>p.s. sorry for old question.</p>