General>HTML includes>Default Header" which I occasionally do and clicked on the "Update General Settings" button ..."> General>HTML includes>Default Header" which I occasionally do and clicked on the "Update General Settings" button ...">
Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2003
Posts: 239
Enthusiast
Enthusiast
Joined: Dec 2003
Posts: 239
Made a simple change to my "Display>General>HTML includes>Default Header" which I occasionally do and clicked on the "Update General Settings" button and got the following error message:

Quote
Control Panel Message

Failed to create a backup copy of the config.inc.php file. This file is found within your /includes directory and must be writable. Please fix the permissions and try again.

I checked the file permissions and it looks okay. See attached screenshot:

Any idea(s) what could be wrong?
Attachments
config.jpg


Artificial Intelligence is no match for natural stupidity!
Joined: Apr 2004
Posts: 1,973
Likes: 154
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,973
Likes: 154
The error is referring to the permission of the directory, not the original file.
This would be the permission for your /includes directory, as it is attempting to write the backup copy

path: includes/
original file that you already have: config.inc.php file
backup file that is trying to be created: config-bak.inc.php

go to Control Panel Permission > Tools & Information: Permission Checks
and confirm that "includes" shows as a green "OK"


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Dec 2003
Posts: 239
Enthusiast
Enthusiast
Joined: Dec 2003
Posts: 239
EVERY item in the "Permission Checks" section shows "Fail". Attached is the expanded "includes" permissions.
Attachments
includes=fail.jpg


Artificial Intelligence is no match for natural stupidity!
Joined: Dec 2003
Posts: 6,624
Likes: 84
Joined: Dec 2003
Posts: 6,624
Likes: 84
something has happened to all your folder file permission settings.

Refer to the install guide for reference.

https://www.ubbcentral.com/doc_install.php

Set File & Directory Permissions

Linux, Unix, and Mac Servers:
You must set the following permissions on the UBB.threads files and directories. You can use your FTP software to set these permissions. For exact information on setting permissions in your FTP client, see the documentation included with that program.

admin/ directory: set permissions to 777
files within the admin/ directory: set permissions to 666
cache/ directory: set permissions to 777
cache_builders/ directory: set permissions to 777
cache_builders/custom/ directory: set permissions to 777 (Required to edit Custom Islands)
files within the cache_builders/custom/ directory: set permissions to 666 (Required to edit Custom Islands)
gallery/ directory: set permissions to 777 (Required to use the Gallery feature)
directories within the gallery/default directory: set permissions to 777 (Required to use the Gallery feature)
includes/ directory: set permissions to 777
files within the includes/ directory: set permissions to 666
languages/ directory: set permissions to 777
languages/english/ directory: set permissions to 777
files within the languages/english/ directory: set permissions to 666
languages/english/admin/ directory: set permissions to 777
files within the languages/english/admin/ directory: set permissions to 666
sessions/ directory: set permissions to 777
styles/ directory: set permissions to 777 (Required to use the Style Editor)
files within the styles/ directory: set permissions to 666 (Required to use the Style Editor)
templates/compile/ directory: set permissions to 777
templates/default/ directory: set permissions to 777 (Required to use the Template Editor)
files within the templates/default/ directory: set permissions to 666 (Required to use the Template Editor)
tmp/ directory: set permissions to 777
uploads/ directory: set permissions to 777

Note: Some servers will not allow scripts to be executed out of a directory that is has 777 permissions, such as the dashboard.php file in the admin directory. If this is true on your server, your UBB.threads forum directory and the admin/ directory should be chmodded 775 or 755 with the files in the /admin directory chmodded 644.

suPHP with a allow_file_others_writeable value of disabled may generate lines containing "is writeable by others" to the error logs.

Where it generally isn't used by most forums, you can manage images in the control panel if you chmod the files and directories within the images/ directory appropriately (777 for directories, 666 for files).

Last edited by Ruben; 09/29/2022 10:04 AM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 239
Enthusiast
Enthusiast
Joined: Dec 2003
Posts: 239
Thanks....
FYI, directories were set to 755 and files to 664. I changed the Admin folder/files as suggested and then did the same to the Includes directory/folder likewise. The latter resolved the issue for the includes in the "Control Panel>HTML>default header" section.

Given what the remainder of the directories/files are set as above, do you think they can remain as is since no other problem(s) have occurred? And perhaps set the Admin directory/files back to what they were?

Thanks again for the information and help. smile


Artificial Intelligence is no match for natural stupidity!
Joined: Dec 2003
Posts: 6,624
Likes: 84
Joined: Dec 2003
Posts: 6,624
Likes: 84
They should be set that they are all consistent with the docs.
Bear in mind the note in the docs:

Note: Some servers will not allow scripts to be executed out of a directory that is has 777 permissions, such as the dashboard.php file in the admin directory. If this is true on your server, your UBB.threads forum directory and the admin/ directory should be chmodded 775 or 755 with the files in the /admin directory chmodded 644.


best thing to do is go back to the ubb control panel to Permission Checks and see if all is green or okay.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 239
Enthusiast
Enthusiast
Joined: Dec 2003
Posts: 239
All (except "includes") show as FAIL. The "includes" show as OK.


Artificial Intelligence is no match for natural stupidity!
Joined: Dec 2003
Posts: 6,624
Likes: 84
Joined: Dec 2003
Posts: 6,624
Likes: 84
Then fix them
Do one folder at a time If need be so you do not loose track of changes.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 239
Enthusiast
Enthusiast
Joined: Dec 2003
Posts: 239
[Linked Image from the-highway.com]


Artificial Intelligence is no match for natural stupidity!
Joined: Dec 2003
Posts: 6,624
Likes: 84
Joined: Dec 2003
Posts: 6,624
Likes: 84
Not sure what that means but okay.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 239
Enthusiast
Enthusiast
Joined: Dec 2003
Posts: 239
Done..... but most in the "Permissions Check" still show "Failed". Should those also be changed, e.g., all directories to "777" and all files within the respective directories to "666"?
Attachments
includes=fail2.jpg


Artificial Intelligence is no match for natural stupidity!
Joined: Dec 2003
Posts: 6,624
Likes: 84
Joined: Dec 2003
Posts: 6,624
Likes: 84
Yes ,which ever works for the includes be it 777 or 775 or 755 apply that to all the other folders.,they should all show green in permissions check to make sure all features work on your forum


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
1 member likes this: isaac
Joined: Jun 2006
Posts: 16,355
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,355
Likes: 125
Iirc if you click the directory it'll show the files having issues in the permission checker.

Files need proper permissions to be written, folders need proper permissions to be written to and executed from.

Proper permissions are required to utilize the language or template editors, perform upgrades, write the cache, and write configuration changes; they're pretty critical.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
1 member likes this: isaac
Joined: Dec 2003
Posts: 239
Enthusiast
Enthusiast
Joined: Dec 2003
Posts: 239
Okay guys...... All are now "OK"

Thanks for the help!! thumbsup


Artificial Intelligence is no match for natural stupidity!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Another error
by Baldeagle - 10/07/2024 9:08 PM
Is this a cookie issue?
by Baldeagle - 10/05/2024 2:01 PM
Search button not there
by ehill - 10/02/2024 2:56 PM
Change the Order of the buttons in a post
by Unixspot - 09/19/2024 10:04 PM
How do I get rid of this?
by Baldeagle - 09/12/2024 6:30 PM
Who's Online Now
2 members (Ruben, Baldeagle), 842 guests, and 85 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)