New install - blank page #3411

Closed
opened 2026-02-05 06:37:52 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @techauthoruk on GitHub (Dec 24, 2022).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I have a new install on my dev server, which I am accessing via LAN. I used the install script for Ubuntu 22, and this all completed correctly.

When I access the IP address for the server, I just get a blank page. I enabled debug mode in the .env file, and this error is shown:

SQLSTATE[HY000] [2002] Permission denied (SQL: select * from `settings` where `setting_key` = app-public limit 1)

This was a 'bare metal' install, with only Ubuntu installed. I'm assuming the database hasn't been created or something. How can I fix this?

Exact BookStack Version

21.11.1

Log Content

[2/9] Preparing MySQL database...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

PHP Version

8.1

Hosting Environment

Ubuntu 22.04 LTS

Originally created by @techauthoruk on GitHub (Dec 24, 2022). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I have a new install on my dev server, which I am accessing via LAN. I used the install script for Ubuntu 22, and this all completed correctly. When I access the IP address for the server, I just get a blank page. I enabled debug mode in the `.env` file, and this error is shown: ``` SQLSTATE[HY000] [2002] Permission denied (SQL: select * from `settings` where `setting_key` = app-public limit 1) ``` This was a 'bare metal' install, with only Ubuntu installed. I'm assuming the database hasn't been created or something. How can I fix this? ### Exact BookStack Version 21.11.1 ### Log Content [2/9] Preparing MySQL database... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' ### PHP Version 8.1 ### Hosting Environment Ubuntu 22.04 LTS
OVERLORD added the 🐕 Support label 2026-02-05 06:37:52 +03:00
Author
Owner

@techauthoruk commented on GitHub (Dec 24, 2022):

OK

Sorted. I had to manually create the mysql user, then run php artisan migrate, and so far all seems to be correct.

I will leave this open for now in case I encounter other issues

@techauthoruk commented on GitHub (Dec 24, 2022): OK Sorted. I had to manually create the mysql user, then run `php artisan migrate`, and so far all seems to be correct. I will leave this open for now in case I encounter other issues
Author
Owner

@techauthoruk commented on GitHub (Dec 27, 2022):

All is good, so will close this (and add a note in my BookStack instance in case I forget!)

@techauthoruk commented on GitHub (Dec 27, 2022): All is good, so will close this (and add a note in my BookStack instance in case I forget!)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3411