I'm extremely new to Craft CMS and having to ensure it can be ran from a Azure Virtual Machine. I have added, Apache, PHP and MySQL and the website does run on the server. However the issue occurs when I head to the Admin part of the site, where I get the error (title of this post).

All PHP extensions are installed as per the requirements.

enter image description here

The server has MySQL 8 on it and the database is on a different server also running MySQL 8.

enter image description here

It's worth noting that this works fine locally using XAMPP and I can access the /admin section.

Any ideas what I can be missing, perhaps I need install an additional package of the server or some sort of configuration?

Any help is greatly appreciated, thanks. Rich

1 Answer 1


Have you checked that all the required PHP extensions are installed/loaded when you check phpinfo()?


The error might not be about the MySQL server version but the fact that the required MySQL driver for PHP isn't loaded potentially.

You may also want to run the Craft server check, to confirm if everything is present: https://github.com/craftcms/server-check

  • Hi James, Thank you for your response. I have checked both of these, add we have all extensions added and the server checker comes back all clean and ready. I found that php7 was still installed on the server also, so I have removed this but now getting a timeout error when attempting to view the admin section. Commented Jul 8, 2022 at 12:51
  • After server reboot - getting the same error Commented Jul 8, 2022 at 12:57
  • @RichardGriffiths Just a thought, for Craft CMS 4 have you set the CRAFT_DB related environment variables? craftcms.com/docs/4.x/config/db-settings.html#attributes. Commented Jul 19, 2022 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.