vezaynk / Sitemap-Generator-Crawler

PHP script to recursively crawl websites and generate a sitemap. Zero dependencies.
https://www.bbss.dev
MIT License
241 stars 92 forks source link

Sitemap.xml access denied can't open generated xml file #65

Closed gomathyfollowon closed 6 years ago

gomathyfollowon commented 6 years ago

error_sitemap

I can't open generated sitemap.xml file. it showing "access was denied" error. how can i fix it? can you help me?

vezaynk commented 6 years ago

Try changing permissions in the config file to 0777 and see what happens. Otherwise just mess with the file permissions.

php and windows don't mix very well.

gomathyfollowon commented 6 years ago

Thanks for Reply Sir. i already changed permissions in the config file to 0777. even though it showing same bug. Can you give any other solution?

sitemaperror2

vezaynk commented 6 years ago

Maybe chmod is breaking it. Try commenting out line 124 in sitemap.php.

gomathyfollowon commented 6 years ago

Hai sir,

i commented the line //chmod($file, $permissions); even though same error showing. any other solution?

On Sat, Jan 20, 2018 at 6:55 AM, Slava Knyazev notifications@github.com wrote:

Maybe chmod is breaking it. Try commenting out line 124 in sitemap.php.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/knyzorg/Sitemap-Generator-Crawler/issues/65#issuecomment-359133235, or mute the thread https://github.com/notifications/unsubscribe-auth/AM9ShWKmj-JQMTy3HpbIQxWASfx0hcrWks5tMUCbgaJpZM4Ri-0C .

-- Thanks and Regards,

Gomathy.C

vezaynk commented 6 years ago

Nothing I can think of. Why aren't you using linux for php to start with?

gomathyfollowon commented 6 years ago

am using windows only. only issue is cant open created xml file.

On Sat, Jan 20, 2018 at 11:09 AM, Slava Knyazev notifications@github.com wrote:

Nothing I can think of. Why aren't you using linux for php to start with?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/knyzorg/Sitemap-Generator-Crawler/issues/65#issuecomment-359147566, or mute the thread https://github.com/notifications/unsubscribe-auth/AM9ShYWimr67hmZzgCpqUa3yHoYY9JqYks5tMXwagaJpZM4Ri-0C .

-- Thanks and Regards,

Gomathy.C

vezaynk commented 6 years ago

You almost certainly don't have read permissions. Manually mess with the file permissions. I only have access to Windows machines on week days.

gomathyfollowon commented 6 years ago

will check sir. thankyou

On Sat, Jan 20, 2018 at 11:14 AM, Slava Knyazev notifications@github.com wrote:

You almost certainly don't have read permissions. Manually mess with the file permissions. I only have access to Windows machines on week days.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/knyzorg/Sitemap-Generator-Crawler/issues/65#issuecomment-359147755, or mute the thread https://github.com/notifications/unsubscribe-auth/AM9ShfOE7kMLzWVLsxEu2uFLvE9ccNnRks5tMX07gaJpZM4Ri-0C .

-- Thanks and Regards,

Gomathy.C

vezaynk commented 6 years ago

I cannot reproduce the issue on a windows machine. Unless if other people start reporting this issue, I will need to posit that the issue is your machine and nothing to do with the script.

Windows is a second-class citizen for this script in favor of linux.

Closing.