• Welcome to Sitemap Generator Forum.
 

Can't read sitemap.html in browser - permission 666

Started by david57, November 18, 2009, 08:59:38 PM

Previous topic - Next topic

david57

SItuation:
Set config to select html sitemap "on" and put the output to /server/account/public_html/sitemap.html
Run the generator and it reverts to 666 and I can't read it.
Manually set permissions to 755 and I can read it in browser.
Run the generator again and it reverts to 666 and I can't read it again.

Question:
How to set permissions / settings so sitemap.html can be read in browser ?
I want to use this as a browser compatible - i.e. html - sitemap for visitors.

Clear, detailed advice would be helpful. Thank you in advance.
.


xipe

Dear David,

How did you solve this problem?

I have the same issue here...

Best regards,
Robert


david57

Glad to hear I am not the only one, but -- sad to hear we don't yet have a solution.

Admin - please clarify your note :
I didn't get an email nor can anyone install on my site at Bluehost without me knowing (I hope and trust!!).

Is there a solution to this problem that we can learn about ? Thanks in advance for your assistance.





david57


david57

#7
..... here is what happens.....

Change permissions to 644 - can read no problem.
Run generator and permissions are overwritten / changed back to 666.

So - the generator script is changing permissions on the file to 666 automatically. Obviously we can't go in and fixthe permissions every time the generator runs.... other options ?

PS this permission issue is not actually answered in the /topic,3570.0.html   discussion string. The originator there may want to know the answer we get here.

THanks for your attention, Oleg


david57

Before I edit the file I need to understand more:

1. Is the location/filename you are referring to  this one --  /mysite/generator/index.php    ?
2. What is this file for / what does it do / why isn't this code in it out of the box ?
3. Is it okay to have two <!php ?> sections in the same file ?
4. If I relocate sitemap.html to /mysite/sitemap.html does this not change the code ? What to ?

Thank you but it is necessary to be precise and explain what is going on if I have to modify the product's code. The /generator/index.php file specifies NOT to edit it. I don't want to compound problems or create new ones by accident. Please provide full details as requested above.

Thanks again.



XML-Sitemaps Support

Hello,

1. yes
2. this is the main file loaded when you open generator.
3. yes, it's ok.
4. you will need to change it in the code too: '../sitemap.html'

david57


RESOLVED ! Very Merry !!

Thanks Oleg - I appreciate how hard it is to do all this support - I used to run a forum and participate in several , and I own a software company and a consulting business as well - so I really do thank you for taking the time to help me get this issue put to bed.

FYI
The final fix assuming you put all the php generator files in /yoursite/generator/ directory
and desire the sitemap.html file to be in your root directory is as follows:

IN FILE    /yoursite/generator/index.php
INSERT AS FIRST LINE
Quote<?php chmod('../sitemap.html',  0644); ?>
CLOSE ALL
CREATE FILE /yoursite/sitemap.html

Run and all should be well - html sitemap in domain root readable by browser - 100% !!


Hopefully this post will resolve it for most, though I do think it would be nice to address this via the menu rather than a file fix. Maybe next release....

Kind regards,

Dave McNab

Happy Hanukkah | Christmas | Kwanza | and all other celebrants[/size]