mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 00:29:48 +03:00
No Branch/Tag Specified
development
l10n_development
further_theme_development
release
llm_only
vectors
v25-11
docker_env
drawio_rendering
user_permissions
ldap_host_failover
svg_image
prosemirror
captcha_example
fix/video-export
v25.12.3
v25.12.2
v25.12.1
v25.12
v25.11.6
v25.11.5
v25.11.4
v24.11.4
v25.11.3
v25.11.2
v25.11.1
v25.11
v25.07.3
v25.07.2
v25.07.1
v25.07
v25.05.2
v25.05.1
v25.05
v25.02.5
v25.02.4
v25.02.3
v25.02.2
v25.02.1
v25.02
v24.12.1
v24.12
v24.10.3
v24.10.2
v24.10.1
v24.10
v24.05.4
v24.05.3
v24.05.2
v24.05.1
v24.05
v24.02.3
v24.02.2
v24.02.1
v24.02
v23.12.3
v23.12.2
v23.12.1
v23.12
v23.10.4
v23.10.3
v23.10.2
v23.10.1
v23.10
v23.08.3
v23.08.2
v23.08.1
v23.08
v23.06.2
v23.06.1
v23.06
v23.05.2
v23.05.1
v23.05
v23.02.3
v23.02.2
v23.02.1
v23.02
v23.01.1
v23.01
v22.11.1
v22.11
v22.10.2
v22.10.1
v22.10
v22.09.1
v22.09
v22.07.3
v22.07.2
v22.07.1
v22.07
v22.06.2
v22.06.1
v22.06
v22.04.2
v22.04.1
v22.04
v22.03.1
v22.03
v22.02.3
v22.02.2
v22.02.1
v22.02
v21.12.5
v21.12.4
v21.12.3
v21.12.2
v21.12.1
v21.12
v21.11.3
v21.11.2
v21.11.1
v21.11
v21.10.3
v21.10.2
v21.10.1
v21.10
v21.08.6
v21.08.5
v21.08.4
v21.08.3
v21.08.2
v21.08.1
v21.08
v21.05.4
v21.05.3
v21.05.2
v21.05.1
v21.05
v21.04.6
v21.04.5
v21.04.4
v21.04.3
v21.04.2
v21.04.1
v21.04
v0.31.8
v0.31.7
v0.31.6
v0.31.5
v0.31.4
v0.31.3
v0.31.2
v0.31.1
v0.31.0
v0.30.7
v0.30.6
v0.30.5
v0.30.4
v0.30.3
v0.30.2
v0.30.1
v0.30.0
v0.29.3
v0.29.2
v0.29.1
v0.29.0
v0.28.3
v0.28.2
v0.28.1
v0.28.0
v0.27.5
v0.27.4
v0.27.3
v0.27.2
v0.27.1
v0.27
v0.26.4
v0.26.3
v0.26.2
v0.26.1
v0.26.0
v0.25.5
v0.25.4
v0.25.3
v0.25.2
v0.25.1
v0.25.0
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.0
v0.21.0
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.0
v0.18.5
v0.18.4
v0.18.3
v0.18.2
v0.18.1
v0.18.0
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.0
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.1
v0.13.0
v0.12.2
v0.12.1
v0.12.0
v0.11.2
v0.11.1
v0.11.0
v0.10.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.6
v0.7.5
v0.7.4
v0.7.3
0.7.2
v.0.7.1
v0.7.0
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
Labels
Clear labels
🎨 Design
📖 Docs Update
🐛 Bug
🐛 Bug
:cat2:🐈 Possible duplicate
💿 Database
☕ Open to discussion
💻 Front-End
🐕 Support
🚪 Authentication
🌍 Translations
🔌 API Task
🏭 Back-End
⛲ Upstream
🔨 Feature Request
🛠️ Enhancement
🛠️ Enhancement
🛠️ Enhancement
❤️ Happy feedback
🔒 Security
🔍 Pending Validation
💆 UX
📝 WYSIWYG Editor
🌔 Out of scope
🔩 API Request
:octocat: Admin/Meta
🖌️ View Customization
❓ Question
🚀 Priority
🛡️ Blocked
🚚 Export System
♿ A11y
🔧 Maintenance
> Markdown Editor
No Label
🐕 Support
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/BookStack#188
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dvnrsn on GitHub (Oct 25, 2016).
Hey I'm a little new to development and linux. I've followed the installation docs as best as I could follow (except for the email because I'm a little confused how that works) and I am just getting text when I load localhost. / / |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provi etc.
I'm also getting error [PDOException]
could not find driver
on artisan migrate
My phpinfo is working and I have a database and user created. Where am I going wrong?
@ssddanbrown commented on GitHub (Oct 25, 2016):
Hi @devin42r,
It looks like your webserver is not parsing PHP files and is simply serving them as text (Since what you provided is the content of the main php file).
What webserver are you using? Apache or Nginx or something else?
Also, What variant and version of linux are you using?
@dvnrsn commented on GitHub (Oct 25, 2016):
Hey Dan thanks for the quick response. I am using apache2 on kubuntu 16. The info.php file I have created to render phpinfo() (in the same directory) is displaying desired php config info. So I thought it might be some issue with the permission to bootstrap? But everything is owned by www-data..
@dvnrsn commented on GitHub (Oct 25, 2016):
hmm, except for info.php which is owned by root. Is there some way that www-data would not be able to utilize php?
drwxrwxr-x 8 www-data root 4096 Oct 24 22:29 ./
drwxrwxr-x 13 www-data root 4096 Oct 24 18:42 ../
drwxrwxr-x 2 www-data root 4096 Oct 20 21:22 build/
drwxrwxr-x 2 www-data root 4096 Oct 20 21:22 css/
drwxrwxr-x 2 www-data root 4096 Oct 20 21:22 fonts/
drwxrwxr-x 2 www-data root 4096 Oct 20 21:22 js/
drwxrwxr-x 8 www-data root 4096 Oct 20 21:22 libs/
drwxrwxr-x 2 www-data root 4096 Oct 20 21:22 uploads/
-rw-rw-r-- 1 www-data root 10933 Oct 20 21:22 favicon.ico
-rw-rw-r-- 1 www-data root 412 Oct 20 21:22 .htaccess
-rw-rw-r-- 1 www-data root 1819 Oct 24 22:29 index.php
-rw-r--r-- 1 root root 20 Oct 24 20:02 info.php
-rw-rw-r-- 1 www-data root 11098 Oct 20 21:22 loading.gif
-rw-rw-r-- 1 www-data root 4682 Oct 20 21:22 logo.png
-rw-rw-r-- 1 www-data root 24 Oct 20 21:22 robots.txt
-rw-rw-r-- 1 www-data root 7405 Oct 20 21:22 user_avatar.png
-rw-rw-r-- 1 www-data root 6580 Oct 20 21:22 ZeroClipboard.swf
@ssddanbrown commented on GitHub (Oct 25, 2016):
@devin42r Does anything load if you go to
http://localhost/index.php?Just to ensure it's the apache config that's the issue you can go to the folder containing BookStack in the terminal and run
php artisan servewhich will run a simple php server accessible athttp://localhost:8000. See if that works. I'd imagine you'd still have errors since the database did not migrate but hopefully you'll be further along.@dvnrsn commented on GitHub (Oct 25, 2016):
Hmm, a blank page. Just empty html, head and body tags. Now that is all I'm getting regardless of whether I use localhost or 127.0.0.1 (with or without index.php appended).
When I kick up the phpserver it is giving me the same on 8000.
@lommes commented on GitHub (Oct 26, 2016):
What's your PHP version? How do the permissions look in the BookStack base directory? Laravel sometimes fails when it cannot access/write logs. So if the base directory (or the storage subfolder) is only writeable for root, this might be the problem.
@dvnrsn commented on GitHub (Oct 27, 2016):
php -v
PHP 7.0.12-1 (cli) ( NTS )
@dvnrsn commented on GitHub (Oct 27, 2016):
drwxr-xr-x 4 root root 4096 Oct 24 19:37 .
drwxr-xr-x 15 root root 4096 Oct 24 19:03 ..
drwxrwxr-x 13 www-data root 4096 Oct 24 18:42 BookStack
drwxr-xr-x 2 root root 4096 Oct 24 20:03 html
@dvnrsn commented on GitHub (Oct 27, 2016):
My base directory is a little further up ^^
@ssddanbrown commented on GitHub (Oct 28, 2016):
@devin42r Could you look for any clues in the Apache logs?
Should be an error log at /var/log/apache2/error.log or a similar location.
@dvnrsn commented on GitHub (Oct 28, 2016):
PHP Parse error: syntax error, unexpected 'echo' (T_ECHO) in /var/www/BookStack/public/index.php on line 3
Good call Dan, I don't know why I didn't check the logs. I had inserted a line asdfasdf and on the next line echo "asdfasdf"; trying to test earlier and forgotten. I removed both lines (echo works if I just leave it), but now I'm facing this screen
Whoops, looks like something went wrong.
Nothin in apache logs for this. I doublechecked the write permissions on respective files, re-ran, php artisan key:generate, doublechecked database user settings (and logged in from terminal), mail settings are still default, and tried to run php artisan migrate (still same error of [PDOException] could not find driver).
@ssddanbrown commented on GitHub (Oct 28, 2016):
This is a good line to see. The browser request is now reaching the application. You can turn on debugging or check the logs for more information. Details to do this can be found here:
https://www.bookstackapp.com/docs/admin/debugging
@ssddanbrown commented on GitHub (Oct 28, 2016):
Also, Ensure you have the
php7.0-mysqlpackage installed (sudo apt install php7.0-mysql)@dvnrsn commented on GitHub (Oct 28, 2016):
Awesome, I was trying all sorts of installs on mysql and sqlite as recommended on stack but the one you just provided got me another step further. Now I'm hitting the following:
Base table or view not found: 1146 Table 'bookstack.settings' doesn't exist (SQL: select * from
settingswheresetting_key= app-public limit 1)I don't understand. Am I supposed to configure some settings in mysql? I created my db user, db and password but is there something else?
@dvnrsn commented on GitHub (Oct 28, 2016):
No, I forgot I needed to actually finish the php artisan migrate...now it's taking me to /login and giving me
The requested URL /login was not found on this server.
No apache logs hmmm
@ssddanbrown commented on GitHub (Oct 28, 2016):
Okay, Now it looks like an issue in the apache configuration. What is the URL you are try to access BookStack at? is it something like
http://example.com/or are you accessing via a sub-directory likehttp://example.com/BookStack/?If you have set up an apache virtual host for BookStack can you paste the config here? If not have you made any changes to the apache configuration while installing BookStack?
@dvnrsn commented on GitHub (Oct 28, 2016):
I have been accessing it at localhost or 127.0...
Hmm, dang I did make some changes earlier but can't remember. Maybe the allowoverride. I'll search for what the default is and try to bring it back..
I think I invented that last Directory as I was trying to get things working. That shouldn't be there if I understand apache...
@dvnrsn commented on GitHub (Oct 28, 2016):
sites-available/000-default.conf does have
DocumentRoot /var/www/BookStack/public
@dvnrsn commented on GitHub (Oct 28, 2016):
Interestingly, http://127.0.0.1/index.php/login brings me to the correct page. I can't navigate anywhere from there. Similar thing is happening in nginx on my amazon server (except I can't even get index.php/login to load).
@ssddanbrown commented on GitHub (Oct 28, 2016):
On your apache instance, Have you ran the command
sudo a2enmod rewrite?@dvnrsn commented on GitHub (Oct 28, 2016):
Awesome that did it! Any idea how to do the same on nginx? From what I understand it happens with that line you guys included in the installation try_files $uri...index.php... Here is my relevant code from nginx.conf
`server {
listen 81 default_server;
listen [::]:81 default_server;
server_name localhost;
root /usr/share/nginx/bookstack/BookStack/public;
@ssddanbrown commented on GitHub (Oct 28, 2016):
🎉
No obvious issues from the config you pasted. Is PHP definately all working okay via nginx?
Here's the default config I put together for the default ubuntu 16.04 install script:
https://github.com/BookStackApp/devops/blob/master/config/nginx
You can compare your config with that one. It's made for ubuntu 16.04 so for other systems it may not be correct. You'll have to ensure you have the
php7.0-fpmpackage installed on your system.@ssddanbrown commented on GitHub (Jan 30, 2017):
Closing due to lack of response. Feel free to still respond to the above and I'll re-open this.
@bydox commented on GitHub (Feb 15, 2017):
Hi ! I encountered the same issue (blank login page after installation) on my Debian 8 installation. I eventually found the answer. It was a permission issue. What I did is the following, while in the app folder :
php artisan cache:clearchmod -R 777 storagechmod -R 777 bootstrap/cachechmod -R 777 public/uploadscomposer dump-autoload(Source)
I'll tweak the permissions to not let the folders completely opened, but I got to make BookStack to work. ;)
Hope it helps !
@dvnrsn commented on GitHub (Feb 15, 2017):
@bydox thanks for posting. @ssddanbrown my apologies for not getting back. I abandoned the nginx because I was simply doing that out of curiosity. Recently I just spun up bookstack on an ec2 server, however, and might need to throw up an issue for that for future ec2 users. I had to open permissions to 777 as well there. Need to figure out who is in apache group and why ec2-user was having issues even as owner and group...
@A9G-Data-Droid commented on GitHub (Feb 7, 2023):
It should be noted that you don't want to allow everyone write, which is what 777 does. If the user and group are correctly set to the httpd user
www-dataorapachethen you permissions don't have to be set wide open.EXAMPLE: