News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Permissions on folder

Started by pocttopus, February 10, 2019, 08:33:03 AM

Previous topic - Next topic

pocttopus

Hello folks,

I am on localhost to test the 2.1rc and I have an issue.
I need to change permissions on some folder, but permissions are writable.  :-\
How can I solve this?
The directory: /home/public_html/forum/avt has to be writable to continue the upgrade. Please make sure permissions are correctly set to allow this.

Arantor

Holder of controversial views, all of which my own.


Gwenwyfar

Try repair_settings.php too, I think that error also shows if the settings are incorrect, if it's in the upgrader.

pocttopus

Quote from: Arantor on February 10, 2019, 11:39:41 AM
Writable by whom?
I don't know either.
I just want to make an upgrade from 2.0.15 to 2.1rc on localhost to test firstly.

Quote from: Gwenwyfar on February 10, 2019, 11:49:54 AM
Try repair_settings.php too, I think that error also shows if the settings are incorrect, if it's in the upgrader.
repair_settings.php to fix this? I will try but I don't know what has to be fixed.  :-\

Gwenwyfar

You just need to make sure all paths are correct to where the folders actually are.

Arantor

Well, you said you'd made it writable - the problem is that just making it writable may not be enough. You seem to have a Linux localhost, in which case the files being writable is absolutely in no way a guarantee of anything - the files + folders are likely not owned by the user being the webserver, which may be www-data or apache2 (on Linux, Apache runs as its own user)

I trust the installer to install correctly in terms of physical paths, and I trust the upgrader not to break existing paths, so I'm assuming it is a permissions problem rather than configuration.
Holder of controversial views, all of which my own.


pocttopus

I have used again repair_settings.php and now upgrade went fine.
Thanks folks, you are very kind.  :)

I'll mark this topic as solved.  ;)

Gwenwyfar

Great :)

I had the same error so figured this might be the cause. And this is probably a bug in the upgrader, granted it can actually tell the difference between the two errors to not say it's a permissions issue.

Advertisement: