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

XF 1.5 Avatar and Attachments with problems...

Discussion in 'Troubleshooting and Problems' started by nos, Aug 22, 2016.

  1. nos

    nos Member

    Hi, I changed to a VPS server with CentOS and everything works fine except the avatars and attachments that doesn't upload.

    I've done "chmod -R 777" data and "chmod -R 777 internal_data"

    I also put the chown correctly, in my case, apache: apache

    The error log show this:

    ErrorException: copy(/var/www/html/myforum/internal_data/attachments/3/3563-8b386c147966fccd5840d5e70694587b.data): failed to open stream: Permission denied -library/XenForo/Helper/File.php:253


    I think the problem is in the permissions but, in what permissions?. What should I do more? :(.



    Thanks!.
     
    Last edited: Aug 22, 2016
  2. Mike

    Mike XenForo Developer Staff Member

    If you're positive these files and directories have been chmodded as needed (and can confirm this via SSH), then this might be SELinux interfering. The common solution is to just disable it unless you can tune it to your specific rules.
     
  3. nos

    nos Member

    Hmmm ... I'll try to disable SELinux to see if works fine.
     
  4. nos

    nos Member

    The problem was SELinux. I've disabled this, restart server and works! :D.
     

Share This Page