Apache loads other old website after rebooting - apache

I've got a little problem: Whenever I restart my Raspyberry Pi B, an old version of my website gets loaded.
Before the restart, I changed whole files and deleted some. But even the deleted files get restored after rebooting the rapsberry.
It's really annoying if my new website gets thrown away ...
I don't know if it's the Apache service or something different.
Anyone knows a solution for that?
Thanks in advance!

Related

WebApplication crashes on some clients after update

I amb developing a web application with the frontent using typescript and vue, and the backend using spring. All deployed into a machine with tomcat9.
For some reason, everytime I update the application my boss calls me days later stating that the application stoped working. I then go check, but works fine for me, ask me boss to clear cache site and then it works for him to.
I dunno why, but this always happends to my boss and not me.
At first I thought this was happening cause I wasn't updating the version on the package.json file. But this doesn't solved the problem.
Any hint on what I can do to avoid this behaviour? Any workarounds would also be appreciated. As a developer I don't mind clearing the cache but our clients....

Occasionally receiving 403 error on Prestashop (both frontend and admin)

So I have this problem regarding Prestashop.
I created a subdomain for an website because I wanted to upgrade from 1.4.x to 1.6.x and I wanted the original website up and running.
I made a back-up and everything, I upgraded from 1.4.x to 1.6.x, installed a new theme, made some css / jquery changes and tested it and everything was working great.
Now the problems started to appear after moving the website from the subdomain to the domain (eg: from dev.websitename.com to websitename.com). Now I occasionally receive 403 errors for basically everything (from a jquery file, to the whole page). After a few ctrl + f5's everything works fine (but I cannot keep telling a customer to hit ctrl + f5 until the website works :| )
I tried everything I could think of. I checked and double checked the permissions on files / directories (since that's what 403 is basically telling me) and I cannot find the problem.
My hair is starting to fall because of how much inconvenience this is.
Can someone help me? Or at least point me to the right direction?
Thanks in advance!
So for anyone that is interested, the solution was to increase the number of requests per page and then everything worked! Hope it helped anyone interested.
Have a good day!

IIS Remote Manager is missing icons for a specific site

I have a developer that came to me with and issue. He is remotely managing one of his sites on one of our development servers and all of a sudden he lost all of the icons in IIS for this specific site..
All other sites display his icons correctly and when I have him test on another computer everything displays correctly.. So what could have gone wrong on his machine? It was working but is now not working.. Any help here would be greatly appreciated.. Never seen this before and cant seem to figure out what caused it to just go away.. There should be so many more options for him.. Plus if you can see he lost the ability to see the folders on this site also.. And it is every site on this server.. But like I said it is just on his computer, he goes to a different computer he has access to everything..
Guess I cant post a picture.. But if you need to see it I can send it to you if you need to see what I am talking about..
Come to find out he was ignoring the prompt that he was getting saying that there were new versions of the tools to download on his machine that are on the server.. He just hit Cancel instead of selecting them and hitting ok to install the DLL's and enabling them.

sites down but server up, what to do?

I could ping my websites but I got a 404 going there.
My server was running normally, no new mail for root.
Is there a service to alert you when your websites are down ?
What do you usually do to understand why it's down?
I took a look at the apache2/error.log and saw that it couldn't access one of the website I had deleted a few hours ago. I just did a a2dissite and restarted and it was fixed, I could access my websites.
I either got lucky or I postponed a problem. Any idea what I should do next to make sure everything is alright? (I'm on debian by the way)

Restarting only a portion of a rack/Sinatra app

The great thing about PHP is that if you have something like
clothes.com, clothes.com/men.php, clothes.com/women.php
Then if you only edit the men's page, only that particular "app" will be restarted.
But on rack/Sinatra I have to touch the restart.txt file to restart the ENTIRE website.
Is there a way around this problem, so that users browsing other parts of the site wont have any problems while another part of the site get edited?
(i'm using mod-passenger on Apache, not that it's important..)
This would be true in all cases anyway for editing (non-inline) views (not layouts).
Aside from that, if you're really worried about this then I'd suggest using versioned folders to hold the application code. When you do a deployment, change the proxy to point at the newer version. Those who had already made requests will remain on an instance of Apache and the application that is already running, as long as their request remains alive, and seemlessly (unless you've broken something with the code) move to the new code on the next request.
It's also a convenient way to rollback to the/a previous version quickly and easily.
Check out the sinatra reloader from sinatra contrib