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

XF 1.5 Sitemap fopen throw errors

Discussion in 'Troubleshooting and Problems' started by Nobita.Kun, Mar 4, 2016.

  1. Nobita.Kun

    Nobita.Kun Well-Known Member

    ErrorException: fopen(/home/nginx/domains/***/public/internal_data/sitemaps/sitemap-1457069941-1.xml): failed to open stream: Permission denied -library/XenForo/Deferred/Sitemap.php:210

    Hi. I alway get that errors. I try to set the right permission to that folder but still get that. :/
     
  2. Mike

    Mike XenForo Developer Staff Member

    This can pretty much only be a permission issue. You should look at the permissions of not only that folder, but the files in it. If you're absolutely 100% sure you've set the permissions correctly, you may need to look at something like SELinux (and consider disabling it).
     
  3. Nobita.Kun

    Nobita.Kun Well-Known Member

    Thanks. I just try disabled it. I will let you know if that still happen.
     
  4. Nobita.Kun

    Nobita.Kun Well-Known Member

    Hi @Mike I still get that error on my server error log:
    Here is my settings:
    Code:
    -rwxrwxrwx 1   777 nginx      1 Aug 29  2015 index.html
    -rw-r--r-- 1 root  root   15189 Feb 17 05:45 sitemap-1455687541-1.xml
    -rw-r--r-- 1 root  root     203 Feb 19 05:38 sitemap-1455860281-1.xml
    -rw-r--r-- 1 root  root     203 Feb 22 05:39 sitemap-1456119541-1.xml
    -rw-r--r-- 1 root  root  100807 Feb 24 05:49 sitemap-1456292341-1.xml
    -rw-r--r-- 1 root  root   15613 Feb 29 05:45 sitemap-1456724341-1.xml
    -rw-r--r-- 1 root  root     203 Mar  2 05:38 sitemap-1456897081-1.xml
    -rw-r--r-- 1 root  root  177904 Mar  4 05:58 sitemap-1457069941-1.xml
    -rw-r--r-- 1 nginx nginx  32002 Mar  7 05:38 sitemap-1457329078-1.xml.gz
    -rw-r--r-- 1 root  root    4970 Mar  9 05:41 sitemap-1457501941-1.xml
    -rw-r--r-- 1 root  root    5262 Mar 11 05:43 sitemap-1457674741-1.xml
    
    And SELinux status:
    Code:
    SELinux status:                 disabled
    
    Any idea?
     
  5. Mike

    Mike XenForo Developer Staff Member

    Why are the files owned by root? The files would be created by the PHP user, which really shouldn't ever be root. Are you running XF's cron with a non-standard method?
     

Share This Page