I installed SharePoint 2007 Sp2 on one of the old moss server. After installation, I got this error for the SharePoint and central admin.
I did a new sql query within the sql database:
EXEC sp_configure ‘show advanced option’, ‘1’;
RECONFIGURE WITH OVERRIDE;
And afterwards run:
SharePoint Products and Technologies Configuration Wizard
Then it works