unable to delete files on joomla install fedora 20 - php

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.

Related

Correct File/Dir Permissions for Wordpress on CentOS

I am looking for the correct way to set up permissions on files and directories so that FTP user can update the files while HTTPD process can read/write everything inside wp-content.
Basically, we need to add apache user to USER group and vise-versa then set 664 and 775 on files/dirs and that will work.
The problem is with files being uploaded via FTP gets 644 and ownership by USER while files created by apache will have ownership of apache.
Could be great if someone can help here based on experience and tests and not only on guessing.
Thank you all!
I am looking for the correct way to set up permissions on files and directories so that FTP user can update the files while HTTPD process can read/write everything inside wp-content
all file folders need to be "0755"
all files need to be "0644"

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.

WordPress Uploads directory (CHMOD operation not permitted)

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.

Drupal Settings file does not exist

I'm trying to set up a fresh install of drupal on on linux box and I'm getting the error:
Settings file The settings file does not exist.
The Drupal installer requires that you create a settings file as part of the installation process. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php. More details about installing Drupal are available in INSTALL.txt.
I have set the permissions for the settings.php file but it is still doing it. sites,default and files all have 777 permissions but it still won't work. I have both the default.settings.php and settings.php in the default folder.
Thanks
You have to keep in mind some things:
Your web server has to have the permission to run your code. If you are using Ubuntu, it would be better if you give www-data.www-data (user and group) permission to sites/default folder
To give 777 to files is dangerous because someone else can read this sensible file
Remember that all folders, including your Drupal root folder has to be readable, which means it has to have some thing like 755 permission.
Most time, this problem is related to the user running the web server and files.
Change back the settings.php permission.change settings.php permission to 755. (read only, to make protected)
Step by step:
Copy file default.settings.php to settings.php (do not rename). Now you have both files.
Change file permission settings.php to read/write with chmod 644 settings.php
Continue the installation..
After all installation finished, change file permission settings.php to read-only with chmod 755 settings.php
I hope it helps you
I have fixed that by this:
chown -Rv apache:apache /var/www
go to the directory that contain default.settings.php & settings.php files then, right click on each one then click on Get Info then scroll down until you see the permission of that file, make sure it's 'read & write' enter image description here

Categories