Support

Admin Tools

#14583 Fix Permissions Breaking Site

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Friday, 01 March 2013 10:59 CST

user19935

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes (however couldn't find the search functionality in the forum)
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.8
PHP version: 5.3.5
MySQL version: 5.1.54
Host: (optional, but it helps us help you) MediaTemple DV
Admin Tools version: 2.4.4

Description of my issue:

Hi-

When running the Fix Permissions, the entire site goes down. On the frontend, it's all white. In the backend, I'm getting the Forbidden error. When I run CHMOD to 777, the site comes back up. I've checked the files have proper ownership, so it's not owned by Apache. Any other thoughts on what could be causing this?

Thanks,

Kevin

nicholas
Akeeba Staff
Manager

The biggest question is, what permissions are you giving to those files when running Fix Permissions? By default, the permissions are set to 0755 for folders and 0644 for files. These are adequate for everything to work. If you change them to something like 0750 / 0640 (notice the last digit being 0?) then it's certain that on a shared server setup like the one you have you will be bringing down the site. So, I'd like to ask you, what permissions are you trying to give to your folders and files?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user19935

Thanks for the rapid response. The permissions are default 755 for directories/ 644 for files. It isn't shared hosting. We have everything on a dedicated virtual.

nicholas
Akeeba Staff
Manager

You will have to talk to your host. Requiring 0777 permissions is extremely insecure and would indicate a very big problem in the server setup.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user19935

Hi-

I understand 777 is risky, but that's not what the problem is. For all other sites, we have it has 755 directory/ 644 files. For some reason, when I run Fix Permissions, it breaks the site even though it's set to change to 755/ 644. Should I send you a separate note with login details? To your point, I really don't want to have the site at 777, but after Fix Permissions breaks it, I run the CHMOD to 777 in order to get it back up and running.

Thanks,

Kevin

nicholas
Akeeba Staff
Manager

On the site where the problem occurs, try manually setting 0755 for folders and 0644 for files. Does the site work or not?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user19935

Hi Nicholas-

Apologies for the delay... I thought I had responded to this. It does work when manually setting 755 for folders and 644 for files. I ran the "find path/to/directory -type d -exec chmod 755 {} +" and "find path/to/directory -type f -exec chmod 644 {} +" commands and the site is up and running. If I run the Fix Permissions in AdminTools, the whole site goes white.

So there is a workaround to get files/ folders to their permissions, however let me know if there's anything else I can provide to aid in troubleshooting.

 

Thanks,

Kevin

nicholas
Akeeba Staff
Manager

Hello Kevin,

I assume that your Admin Tools permsisions configuration prescribes different settings. The defaults are 0755 for folders and 0644 for files. That said, it allows you to change the defaults. If you use something like 0775 most good hosts will cut off access to your site on security grounds (and they are very correct on doing so!)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!