mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-08 11:19:36 +03:00
Instalation different subfolder #1454
Closed
opened 2026-02-05 00:56:54 +03:00 by OVERLORD
·
19 comments
No Branch/Tag Specified
development
further_theme_development
l10n_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
pull-request
Mirrored from GitHub Pull Request
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#1454
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 @fontesanta on GitHub (Nov 15, 2019).
Can someone help me please?
I'm trying to install Bookstack in a different directory.
When https: //192.168.32.6/wiki.
Unable to access this site
192.168.32.6 refused to connect.
Try it:
Check Connection
Check proxy and firewall
ERR_CONNECTION_REFUSED
I list my settings.
Thanks.
Instalation in /var/www/wiki/BookStack
My .env file
Application URL
Remove the hash below and set a URL if using BookStack behind
a proxy, if using a third-party authentication option.
This must be the root URL that you want to host BookStack on.
All URL's in BookStack will be generated using this value.
APP_URL=https://192.168.32.6/wiki
And my 000-default.conf
@ssddanbrown commented on GitHub (Nov 15, 2019):
Hi @fontesanta,
Can you check if any errors appear in your apache error log after a bad request?
Likely to be at
/var/log/apache2/error.logif you on ubuntu.@Mant1kor commented on GitHub (Nov 15, 2019):
@fontesanta you've tried to open site with https protocol. It means you have to use certificate and your web-server configured to listen 443 port, but it's not.
So use
httpin browser and.envfile, or configure apache to https.@fontesanta commented on GitHub (Nov 18, 2019):
Hello thank you very much for your help,
I changed in .env to http: // and the result is the same.
ubuntu error.log at: / var / log / apache2
[Mon Nov 18 06: 25: 06.447887 2019] [mpm_prefork: notice] [pid 1808] AH00163: Apache / 2.4.29 (Ubuntu) configured - resuming normal operations
[Mon Nov 18 06: 25: 06.447955 2019] [core: notice] [pid 1808] AH00094: Command line: '/ usr / sbin / apache2'
[Mon Nov 18 11: 05: 44.605609 2019] [mpm_prefork: notice] [pid 1808] AH00169: caught SIGTERM, shutting down
[Mon Nov 18 11: 05: 45.832869 2019] [mpm_prefork: notice] [pid 1053] AH00163: Apache / 2.4.29 (Ubuntu) configured - resuming normal operations
[Mon Nov 18 11: 05: 45.833059 2019] [core: notice] [pid 1053] AH00094: Command line: '/ usr / sbin / apache2'
[Mon Nov 18 11: 06: 12.256877 2019] [authz_core: error] [pid 1059] [client 192.168.32.188:62499] AH01630: client denied by server configuration: / var / www / wiki / Bookstack
[Mon Nov 18 11: 06: 25.197233 2019] [authz_core: error] [pid 1062] [client 192.168.32.188:62506] AH01630: client denied by server configuration: / var / www / wiki / Bookstack
@Mant1kor commented on GitHub (Nov 18, 2019):
What address in browser did you try to open?
@lommes commented on GitHub (Nov 18, 2019):
I'm not completly sure, but I think the Directoy directives are sequentially, so the <Directory "/var/www/wiki"> at the end overrides the <Directory "/var/www/wiki/Bookstack/public"> from earlier.
@fontesanta commented on GitHub (Nov 18, 2019):
I´m trying http://192.168.32.6/wiki
@fontesanta commented on GitHub (Nov 18, 2019):
I tried different configurations without sucess.<Directory "/var/www/wiki"> at the end overrides the <Directory "/var/www/wiki/Bookstack/public"> from earlier.
@Mant1kor commented on GitHub (Nov 18, 2019):
Change to
<VirtualHost _default_:80>@fontesanta commented on GitHub (Nov 18, 2019):
Now i´m getting this:
403 Forbidden
You don't have permission to access this resource.
Apache/2.4.29 (Ubuntu) Server at 192.168.32.6 Port 80
[Mon Nov 18 15:34:41.884865 2019] [authz_core:error] [pid 2529] [client 192.168.32.188:50634] AH01630: client denied by server configuration
@fontesanta commented on GitHub (Nov 19, 2019):
I tried to install again and came back to this:
http://192.168.32.6/wiki
Not Found
The requested URL was not found on this server.
Apache/2.4.29 (Ubuntu) Server at 192.168.32.6 Port 80
[Tue Nov 19 16:24:15.765111 2019] [core:notice] [pid 3939] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 19 16:27:42.042462 2019] [mpm_prefork:notice] [pid 3939] AH00169: caught SIGTERM, shutting down [Tue Nov 19 16:27:42.341184 2019] [mpm_prefork:notice] [pid 4019] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Tue Nov 19 16:27:42.341319 2019] [core:notice] [pid 4019] AH00094: Command line: '/usr/sbin/apache2' [Tue Nov 19 16:28:32.103348 2019] [mpm_prefork:notice] [pid 4019] AH00169: caught SIGTERM, shutting down
[Tue Nov 19 16:28:32.393543 2019] [mpm_prefork:notice] [pid 4063] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Tue Nov 19 16:28:32.393714 2019] [core:notice] [pid 4063] AH00094: Command line: '/usr/sbin/apache2'
.env
Application key
Used for encryption where needed.
Run
php artisan key:generateto generate a valid key.APP_KEY=base64:VGltbQQY7wdK4ClV/Bn/zjslV1UiOcOxfU+TowXjd7k=
Application URL
Remove the hash below and set a URL if using BookStack behind
a proxy, if using a third-party authentication option.
This must be the root URL that you want to host BookStack on.
All URL's in BookStack will be generated using this value.
APP_URL=http://192.168.32.6/wiki
Database details
DB_HOST=localhost
DB_DATABASE=wiki
DB_USERNAME=wiki
DB_PASSWORD=wikiPassw0rd!!
Mail system to use
Can be 'smtp', 'mail' or 'sendmail'
MAIL_DRIVER=smtp
SMTP mail options
MAIL_HOST=localhost
MAIL_PORT=1025
000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
<Directory "/var/www/wiki/Bookstack/public">
Options FollowSymlinks
AllowOverride None
Require all granted
vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Thanks!
@lommes commented on GitHub (Nov 19, 2019):
This might be (again) because you have a Directory directive for /var/www/wiki/Bookstack/public and override it with the one for /var/www/wiki/Bookstack.
It might work after placing
BEFORE
and restaring apache
@fontesanta commented on GitHub (Nov 20, 2019):
I tested with what you said but the result is, unfortunately, the same ...
404Not Found
The requested URL was not found on this server.
Apache/2.4.29 (Ubuntu) Server at 192.168.32.6 Port 80
@lommes commented on GitHub (Nov 20, 2019):
Is mod_alias enabled?
sudo a2enmod aliasSince the error now is 404, which means the file/folder you are trying to access is not found, there should be something helpfull in the webserver (errror.)log.
It might be necessary to set AllowOverride All in the directory directive for the public folder.
@fontesanta commented on GitHub (Nov 20, 2019):
sudo a2enmod alias : Module alias already enabled
[Wed Nov 20 06:25:09.185746 2019] [mpm_prefork:notice] [pid 4063] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Nov 20 06:25:09.185835 2019] [core:notice] [pid 4063] AH00094: Command line: '/usr/sbin/apache2'
[Wed Nov 20 09:26:49.632467 2019] [mpm_prefork:notice] [pid 4063] AH00169: caught SIGTERM, shutting down
[Wed Nov 20 09:29:23.051220 2019] [mpm_prefork:notice] [pid 17655] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Nov 20 09:29:23.125420 2019] [core:notice] [pid 17655] AH00094: Command line: '/usr/sbin/apache2'
How can i do it ? :It might be necessary to set AllowOverride All in the directory directive for the public folder.
Thank you
@fontesanta commented on GitHub (Nov 20, 2019):
afs@ubuntuserver: /var/www/wiki/BookStack
The bookstack files are located here. Am I doing something wrong here?
Same result for:
192.168.32.6/wiki
192.168.32.6/wiki/Bookstack
192.168.32.6/wiki/Bookstack/index.php
tkyou.
@lommes commented on GitHub (Nov 20, 2019):
To set the AllowOverride to All just replace
AllowOverride NonewithAllowOverride Allin the <Directory "/var/www/wiki/Bookstack/public"> part.To get 404 errors in your error.log you need to change the LogLevel to info. There is a line in your config, just remove the # infront of #LogLevel info ssl:warn and restart apache
@fontesanta commented on GitHub (Nov 20, 2019):
After remove the # infront of #LogLevel info ssl:warn and restart apache
Unit apache2.service has begun starting up.
Nov 20 14:32:37 ubuntuserver apachectl[21627]: AH00526: Syntax error on line 141 of /etc/apache2/apache2.conf:
Nov 20 14:32:37 ubuntuserver apachectl[21627]: Cannot find module ssl
Nov 20 14:32:37 ubuntuserver apachectl[21627]: Action 'start' failed.
Nov 20 14:32:37 ubuntuserver apachectl[21627]: The Apache error log may have more information.
Nov 20 14:32:37 ubuntuserver systemd[1]: apache2.service: Control process exited, code=exited status=1
Nov 20 14:32:37 ubuntuserver systemd[1]: apache2.service: Failed with result 'exit-code'.
Nov 20 14:32:37 ubuntuserver systemd[1]: Failed to start The Apache HTTP Server.
@fontesanta commented on GitHub (Nov 20, 2019):
I am combining some sites, maybe it is not the best approach, can you indicate some tutorial that I can follow to install on ubuntu 18.04 apache mysql? thank you.
@ssddanbrown commented on GitHub (Dec 12, 2020):
Since this support issue is over a year old I'm going to close this off.
If still needed, Our 18.04 install script can often act as a good guide since we keep it commented for clarity:
https://github.com/BookStackApp/devops/blob/master/scripts/installation-ubuntu-18.04.sh
Otherwise, you could search for "Laravel" install/deployment tutorials/guides since it'd be much the same.