WordPress Uploads directory (CHMOD operation not permitted) - php

I moved my WordPress website to another domain by same hosting provider.
At the previous webhosting the upload folder seemed to work with 755 CHMOD setup on uploads directory - all subdirectories were set to 755.
Now I'm facing a weird issue because the system threw an error that this folder is not writable under 755 setup.
So I changed the CHMOD setup of uploads dir to 777, uploaded the file and reverted back to 755. Weird thing is that the subdirs 2013/month are set automaticaly to 777 now and I can't change them.
I tried using recursion in FileZilla, but the response was
550 CHMOD 755 10: Operation not permitted
any suggestions how to resolve this?
thank you in advance for your posts.

I would contact your host and have them check the ownership and group of your folders/files. You may not have permission to change them yourself, which would explain the issues you're having in FileZilla.

Related

PHP file upload on ubuntu server

I have my files uploaded on Ubuntu server. Everything is working except file upload.
I have given the permission to all the files as 0644 and for the folders 0755.
As per the references i am supposed to change the folder permission to 0777 which i don't want to do.
Is there any other way to enable file upload on ubuntu server without changing the permission from 0755 to 0777 ?
Don't apply 777 permission to any of your files/folders in the server.
The files are not uploading mainly because of two reasons.
Incorrect ownership (user:group)
Incorrect upload path
This article will help to setup the proper file/folder ownership.
I hope this helps.

777 permission for folder to upload files

I want to know that if we set the 777 permission on a folder to upload filed, do we need to set the permission of internal folders as well or it will work inside the external folder for which we have set the permission
exp.
images/newfolder
if we set the permission of images, newfolder will allow uploading files automatically or not?
Actually the answer is no. Setting 777 permissions on a folder does not guarantee that all sub folders are also having the permission 777. Unless you do that recursively. So check which OS you use and do that recursively. I use linux (Ubuntu) and I can do this
sudo chmod -R 777 /path/to/dir/

Ubuntu server folder permissions

I have an uploads directory on my server, php upload works fine when folder's permission is set to 755 but if I make new dir inside uploads (uploads/subuploaddir) upload fails and I need to set 755 permission for this folder manually, so my question is how can I set 755 permission for uploads dir and all of it's future created sub directories?
PS. chmod -R 755 ...mypath/uploads doesn't work
Thanks in advance.
All answers are very appreciated.
Peter
UPDATE:
Problem solved, my fault. PHP creates folders with permission 777 as default and I created folders for testing purposes through FTP manually, so it was created by another system user and with different permission.
Use
umask(022);
in PHP before creating a file (e.g. line 1 in index.php). Using that option, every files that PHP creates will have a permission that equals to 755. If that doesn't work, search your code for calls to umask and change them to the one above.
you can use this command
chmod -R 755 directorypath or file

Magento Connect Manager & ftp write file permissions

After transferring my site from development domain to a live domain I have tried to use the magento connect manager to install an extension, however I keep getting:
CONNECT ERROR: Please check for sufficient ftp write file permissions.
Your Magento folder does not have sufficient write permissions, which downloader requires.
I have set my folder permissions to be:
root: 777
downloader (and recursively into directories only) 777
downloader/config.ini 666
media 777
media/downloadable 777
var 777
app/etc 777
app/code/community 777
var/cache 777
I have also used the magento file permissions cleanup tool located at this post: http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions
I have also flushed cache and disabled cache within the site for the moment.
Still no joy! I keep getting the same error message - can anyone advise?
Try downloader and its inner folders permission as 775 and files as 664.
Sometimes the group and user ownership (of files and folders) will change when moving from one host to another. Make sure that the files are owned and accessible to the web server.

unable to delete files on joomla install fedora 20

I can't get Fedora to allow med to delete installation files or write the configuration.php. I have chmod 777 all files and directories.
chown apache:apache all files.
It will work correctly if I copy the configuration.php to the directory. But then I can't upload templates because the joomla/tmp folder is not writable.
Any ideas how to get it to work?
Firstly, change back the file permissions. Do not make everything 777. Files should be 644 and folders should be 755.
The reason why you are not able to edit files or upload anything is due to the folder ownership. This is something that you hosting provider will need to sort out for you.
The actual problem was that SELINUX prevented apache from writing to disc.

Categories