550 Can't remove directory: Permission denied - joomla

Its been a day I'm facing this problem. I don't know if its because of the hosting server or my configuration in joomla.
I'm trying to upload my joomla website to ftp using akeeba back up. First, I uploaded kickstart.php and the akeeba file for the website and it is successful.
Now, I did the installation using akeeba and the last part which shows a modal which displays a button "View your sites front end". Instead of going to the sites front end It downloads an index.php file.. Same when I type in http://mywesbite.com/
I check my ftp files and the files are complete. Now, I want to delete my files in ftp to restart my installation but I cannot delete them.
Error is.
Command: RMD src
Response: 550 Can't remove directory: Permission denied
Command: CWD /public_html/media/k2
Response: 250 OK. Current directory is /public_html/media/k2
Command: RMD items
Response: 550 Can't remove directory: Permission denied
Status: Retrieving directory listing...
Command: PASV
Response: 227 Entering Passive Mode (184,75,241,225,130,147)
Command: MLSD
Response: 150 Accepted data connection
Response: 226-Options: -a -l
Response: 226 3 matches total
And when I even try to upload files from my computer to filezilla ftp..
Error is..
Status: Starting upload of C:\Documents and Settings\jacqueline\Desktop\k2\assets\images\system\warning.png
Response: 250 OK. Current directory is /public_html/media/k2
Command: MKD assets
Response: 550 Can't create directory: Permission denied
Command: MKD /public_html/media/k2/assets/images/system
Response: 550 Can't create directory: No such file or directory
Command: CWD /public_html/media/k2/assets/images/system
Response: 550 Can't change directory to /public_html/media/k2/assets/images/system: No such file or directory
Command: SIZE /public_html/media/k2/assets/images/system/video.png
Command: CWD /public_html/media/k2/assets/images/system
Response: 550 Can't check for file existence
Command: PASV
Response: 227 Entering Passive Mode (184,75,241,225,136,169)
Command: STOR /public_html/media/k2/assets/images/system/video.png
Response: 553 Can't open that file: No such file or directory
Error: Critical file transfer error
Response: 550 Can't change directory to /public_html/media/k2/assets/images/system: No such file or directory
Can anyone help me with this. I've been dealing with this the entire day. Please HElp

The problem is pretty simple.
Your files are owned by the Apache daemon rather than FTP User permission.
In case, if you want to remove anything, you will need to do that by the Apache daemon permission.
There are several ways:
1/ Using cPanel, use File Manager from cPanel to remove it or do a chmod to 777 for the whole files (which allow guest ~ FTP user to full control the files)
2/ Install a Joomla File Manager extension such as MijoFTP to do a chmod to 777 for the whoel files, and then you can use FTP to remove any files.
Hope it helps.

Related

Files system problems

Did clean installation of ddev on my Mac.
Set up Drupal 8 project and have problems with file permissions on sites/default/files folder. For some reason it resets the permissions I set (chmod -R a+w) and web server can't write to this folder afterwards.
Files are owned by uid_1000 gid_50.
Example of the message
Warning: file_put_contents(sites/default/files/php/twig/5c1ad9b345ce5_status-messages.html.twig_3IhisVoQLOYIb64NBegMDuHJs/.htaccess): failed to open stream: Permission denied in Drupal\Component\PhpStorage\FileStorage->ensureDirectory() (line 123 of core/lib/Drupal/Component/PhpStorage/FileStorage.php).

file_put_contents errors in Joomla

I have a Joomla 1.5.20 site and I am not able to upload & update any file in it. The website is running on a Windows Webserver.
Warning: file_put_contents(D:\inetpub\vhosts\hidden\httpdocs\v1\administrator\cache/da4f9e501a6359708d714f016ef2d500.spc) [function.file-put-contents]: failed to open stream: Permission denied in D:\inetpub\vhosts\hidden.tld\httpdocs\v1\libraries\simplepie\simplepie.php on line 8666
Warning: D:\inetpub\vhosts\hidden.tld\httpdocs\v1\administrator\cache/da4f9e501a6359708d714f016ef2d500.spc is not writeable in D:\inetpub\vhosts\hidden.tld\httpdocs\v1\libraries\simplepie\simplepie.php on line 1779
Warning: file_put_contents(D:\inetpub\vhosts\hidden.tld\httpdocs\v1\administrator\cache/da4f9e501a6359708d714f016ef2d500.spc) [function.file-put-contents]: failed to open stream: Permission denied in D:\inetpub\vhosts\hidden.tld\httpdocs\v1\libraries\simplepie\simplepie.php on line 8666
Warning: D:\inetpub\vhosts\hidden.tld\httpdocs\v1\administrator\cache/da4f9e501a6359708d714f016ef2d500.spc is not writeable in D:\inetpub\vhosts\hidden.tld\httpdocs\v1\libraries\simplepie\simplepie.php on line 1779
I have tried deleting and recreating cache folder. Since it is a windows webserver I don't it a permission issue. Please advise me on how to fix it. Thanks!
You need to check your folder permissions:
Login to Administrator panel
Select Help > System info from top menu
Select tab Directory Permissions, all folders listed here need to have 'Writable' permissions.
If any of those folders are Unwritable, login to your server with ftp client, or cPanel, and change folder's CHMOD permissions to 755

