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

XF 1.5 What should files and directory permissions be set to?

Discussion in 'Installation, Upgrade, and Import Support' started by tribedude, May 30, 2016.

  1. tribedude

    tribedude Active Member

    I have a new forum I am trying to configure. We have it hosted on the Digital Ocean cloud. Some images are showing as broken images (logo, etc.) and I think this is probably a permissions thing.

    What permissions do I set the directories to?
    What permissions do I set the files to?

    In order for the installation to work but be secure...?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. tribedude

    tribedude Active Member

    What about the other directories and files, since the installation is complete?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    In general files and directories should be 0644 and 0755 respectively.

    The /data and /internal_data directories should be:
    0666/0777 if PHP runs as "nobody" (the web server user)
    0644/0755 if it runs as "your" user (suPHP for example)

    Note that 0644/0755 only works if PHP is running as the user that owns the file (generally with cpanel setups).
    rainmotorsports likes this.
  5. tribedude

    tribedude Active Member

    Thanks! The permission changes have now solved the issues i was experiencing.

Share This Page