Topic on Extension talk:AutoSitemap

Jump to navigation Jump to search

AutoSitemap_body.php on line 97 error

4
Yedidyarashi (talkcontribs)

Warning: fopen(sitemap.xml.tmpf4de173a4f85e1bc051e0b5a9ced5390.tmp): failed to open stream: Permission denied in /opt/bitnami/apps/mediawiki/htdocs/extensions/AutoSitemap/AutoSitemap_body.php on line 97

Cannot write to sitemap.xml.tmpf4de173a4f85e1bc051e0b5a9ced5390.tmp.


Ciencia Al Poder (talkcontribs)
Yedidyarashi (talkcontribs)

sudo chmode +w mediawiki

sudo chown www-data. mediawiki

i added this code to htaccess.conf

<Directory "opt/bitnami/apps/mediawiki/htdocs/extensions/AutoSitemap/sitemap.xsl">

Allow from all

</Directory>

and

sudo /opt/bitnami/ctlscript.sh restart

and still it don't work

Ciencia Al Poder (talkcontribs)

The code in htaccess.conf is unneeded.

This will work only if PHP is being executed by www-data. (with the dot?). You should be sure that's correct in your system. However, the code is very stunky, and tries to write to a file without specifying a path. This gives no clue as to what folder it will write the file to (relative to index.php, or the extension's file that's currently running that code?). If in doubt, give all permissions to all subfolders (sudo find . -type d -exec chmod 777 {} \;) and try again to discard other issues.