FTP Access Issues

Hi.

I am a new customer. The installation went well and our server is running with virtualmin pro. The problem I am facing is when trying to access the public html folder via ftp. I am running joomla and it requires ftp access to upload content, plugins, and modules. Joomla is not being allowed access to the public html folder when I enter the FTP credentials. I also noticed that when I try and access the public html folder via ftp it is "read only". I think this may be the issue.

Can you explain why it may be configured for read only access, and how I can go about changing it to allow read and write access?

Thanks,

Jason

Status: 
Active

Comments

Assuming you configure Joomla to login as the domain owner via FTP, it should have full write access in a standard Virtualmin install.

What error message are you getting from Joomla exactly?

Also, because Virtualmin runs PHP scripts as the domain owner, Joomla should be able to write to the public_html folder directly instead of via FTP ... if it has an option for that.

Hi Jamie:

When in joomla I try and upload a new module and this is the response I receive:

  • JFTP::store: Bad response
  • Warning! Failed to move file.

My FTP settings in Joomla, under Global Settings are as follows:

Enable FTP: Yes FTP Host: I've tried my top level domain, local IP, and public IP FTP Port: 21 username: default virtualmin (top level domain without the dot net) username password: default password I created for my server instance FTP Root: /home/(domain)/public_html

The reason why I believe the FTP is on write protect is because when I try using SFTP though an FTP client, it is in "read only" mode. Is there a way to check the FTP settings?

Check what gets logged to /var/log/proftpd/xferlog (the proftpd log file) when you try to upload a file using Joomla ..

Thu Sep 24 21:29:48 2009 0 ::ffff:192.168.15.1 1646 /home/puresi/public_html/configuration.php b _ i r puresi ftp 0 * c

Thu Sep 24 21:45:14 2009 0 ::ffff:192.168.15.1 1650 /home/puresi/public_html/configuration.php b _ i r puresi ftp 0 * c

these are the last two attempts

Also, check what gets logged to /var/log/proftpd/proftpd.log

Sep 24 21:45:13 www.puresi.net proftpd[3774] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): FTP session opened. Sep 24 21:45:14 www.puresi.net proftpd[3774] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): USER puresi: Login successful. Sep 24 21:45:14 www.puresi.net proftpd[3774] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): FTP session closed. Sep 24 21:45:35 www.puresi.net proftpd[3775] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): FTP session opened. Sep 24 21:45:35 www.puresi.net proftpd[3775] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): USER puresi: Login successful. Sep 24 21:45:35 www.puresi.net proftpd[3775] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): FTP session closed.

last two sessions logged in the proftpd.log log file

ep 24 04:39:14 www.puresi.net proftpd[10827] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): FTP session opened. Sep 24 04:39:14 www.puresi.net proftpd[10827] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): USER puresi: Login successful. Sep 24 04:39:14 www.puresi.net proftpd[10827] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): using sendfile capability for transmitting data Sep 24 04:39:15 www.puresi.net proftpd[10827] www.puresi.net (::ffff:192.168.15.1[::ffff:192.168.15.1]): FTP session closed.

this was a bit different. maybe when I tried uploading the module into joomla?

Jamie:

I am still having FTP issues, but I deleted the domain and reinstalled. Tried FTP uploading which still didnt work, but turned off FTP and web uploading did work. It temporarily resolved the issue, but I'd still like to determine what is causing the FTP upload issues.

Are you sure the file wasn't actually transferred? Because I don't see any error message in the logs above .. perhaps Joomla thinks that it failed when it really didn't?