XML Sitemaps Generator

Author Topic: Can't read sitemap.html in browser - permission 666  (Read 9949 times)

david57

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
Can't read sitemap.html in browser - permission 666
« on: November 18, 2009, 08:59:38 PM »
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.
.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Can't read sitemap.html in browser - permission 666
« Reply #1 on: November 18, 2009, 10:19:38 PM »
Hello,

sitemap generator has been installed for you, I've resent an email with details to you.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

xipe

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 18
Re: Can't read sitemap.html in browser - permission 666
« Reply #2 on: November 28, 2009, 09:45:13 AM »
Dear David,

How did you solve this problem?

I have the same issue here...

Best regards,
Robert

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

david57

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
**Unresolved ** Re: Can't read sitemap.html in browser - permission 666
« Reply #4 on: December 10, 2009, 09:43:50 PM »
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.




XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Can't read sitemap.html in browser - permission 666
« Reply #5 on: December 10, 2009, 10:13:08 PM »
Hello,

does it work if you set sitemap.html permissions to 0644?
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

david57

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
Re: Can't read sitemap.html in browser - permission 666
« Reply #6 on: December 10, 2009, 10:48:33 PM »
Checking now.....

david57

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
Re: Can't read sitemap.html in browser - permission 666
« Reply #7 on: December 10, 2009, 10:52:40 PM »
..... 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.html   discussion string. The originator there may want to know the answer we get here.

THanks for your attention, Oleg
« Last Edit: December 10, 2009, 11:04:53 PM by david57 »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Can't read sitemap.html in browser - permission 666
« Reply #8 on: December 11, 2009, 11:25:26 PM »
Please try to add this to the top of index.php file:
Code: [Select]
<?php chmod('data/sitemap.html',  0644); ?>
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

david57

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
Re: Can't read sitemap.html in browser - permission 666
« Reply #9 on: December 12, 2009, 05:47:55 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Can't read sitemap.html in browser - permission 666
« Reply #10 on: December 13, 2009, 09:02:37 PM »
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'
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

david57

  • Registered Customer
  • Approved member
  • *
  • Posts: 7
RESOLVED : Can't read sitemap.html in browser - permission 666
« Reply #11 on: December 13, 2009, 11:17:13 PM »

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]
« Last Edit: December 13, 2009, 11:31:38 PM by david57 »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Can't read sitemap.html in browser - permission 666
« Reply #12 on: December 15, 2009, 12:37:00 AM »
Hello,

I'm glad that helped, and thank you for your kind words! :)
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2