failed to open stream: Permission denied give error when I use SFTP and phpseclib 0.3.0

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

failed to open stream: Permission denied give error when I use SFTP and phpseclib 0.3.0

mohsin rathod

I used cakephp 2.7.6 , Apache server of Centos and Centos 6.7.

My application root directory is /var/www/Vasudev/

Vasudev is my application name.

I want to download a files from FTP server.

Suceessfully login and Listing the files for download in cakephp.

but Bellow error is not do download file.

/CDR/20151120-1232-1897856292-1897875064.cdrremote file
/root/Sansay Data/Data/Sansay 166-13-20151120-1232-1897856292-1897875064.cdrlocal file file
downloading started.
Warning (2): fopen(/root/Sansay Data/Data/Sansay 166-13-20151120-1232-1897856292-1897875064.cdr) [function.fopen]: failed to open stream: Permission denied [APP/Lib/phpseclib0.3.0/Net/SFTP.php, line 1458]
Code Context
fopen - [internal], line ??
Net_SFTP::get() - APP/Lib/phpseclib0.3.0/Net/SFTP.php, line 1458
FilemastersController::admin_file_download_ssh() - APP/Controller/FilemastersController.php, line 288
FilemastersController::admin_index() - APP/Controller/FilemastersController.php, line 157
FilemastersController::admin_call_download() - APP/Controller/FilemastersController.php, line 60
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 111
download ends.

I apply all the permission on directory when I store the my downloaded file.

plz give me solution.

Thanks and Regards,

Mohsin Rathod

Like Us on FaceBook
Find us on Twitter

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at
For more options, visit