I have Joomla 1.5 installed with FTP enabled on my cPanel hosting.
I have created an FTP account exclusively for Joomla's use in cPanel.
FTP user-names in cPanel always use the following format '
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
'.
For security this FTP account is locked down to the public_html/ directory where Joomla is installed. This directory will be presented to the user as / (root) during the FTP session.
The problem:
When the FTP Username in Joomla's Global Configuration is set to '
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
' I receive the following error message concerning an unresolvable host name (I assume due to the parsing of the first @ character in the user-name):
Warning: fopen() [function.fopen]: Couldn't resolve host name in /home/user/public_html/administrator/components/com_jupdateman/libraries/joomla/filesystem/stream.php on line 166
I assume from the above error the FTP connection failed, and this means we see the following errors (which because of the above error does not mean much):
Warning: fopen(ftp://...@domain.com:password@127.0.0.1:21/tmp/jupgrader.xml) [function.fopen]: failed to open stream: Permission denied in /home/user/public_html/administrator/components/com_jupdateman/libraries/joomla/filesystem/stream.php on line 166
Download Failed: Local output opening failed: fopen(ftp://...@domain.com:password@127.0.0.1:21/tmp/jupgrader.xml) [function.fopen]: failed to open stream: Permission denied(43)
The resolution:
Modify the FTP username in Joomla's Global Configuration, and swap the @ character for a +, making it 'user+
domain.com'.
This resolves the "Couldn't resolve host name" error. However I am now presented with new errors...
The next problem:
Warning: ftp_chmod() [function.ftp-chmod]: Could not change perms on /tmp/jupgrader.xml: No such file or directory in /home/user/public_html/administrator/components/com_jupdateman/libraries/joomla/filesystem/helper.php on line 100
Update file does not exist: /home/user/public_html/tmp/jupgrader.xml
Parsing XML Document Failed!
jupgrader.xml does not exist in /home/user/public_html/tmp/ (presented as /tmp/ to the FTP user/session - see description of FTP account above)!