Camen Design Forum

PHP Warning

append delete wayne

I'm receiving a PHP warning

file_put_contents(/home/user/public_html/sitemap.xml): failed to open stream: Permission denied in /home/user/public_html/lib/functions.php on line 468, referer:

Is this due to file permissions on sitemap.xml? What should the sitemap.xml permissions be? I am running ubuntu 18.04 with php7.

Reply RSS

Replies

append delete #1. Kroc

This is more likely write permissions on the root / sub folders. The Apache process needs write permission to create the sitemap.xml file (which won't exist by default)

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn