How to use the TLS server port 587 on OJS 2.8.0

how to use the TLS server port 587 on OJS because I can not use the server SSL port 465 …

please guidance how to use TLS port 587 …
because when I use the TLS port 587 to the error log appears =

[19-Mar-2017 15:31:48 UTC] ojs2 has produced an error
Message: WARNING: fsockopen(): Failed to enable crypto
In file: /home/u3584193/public_html/ojs/lib/pkp/classes/mail/SMTPMailer.inc.php
At line: 134
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.45
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.54-cll
[19-Mar-2017 15:31:48 UTC] ojs2 has produced an error
Message: WARNING: fsockopen(): unable to connect to tls://smtp.gmail.com:587 (Unknown error)
In file: /home/u3584193/public_html/ojs/lib/pkp/classes/mail/SMTPMailer.inc.php
At line: 134
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.45
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.54-cll

This looks to be primarily a system-level question (OS and PHP) rather than an OJS question. There may be some good guidance on other forums, such as this post on StackOverflow:
http://stackoverflow.com/questions/40534135/fockopen-failed-to-enable-crypto