php install

Philip M. Gollucci pgollucci at
Sat Apr 26 06:11:16 UTC 2008

Robert Munn wrote:
> I have installed PHP 5.2.5 with the following configuration line on a 
> 5.5-Stable system
> ./configure '--with-apxs2' '--with-gd' '--with-mysql' 
> '--with-jpeg-dir=/usr/local/lib' '--with-zlib-dir=/usr/local/lib' 
> '--with-freetype-dir' '--enable-sockets'
> The installation proceeds flawlessly.  When my application tries to send 
> smtp mail to gmail on port 465 I get the following message
> Warning: stream_socket_client(): unable to connect to 
> tls:// (Un
> able to find the socket transport "tls" - did you forget to enable it 
> when you con
> figured PHP?) in PHP5/SMTP5.php on line 129
> Informative but not very helpful.  Can anyone tell me how I enable "tls"?
in configure speak
--with-curl (depends on if libcurl has TLS support in it)

In ports speak
cd /usr/ports/ftp/php5-curl
make install

That will pull in
make WITH_GNUTLS=yes

That knob is important as it actually brings in the TLS part.
This port has an options dialogue to select it from.


> With  thanks in advance
> Robert Munn
> _______________________________________________
> freebsd-apache at mailing list
> To unsubscribe, send any mail to "freebsd-apache-unsubscribe at"

Philip M. Gollucci (pgollucci at
Consultant / /
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

More information about the freebsd-apache mailing list