halfer / php-tutorial-text

The chapter text for the "I ♥ PHP" project
14 stars 1 forks source link

403 Forbidden when trying to access downloads #29

Closed Natfan closed 6 years ago

Natfan commented 6 years ago

When clicking on any 'Download' link, you are presented with a 403 Forbidden error. That link is from the first download on the first part of the tutorial, but I tested a few others on various pages and they all give me the same result.

halfer commented 6 years ago

Thanks for the report. I redeployed this recently, looks like I missed something!

I'll ping you when I've fixed it.

halfer commented 6 years ago

I believe that's now fixed, Natfan - would you try on your end?

I am in the process of moving the tutorial to a continuous deployment system, so I'll add a healthcheck for that.

Natfan commented 6 years ago

https://ilovephp.jondh.me.uk/checkouts/rebase5/1d454f2557a93de3ea7a/data/init.sql still gives me a 403 on an incognito tab, @halfer

halfer commented 6 years ago

Thanks @Natfan, same here. It's late here so I will try tomorrow morning. I tried a bunch of .php files, which worked - I wonder if it has a problem with the .sql file type? Will investigate.

halfer commented 6 years ago

Hmm, I've just run some chown and I think I've fixed it - previously I believed I fixed it with chmod. I wonder if my container orchestrator is restarting my containers, and so any fixes I make are being reset back to a dud image. I will get some time in the week to fix this permanently.

Try again? :smiley_cat:

halfer commented 6 years ago

Ooh, it's reverted. I've started this container up in bare Docker locally, and it happens there too - fine on start up, reverts some time after... will look into it pronto.

halfer commented 6 years ago

I think I have fixed it with this, will keep an eye on it.

Natfan commented 6 years ago

Yeah, seems to be working fine with this random link I tried. Thanks for your help, you're a credit to the PHP community :)