Please make sure that “/” is writable by the web-server. [Magento 2.4 Sitemap]

It’s all fine now after running the following command as “god” .

sudo chown -R magento2:www-data /var/www/html/

Then run the following command as “magento2”, no need sudo cause this character at How to install Magento 2.4 and build a web server can’t run sudo command
(“Operation not permitted” comes out if run this as “god”)

find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + && find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + && chmod u+x bin/magento

No more “Operation not permitted” comes out.

Thank you Mr. Craig! @digitalstartup

1 Like