What Path is Magento Connect Trying to Change To After Login?

At every turn, I get the error message: “Deployment FTP Error. Cannot chdir after login to:”
I successfully did my first time through connection and setup by chmod’ing my /{complete_path_to_magento_installation_dir}/downloader/ to 0777
a cache.cfg file got created in /downloader/
a connect.cfg file got created in /downloader/
I then chmod’ed /{complete_path_to_magento_installation_dir}/downloader/ back to 0755
My Magento Installation Absolute Path is: /home/abcde/public_html/magento/
My Host’s Document Root is: /home/abcde/public_html/
My Magento Connect Directories Live at: /home/abcde/public_html/magento/downloader/
Here are my settings:
Magento Connect Channel Protocol: Ftp
Preferred State: Stable
Use custom permissions: No
Deployment Type: FTP Connection
FTP Host: ftp://{mydomain.com}/
FTP Login: my ftp userid
FTP Password: my ftp password
Finally, when Installation Path: is set to (see list below) I get the error message(s):
Installation Path: {I left it blank} Error Message: Unable to read saved settings. Please check Installation Path of FTP Connection.
Installation Path: / Error Message: Unable to read saved settings. Please check Installation Path of FTP Connection.
Installation Path: /home/ Error Message: Deployment FTP Error. Cannot chdir after login to: /home/
Installation Path: /home/abcde/ Error Message: Deployment FTP Error. Cannot chdir after login to: /home/abcde/
Installation Path: /home/abcde/public_html/ Error Message: Deployment FTP Error. Cannot chdir after login to: /home/abcde/public_html/
Installation Path: /home/abcde/public_html/magento/ Error Message: Deployment FTP Error. Cannot chdir after login to: /home/abcde/public_html/magento/
Installation Path: /home/abcde/public_html/magento/downloader/ Error Message: Deployment FTP Error. Cannot chdir after login to: /home/abcde/public_html/magento/downloader/
Installation Path: magento Error Message: Deployment FTP Error. Cannot chdir after login to: /magento/
Does anyone know the secret to Magento Connect Settings?
Thanks.
I had a similar issue that I was able to fix using
from the /usr/share/nginx folder
double checked that nginx runs as nginx.
chowned everything to nginx.
chmoded directories to 775 (Has to have group write privlages)
chmoded files to 644
Commands:
sudo find . -exec chown nginx {} \;
sudo find . -type d -exec chmod 775 {} \;
sudo find . -type f -exec chmod 644 {} \;
from the /usr/share/nginx/html folder
sudo chmod -R o+w media var skin downloader
sudo chmod o+w app/etc
The same should work for apache, just chown everything to apache or noname depending on how apache is setup.
This problem lied with the Installation Path for me. For example: My site was installed on a subdomain, but the FTP user had access to the main domain and subdomains. Therefore, when it connected it needed an initial directory of "magneto" (my subdomain for this install).
I would FTP into your site (with no initial directory set in your FTP client) and make note of which folders you navigate into. That should work in many cases, although it could vary host to host.
Same problem was experienced by me :
I resolved it by doing the following changes:
777 ---------> /downloader folder
777 ----------> /var folder
777 ----------> /media folder
disabled cache
flush cache
flushed javascript,images and all other mentioned cache.
Kept installation path empty or u can add /Hopes this helps you.Good Luck.
Just put the path as "/" and it should work.

Unable to copy .ftpquota

Trying to make a backup using FileZilla. All files copied but for .ftpquota got this error,
Command: RETR .ftpquota
Response: 550 Can't open .ftpquota: Permission denied
Error: Critical file transfer error
I have changed the access to 777 but still the problem is there. Any solutions? Thanks
Unless you own your own company and are backing up one of your customers servers, you don't need .ftpquota copied in a backup.
Edit: Though to answer your question, I believe it's due to it being open in a program on the server. Probably the FTP server, try turning off your FTP quota on the server (if possible) and see if that makes a difference.

FTP permission denied error

I am trying to FTP a RAR (zipped) file to another server but am having problems doing so. This is a Windows environment. I know that my FTP connection is setup correctly because I have already transferred over several other RARs. But the difference from what I can tell is that this RAR that is failing is larger in size. It is 761 MB. So when I try to "put" it into the other server, I get the following:
200 PORT command successful.
150 Opening BINARY mode data connection for WCU.rar.
> WCU.rar:Permission denied
226 Transfer complete.
However, the file is never transferred over. Is there a size limitation? And FYI, WCU.rar is a zipped directory, not a file. But I was able to successfully FTP over several other zipped directories.
it can be size limitation, not just stored data but as well transfered data.
did you try to transfer a small file? a small file in the same format? I would say, permissions, but you said that you uploaded already files to this server.
just to help you debug, you can add both commands to your ftp session
ftp> hash
ftp> bin
WCU.rar:Permission denied
You don't have permission to write to that directory. You need write permissions on the folder in order to do so.

Resources