Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 03:06:33 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155540 Posts in 21712 Topics by 7759 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: WebsiteBaker Fix Permissions  (Read 1272 times)
mjm4842

Offline Offline

Posts: 227


« on: September 13, 2010, 07:03:37 AM »

___________________ ___________________ ______
DESCRIPTION

The attached tool, called Fix Permissions, is a standalone script (not a module) which, when placed and accessed in your home directory for your website, will reset the permissions for all WebsiteBaker related directories to the correct settings. See the following link for details on what these permissions should be.

http://www.websitebaker2.org/forum/index.php/topic,18526.msg123505.html#msg123505

Note: Incorrectly set permissions can be the hidden cause behind many issues with your website, from not being able to create or modify a new page to being unable to upload files, modules, templates and languages.

FYI: If you can't see the attachment, it's probably because you are not logged in.

___________________ ___________________ _____
CONFIGURATION

Fix Permissions will work as is. However, should you want to configure it for a specific purpose, there are some settings you can change.

Usiing a text editor to edit the file, you can configure three things:
  • The list of files
  • The permissions
  • Whether you want to apply the settings only to WebsiteBaker files or all files.

The settings are located near the top of the file.

___________________ ___________________ ______
INSTALLATION

Download the latest version of this tool by going to:
http://www.websitebakers.com/pages/tools/fix-permissions.php

Use FTP to upload the PHP file to the home directory of your website. Additional information will be displayed when you first access the script through your browser.

___________________ ___________________ ______
USAGE

Always be sure to test the PHP script out on a non-production system before you decide to trust it with your production site. There is NO UNDO feature. It is generally a good idea to have a working backup of your site before you run this script. Note that it does not touch the database in any way.

To run the script, simply access the file using your web browser. For example, www.yoursite.com/fix_permissions.php

You will be presented with two options:
  • Apply the changes
  • Preview the changes

The Preview screen will also give you the option to Apply the changes.

IMPORTANT: Be sure to remove this file from your server when you are done.

___________________ ___________________ _____
CREDITS

WebsiteBaker Fix Permissions - by Michael Milette (www.TNGConsulting.c a)
v0.2 - Added Preview option (2010-09-13)
v0.1 - Initial release (2010-09-11)

WebsiteBaker Fix Permissions (fix-permissions.php) by Michael Milette - TNG Consulting Inc. is licensed under the Creative Commons Attribution-ShareAlike 2.5 Canada License. To view a copy of this licence, visit http://creativecommons.org/licenses/by-sa/2.5/ca/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California 94105, USA. Permissions beyond the scope of this license may be available by contacting the author at www.tngconsulting.c a.

Thanks also go to erpe for his design of the common look and feel for third party applications which he developed in his WebsiteBaker Precheck (check-wb) project.

___________________ ___________________ _____
TROUBLESHOOTING

Although I have gone though a fair amount of testing both on Linux and Windows, just because the script worked for me doesn't mean it will work for you.

The requirements are:

  • An installed version of WebsiteBaker 2.7 to 2.8.1
  • Being comfortable editing PHP source code (if you want to customize it).

Note that, although it will run, this script doesn't appear to have any effect when running on Windows.

Should something go wrong with the script, you could loose access to your files on the server. Should this happen, a good strategy is to attempt to reset the permissions using the web-based file manager provided to you by your hosting provider. It can often be found, for example, in your cPanel or similar application. This application may have additional rights that you don't have when accessing the files through FTP or even a PHP script. The only alternative may be to to contact your hosting provider for assistance.

Other than that, it's simple and pretty straight forward. Be sure to also check out the Check-WB tool at:
http://www.websitebakers.com/pages/tools/check-wb.php

Hope this helps!

With warmest regards,

Michael Milette
« Last Edit: November 16, 2010, 03:55:23 PM by mjm4842 » Logged

Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________ ________


www.tngconsulting.c a
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #1 on: September 13, 2010, 07:24:05 AM »

for next version: can these file show the current permissions? maybe in red and green bevor start script.
or only the bad permissions.

first test show me changed permissions (in green smiley ) for thumbs-folder in media.

it works fine.
« Last Edit: September 13, 2010, 07:29:10 AM by dbs » Logged

mjm4842

Offline Offline

Posts: 227


« Reply #2 on: September 13, 2010, 08:09:12 AM »

Thanks for the suggestion dbs!

I knew someone would ask for a Preview option.

Anyway, you asked for it and here it is. See the original post above which now has the latest version attached.

With best regards,

Michael
Logged

Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________ ________


www.tngconsulting.c a
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #3 on: September 13, 2010, 11:42:02 AM »

This sounds like a very nice script! Thanks for your contribution, Michael!
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #4 on: September 13, 2010, 02:20:58 PM »

tested again and this ist a fine working script. should be a admin-tool.
maybe some stylings for a better look. wink
Logged

mjm4842

Offline Offline

Posts: 227


« Reply #5 on: September 13, 2010, 06:36:31 PM »

Hi dbs,

Thank you for taking the time to take a look at the script and for sending me your feedback.

An admin tool, eh? That's a great idea. I don't have time to work on that at the moment however if anyone else does, the help would be appreciated.

I also hear what you are saying about the styling. You should have seen it before I applied erpe's look to it.  tongue If you have any specific recommendations, please feel free to share.

With best regards,

Michael
Logged

Frustrated? Spending too much time developing when all you really want is a working website? Contact me directly if I can be of services to you.
___________________ ________


www.tngconsulting.c a
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #6 on: September 13, 2010, 06:45:34 PM »

Quote
You should have seen it before I applied erpe's look to it.
Cheesy
i can't styling, but we have some designers at the forum...  like stefek or others.
maybe ... they help.
Logged

dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #7 on: September 13, 2010, 06:55:43 PM »

edit:

the pre-check makes sense?

maybe should the first site only contain the big pre-check-button and after check is visible the fix-button?
Logged

Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #8 on: September 13, 2010, 09:13:22 PM »

edit:

the pre-check makes sense?

maybe should the first site only contain the big pre-check-button and after check is visible the fix-button?

Yes, that was I thinking as well... These scripts are clearly related.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!