in reply to Scriptsock does not exist??

Sorry for the lack of information. The script runs on a shared hosting account. I know they update things but don't necessarily know when. It doesn't occur every 30 minutes but when it does happen to occur, the 503 error usually goes away in about 30 minutes. The script is a ticketing/CRM system we use for our small business that was created a long time ago and has no support etc. Thanks for the tips so far. I'm going to read up on fastcgi and Mod_cgid. My understanding is a socket is just a connection from the server to something else. I know just enough to be dangerous :) I've used this script for years and have learned Perl to make changes over the years by reverse engineering the original code. It's work great for me thus far. It's just this error came out of left field. Not something that started occurring after I modified code. When this happens our business is dead in the water. But it only happens maybe 2 twice a week and just something I'm afraid is going to get worse or happen at the worst time.

Replies are listed 'Best First'.
Re^2: Scriptsock does not exist??
by hippo (Archbishop) on Aug 06, 2020 at 21:53 UTC

    This is not a problem with anything you have done or your code. It is a problem with the hosting provided to you. The socket is used by mod_cgid and without it your scripts won't run, hence the 503s. I suspect that your hosting providers are inadvertently deleting the socket file from /var/run periodically and a subsequent (again, presumably scheduled) restart of apache eventually reinstates it.

    The response you posted from your provider is worrying in that they seem not to know that this socket is integral to apache, that the error message is an apache one and that neither of these things are anything to do specifically with your scripts. Perhaps it's time to move to a more clued-up hosting provider?

    When this happens our business is dead in the water.

    In that case it's definitely time to move to a more clued-up hosting provider. Good luck.


    🦛