php install

Philip M. Gollucci pgollucci at p6m7g8.com
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://smtp.gmail.com:465 (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
/usr/ports/ftp/curl
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.

HTH



> 
> With  thanks in advance
> 
> Robert Munn
> 
> 
> 
> 
> _______________________________________________
> freebsd-apache at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-apache
> To unsubscribe, send any mail to "freebsd-apache-unsubscribe at freebsd.org"


-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci at p6m7g8.com)
c:703.336.9354
Consultant / http://p6m7g8.net/Resume/resume.txt
http://riderway.com / http://ridecharge.com
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