1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Forgot to CHMOD on installation

Discussion in 'Installation, Upgrade, and Import Support' started by nodle, Jun 19, 2013.

  1. nodle

    nodle Well-Known Member

    I installed xenforo the other day and the installation went fine but after reading:

    http://xenforo.com/help/installation/

    I noticed that I forgot to set mine to 777. I went ahead and did this now on the two folders, but did I screw anything up on installation by not doing this? Or will I be fine now that I changed it?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Some server configurations are writable with 755 in which case you don't need to chmod those directories. If the installation finished without error then you are OK.
     
  3. nodle

    nodle Well-Known Member

    Thank you sir!
     
  4. Tracy Perry

    Tracy Perry Well-Known Member

    Don't forget, the sub-directories for /data and /internal_data also need the same permissions. Depending on how you did it, if you did not do a recursive you may have problems.
     
  5. nodle

    nodle Well-Known Member

    I set data and internal_data to 777, but after installation. I don't know if they need to be after an install but I went ahead anyways. I thought maybe a process uses them.
     
  6. Tracy Perry

    Tracy Perry Well-Known Member

    Attachments and uploaded avatars depend on having write access to those directories (and the sub-directories under them). If you find that you cannot upload attachments or avatars, then you need to do a recursive chmod to the /data and /internal_data directories.
     
  7. nodle

    nodle Well-Known Member

    So the permission need for be 777 in the internal folders also correct. Inherit the 777?
     
  8. Tracy Perry

    Tracy Perry Well-Known Member

    Here is an example of my /data structure
    drwxrwxrwx 3 xxxxx xxxxx 4096 Jun 15 23:00 attachments
    drwxrwxrwx 5 xxxxx xxxxx 4096 May 27 23:04 avatars
    drwxrwxrwx 2 xxxxx xxxxx 4096 May 27 23:04 color-picker
    -rwxrwxrwx 1 xxxxx xxxxx 1 Mar 15 07:00 index.html

    As you can see, all the directories under /data also have 777 permissions (as do the files contained therein).
     
  9. nodle

    nodle Well-Known Member

    Ya just checked all of mine are set to 755 + all files underneath. Is it to late or will I have to re-install?
     
  10. Tracy Perry

    Tracy Perry Well-Known Member

    Try it...if it works with them 755 then you are on one of the servers that will work with them set at that (not normal but does occur on some servers depending on how they have it set up).
    Try uploading a new avatar for your account. If it works then you are good to go.
     
  11. nodle

    nodle Well-Known Member

    Ya just tried and it let me.
     
  12. Tracy Perry

    Tracy Perry Well-Known Member

    Looks like you are good to go then. Have fun!

    As a suggestion, if you are not familiar with xF and will probably be posting requests for style help (which is normal) place your website in your profile. Makes it easier to find.
     
    nodle likes this.
  13. erich37

    erich37 Well-Known Member

    how do I check and verify if this is set correctly on my Forum install ?

    Can I see this somehow by using FTP or can I check this in ACP ?
     
  14. Tracy Perry

    Tracy Perry Well-Known Member

    Are you using cPanel? If so, the File explorer should allow you to see them.
    Also, if you are using FileZilla you should be able to see (and change) the permissions. You just highlight the directory and then bring up the option window (I think on Windows it's right click - on my Mac it's two fingers on tapping the touchpad).
    example.png
     
    erich37 likes this.
  15. erich37

    erich37 Well-Known Member

    hmmm... I am using the plain old FTP upload build into Adobe Dreamweaver.
    I guess I can not see it with this program, but need something like PHPmyAdmin or the programs you have mentioned ?

    So it is not possible to check this via XF-ACP ?
     
  16. Tracy Perry

    Tracy Perry Well-Known Member

    phpMyAdmin is only for the SQL database related routines. If you have DreamWeaver (I believe it has built in FTP) then you can grab FileZilla (it's free - https://filezilla-project.org/download.php) and put your credentials in and log in via FTP (I use SFTP on my server, but I'm on a dedicated).
    The ACP for XF doesn't have server directory file management abilities built into it.
     
    erich37 likes this.
  17. erich37

    erich37 Well-Known Member

    thanks, I will check FileZilla.
     
  18. erich37

    erich37 Well-Known Member

    is this "recursive chmod" being achieved with the "-r" ?

    http://xenforo.com/community/threads/file-security.56386/#post-601009


    Thanks!
     
  19. Tracy Perry

    Tracy Perry Well-Known Member

    erich37 likes this.
  20. erich37

    erich37 Well-Known Member

Share This Page