简体   繁体   中英

instruction to enable ftp_ssl_connect on a LAMP stack

I'm trying to work with ftp_ssl_connect function (on LAMP Stack) for connecting to ftps (not sftp) site(s). I check for openssl instillation, and is available. I un-commented extension=php_openssl.dll , and that gave me the following error.

Error Message:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_openssl.dll' - /usr/lib64/php/modules/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
SSL not working

when I comment out extension=php_openssl.dll , I get the error message SSL not working.

How do I enable SSL or make SSL work?

The L in LAMP means Linux, and the .dll files are for Windows. You need to install php_openssl package from yum or apt or ports or whatever your linux distro uses. You might just need to find the line in either php.ini or extensions.ini for openssl.so and uncomment that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM