Cannot Install on Azure Web App #705

Closed
opened 2026-02-04 21:56:48 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @spiritedsnowcat on GitHub (Jun 1, 2018).

  • BookStack Version (Found in settings, Please don't put 'latest'): 0.22.0
  • PHP Version: 7.2.4 (cli) (built: Mar 28 2018 04:26:56) ( NTS MSVC15 (Visual C++ 2017) x64 )
  • MySQL Version: 5.7.9.0
Expected Behavior

Be able to connect to the In-App MySQL instance using the correct credentials.

Current Behavior

Unable to connect. Always throws the following error (even with the correct settings):

[Illuminate\Database\QueryException]                                         

  could not find driver (SQL: select * from information_schema.tables where t
  able_schema = localdb and table_name = migrations)                           

  [PDOException]         
  could not find driver
Steps to Reproduce
  1. Create an Azure Web App with In-App MySQL enabled.
  2. Enable php and web sockets in application settings and save.
  3. Get the credentials for the Azure Web App through the Kudu console from D:\home\data\mysql\MYSQLCONNSTR_localdb.ini.
  4. Enter credentials in .env and setup BootStack. For example:
# Database details
DB_HOST=127.0.0.1:51002
DB_DATABASE=localdb
DB_USERNAME=azure
DB_PASSWORD=6#vWHD_$
  1. Attempt to install BootStack and get to run php artisan migrate
Originally created by @spiritedsnowcat on GitHub (Jun 1, 2018). * BookStack Version *(Found in settings, Please don't put 'latest')*: 0.22.0 * PHP Version: 7.2.4 (cli) (built: Mar 28 2018 04:26:56) ( NTS MSVC15 (Visual C++ 2017) x64 ) * MySQL Version: 5.7.9.0 ##### Expected Behavior Be able to connect to the In-App MySQL instance using the correct credentials. ##### Current Behavior Unable to connect. Always throws the following error (even with the correct settings): ``` [Illuminate\Database\QueryException] could not find driver (SQL: select * from information_schema.tables where t able_schema = localdb and table_name = migrations) [PDOException] could not find driver ``` ##### Steps to Reproduce 1. Create an Azure Web App with In-App MySQL enabled. 2. Enable php and web sockets in application settings and save. 3. Get the credentials for the Azure Web App through the Kudu console from D:\home\data\mysql\MYSQLCONNSTR_localdb.ini. 4. Enter credentials in .env and setup BootStack. For example: ``` # Database details DB_HOST=127.0.0.1:51002 DB_DATABASE=localdb DB_USERNAME=azure DB_PASSWORD=6#vWHD_$ ``` 5. Attempt to install BootStack and get to run `php artisan migrate`
Author
Owner

@TBK commented on GitHub (Jun 1, 2018):

If you run this command from the commandline: php -m

do then have the pdo_mysql extension?

@TBK commented on GitHub (Jun 1, 2018): If you run this command from the commandline: php -m do then have the pdo_mysql extension?
Author
Owner

@spiritedsnowcat commented on GitHub (Jun 2, 2018):

I do not. How do I go about installing them on an Azure Web App? If I try editing php.ini, it says "access is denied". It doesn't look like it allows me to modify it directly from the console.

@spiritedsnowcat commented on GitHub (Jun 2, 2018): I do not. How do I go about installing them on an Azure Web App? If I try editing php.ini, it says "access is denied". It doesn't look like it allows me to modify it directly from the console.
Author
Owner
@TBK commented on GitHub (Jun 2, 2018): https://docs.microsoft.com/en-us/azure/app-service/web-sites-php-configure
Author
Owner

@spiritedsnowcat commented on GitHub (Jun 4, 2018):

Ah, thank you. I got it working. My problem was that I redefined a library in the extensions ini they have you add in that guide, and it crashed the website. Thanks for your help!

@spiritedsnowcat commented on GitHub (Jun 4, 2018): Ah, thank you. I got it working. My problem was that I redefined a library in the extensions ini they have you add in that guide, and it crashed the website. Thanks for your help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#705