FTP permissions

Started by Yourmum90, May 24, 2011, 06:36:08 AM

Previous topic - Next topic

Yourmum90

Hi All,

I am quite confused on what the permissions for the forum needs to be set at, i currently have a problem customizing the email templates as i get an error as described on page 2 here - http://www.simplemachines.org/community/index.php?topic=428236.msg3052944#msg3052944

I have checked the support manual and it says your permissions may need to be: 644, 664 or 666 for files agreement.txt, Settings.php, Settings_bak.php and install.php. and then for folder it needs to be 755, 775 or 777 for /attachments, /avatars, /Packages, /Packages/installed.list, /Smileys, /Themes, /Themes/default/languages/Install.english.php

But all of the above permission numbers are different how do i know which ones to use? also do i need to have the index.php permission set to something particular? i had no issues installing this before on a different forum.

Thanks,


kat

If you go to Admin>Packages>File permissions>Use predefined permission profile: and set that to "Standard", you won't go far wrong. :)

Illori

K@ I think the op can not access their forum to set that... so they would need to manually set the permissions. I would start with 755 on all folders and i think it is 644 on the files and see if that works. not all servers like 777 permissions.

Yourmum90

Hi Both,

i seem to be able to access everything, ie. use the forums, post messages, changes settings etc.. the only issue i seem to have is the modification above, i was wondering if the message meant anything to anyone else.

Rich

Illori

then the files for the mod are not chmod'ed correctly for your server, you will need to find out which files they are and verify their file permissions.

kat

That message only refers to index.php, though.

As long as it's read-enabled, it should be OK and you should be able to read it.

I'd say go for 755 on that file.

Yourmum90

Yeah that's the strange thing it's already got those settings, not to sure where to go now, the mod creator advised speaking to the host but i have had this installed on the same host but different forum just yesturday.

Illori

does not hurt to ask your host to check your permissions and ownership anyway.

Yourmum90

Will do, i have even compared the index.php files between the old forum and new one and they are both the same file size and permissions

Illori

did you check the file permissions on the files added by the mod as suggested above?

Yourmum90

I only checked the index.php as the error pointed out but i might have a look at all the files and check the permission types.

Yourmum90

I have recieved a message from the host to say that The website link http://www.blackphoenix.org.uk/forum/index.php is working correctly and with the correct permissions from there end. I am almost tempted to just not use the modification but i can't for the life of me think why this would be an issue as it worked on www.blackphoenix.org.uk/forums just last night and to install it i did nothing different.

SlammedDime

Can you post a link to a phpinfo page?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Yourmum90

I appologise if this is incorrect but the PHPinfo page is the error message? if so you should see it here,

http://www.blackphoenix.org.uk/forum/index.php?action=admin;area=emailtemplates;query=add;template=event_reminder

i f change the permisson for the index.php to 777 i get a different error, not to sure if it's relavent as this makes the whole forum stop loading.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Server at www.blackphoenix.org.uk Port 80

SlammedDime

Copy this text into a file named phpinfo.php and place it in your forum folder and link to it...

<?php
phpinfo
();
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     


SlammedDime

Okay, based on that, you should want all files to be 644 and all folders to be 755.  Your host could do this for you with two simple commands...
find /home/blackph/public_html/forum/. -type f -exec chmod 644 {} \;
find /home/blackph/public_html/forum/. -type d -exec chmod 755 {} \;


You'll then want to make sure that all of the files are owned by your user, something else your host can quickly take care of for you.  Ask if they can do that, and once that is complete, try again and see where you're at.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: