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

XF 1.4 Avatars 404

Discussion in 'Troubleshooting and Problems' started by +DS_DV+, Oct 31, 2014.

  1. +DS_DV+

    +DS_DV+ Active Member

    i set up a new forum
    its XF 1.4 ; Featured Threads and a style.

    But when i upload an avatar it shows succesfully uploaded but i get a broken image.
    when i try to open the link to the picture i get an 404 error


    anyone some ideas how to fix it?

    with best +DS_DV+
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Ensure the data and internal_data directories are recursively chmod 0777.
  3. +DS_DV+

    +DS_DV+ Active Member

    Checked its 0777

    but i also got an owncloud error maybe i messed up with some configs ...

    ill write if i found the solution :D
  4. +DS_DV+

    +DS_DV+ Active Member

  5. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, it's a permissions issue related to the directories/files.

    You may also need to chown.

    Contact your host and they should be able to help.
  6. +DS_DV+

    +DS_DV+ Active Member

    Is there a list wich folder and files need wich premissions ?

    I uploaded all with scp and than give internal_data and data 0777

    i think when i messed up with the configs it messed up the rights fot the files and folders ...

    so a list wich folder need wich rights would be great
  7. Brogan

    Brogan XenForo Moderator Staff Member

    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)
    0644/07555 only works if PHP is running as the user that owns the file (generally with cpanel setups).
    +DS_DV+ likes this.
  8. Martok

    Martok Well-Known Member

  9. +DS_DV+

    +DS_DV+ Active Member

    Its realy strange i checked all the rights and the files all belong to root:root

    and when i look with winSCP the file is there https://allaround.cc/data/avatars/m/0/1.jpg and it has 0777 atm.

    but i get 404 :/

    PS: i dont have a thing like cpanel or isp config
  10. +DS_DV+

    +DS_DV+ Active Member

    my php-fpm and my ngnix are running as a user called www
    whats the correct owner for the forum files root or www ?
  11. +DS_DV+

    +DS_DV+ Active Member

    Ok Guy good news :D

    Problem got soleved !

    it was a problem comming from the rewrite rules for nginx wich dont work together with the rewrites form owncloud.

    So if someone also should have these rpoblems check your nginx configs if thy work fine together.

    with best +DS_DV+

    PS: cant change the thread titel to solved!

Share This Page