Downloading all the files in a directory with cURL

If you’re not bound to curl, you might want to use wget in recursive mode but restricting it to one level of recursion, try the following; wget –no-verbose –no-parent –recursive –level=1 \ –no-directories –user=login –password=pass ftp://ftp.myftpsite.com/ –no-parent : Do not ever ascend to the parent directory when retrieving recursively. –level=depth : Specify recursion maximum depth … Read more

Error message “500 OOPS: vsftpd: refusing to run with writable root inside chroot()” [closed]

This blog here points out how to fix this problem. http://www.mikestechblog.com/joomla/operating-systems-section/operating-systems-ubuntu/155-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot.html The issue being that the user’s root directory is writable. The Frontier Group provides you with a fix on vsFTPd. Here are the steps to be taken (copy paste from the tutorial, in case the link dies) login as root (or sudo..) and do … Read more

FtpWebRequest returns error 550 File unavailable

This error can be caused because of several reasons like file is not present on server, security permissions on file etc. etc. First you need to find out the exact cause of error. This can be achieved by using following code- try { //Your code } catch(WebException e) { String status = ((FtpWebResponse)e.Response).StatusDescription; } Once … Read more

200 PORT command successful. Consider using PASV. 425 Failed to establish connection

Try using the passive command before using ls. From FTP client, to check if the FTP server supports passive mode, after login, type quote PASV. Following are connection examples to a vsftpd server with passive mode on and off vsftpd with pasv_enable=NO: # ftp localhost Connected to localhost.localdomain. 220 (vsFTPd 2.3.5) Name (localhost:john): anonymous 331 … Read more

Create symbolic links on server without SSH available?

Use a script. If you have sh, bash or csh available, then you’re nearly as good as if you had an ssh access. If you don’t, then most other scripting languages allow you to create symbolic links on your server. For example, in PHP you would use the symlink() function: symlink(“myOriginalFileOrDirectory”, “mySymbolicLink”); I just had … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)