cancel
Showing results for 
Search instead for 
Did you mean: 

Error generating Sitemap

Occasional Contributor

Error generating Sitemap

Hello, when I try to generate a sitemap at magento 2, it shows me this error:

Please make sure that "/" is writable by the web-server.

 

If anyone can help me with this, it would be awesome, thanks.

6 REPLIES
Moderator

Re: Error generating Sitemap

Hi @ianfe24,

 

Probably your files owner is not the same than the user than runs the webserver.

For that reason you webserver can't write the file. Can you check that?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"
Occasional Contributor

Re: Error generating Sitemap

Hello, my file owner of the server is magento:www-data, when I type at the SSH ls -lah
Moderator

Re: Error generating Sitemap

Hi, but maybe the group has only read access?

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"
M1 Certified
Magento
PHP

Re: Error generating Sitemap

@ianfe24

 

create one folder inside magento directory and set 777 permission.

 

In sitemap give path value /test/ and save it.

 

Where test is my directory name.

Moderator

Re: Error generating Sitemap

Hi @ianfe24, @Sunil Patel,

 

Please try to avoid the 777 permission. It will be a security risk.

Try to set the owner of those files/directories with the same user than the one is executing the webserver process.

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"
Highlighted
M1 Certified
Magento
PHP

Re: Error generating Sitemap

@Damian Culotta

 

I know, so i said to create folder and assign it.