Manual install doesnt work #250

Closed
opened 2026-02-04 18:03:52 +03:00 by OVERLORD · 20 comments
Owner

Originally created by @petrk94 on GitHub (Jan 31, 2017).

Hello,
Im trying to install bookstack on my virtual shared server.
Im following the https://www.bookstackapp.com/docs/admin/installation/#manual
because the hoster doesnt support docker, but it doesnt work as expected and I get on the site xxx.canopus.uberspace.de/BookStack/
this error:
Forbidden

You don't have permission to access / on this server.

Apache/2.2.15 (CentOS) Server at book1234.canopus.uberspace.de Port 80

Anyone an idea what can be the reason?
I have installed composer with this manual: https://getcomposer.org/doc/00-intro.md#locally
Installed PHPVERSION=5.6

Hope you can help me and maybe check and extend the manual.
Thanks

Originally created by @petrk94 on GitHub (Jan 31, 2017). Hello, Im trying to install bookstack on my virtual shared server. Im following the https://www.bookstackapp.com/docs/admin/installation/#manual because the hoster doesnt support docker, but it doesnt work as expected and I get on the site xxx.canopus.uberspace.de/BookStack/ this error: Forbidden You don't have permission to access / on this server. Apache/2.2.15 (CentOS) Server at book1234.canopus.uberspace.de Port 80 Anyone an idea what can be the reason? I have installed composer with this manual: https://getcomposer.org/doc/00-intro.md#locally Installed PHPVERSION=5.6 Hope you can help me and maybe check and extend the manual. Thanks
OVERLORD added the 🐕 Support label 2026-02-04 18:03:52 +03:00
Author
Owner

@Ethanb00 commented on GitHub (Jan 31, 2017):

That sounds like it may be a permissions issue. I would suggest looking at your apache error logs.

@Ethanb00 commented on GitHub (Jan 31, 2017): That sounds like it may be a permissions issue. I would suggest looking at your apache error logs.
Author
Owner

@petrk94 commented on GitHub (Jan 31, 2017):

I have checked the error log and got this:

[Tue Jan 31 17:51:35 2017] [error] [client 95.90.213.240] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/
[Tue Jan 31 17:51:51 2017] [error] [client 95.90.213.240] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/BookStack/

I have made the folders writeable as written in the manual with chmod 777 for test.
But still no change

@petrk94 commented on GitHub (Jan 31, 2017): I have checked the error log and got this: ``` [Tue Jan 31 17:51:35 2017] [error] [client 95.90.213.240] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/ [Tue Jan 31 17:51:51 2017] [error] [client 95.90.213.240] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/BookStack/ ``` I have made the folders writeable as written in the manual with chmod 777 for test. But still no change
Author
Owner

@Ethanb00 commented on GitHub (Jan 31, 2017):

Assuming you didn't make changes to .htaccess for bookstack, then the origin of your issue is in one of your .conf files (either apache.conf/httpd.conf or the site-enabled conf for bookstack).

You probably have something that says something like "Options -Indexes". That will cause this error.

@Ethanb00 commented on GitHub (Jan 31, 2017): Assuming you didn't make changes to .htaccess for bookstack, then the origin of your issue is in one of your .conf files (either apache.conf/httpd.conf or the site-enabled conf for bookstack). You probably have something that says something like "Options -Indexes". That will cause this error.
Author
Owner

@lommes commented on GitHub (Jan 31, 2017):

Another reason maybe that you point to the root directory of Bookstack but there is no index.php file. You need to point to the public subdirectory.

Since the DocumentRoot is fixed in uberspace hosting to /var/www/virtual/<username>/html you have to change directory to /var/www/virtual/<username> an place the BookStack sources there and symlink BookStackApp/public to html

This is specific to uberspace and it took me some time to figure it out. If you run in any errors don't hessitate to contact their support. They do a great job

edit
just saw your paths above:
place BookStack folder in /var/www/virtual/book1234/ so there is /var/www/virtual/book1234/BookStack/public
delete or move /var/www/virtual/book1234/html and run
cd /var/www/virtual/book1234/ && ln -s BookStack/public html

BookStack then will be available directly with http://book1234.canopus.uberspace.de

@lommes commented on GitHub (Jan 31, 2017): Another reason maybe that you point to the root directory of Bookstack but there is no index.php file. You need to point to the public subdirectory. Since the DocumentRoot is fixed in uberspace hosting to /var/www/virtual/`<username>`/html you have to change directory to /var/www/virtual/`<username>` an place the BookStack sources there and symlink BookStackApp/public to html This is specific to uberspace and it took me some time to figure it out. If you run in any errors don't hessitate to contact their support. They do a great job **edit** just saw your paths above: place BookStack folder in `/var/www/virtual/book1234/` so there is `/var/www/virtual/book1234/BookStack/public` delete or move `/var/www/virtual/book1234/html` and run `cd /var/www/virtual/book1234/ && ln -s BookStack/public html` BookStack then will be available directly with http://book1234.canopus.uberspace.de
Author
Owner

@petrk94 commented on GitHub (Jan 31, 2017):

Well I have created a .htaccess file and filled with:

Options +SymLinksIfOwnerMatch
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

because it didnt got created by itself

@petrk94 commented on GitHub (Jan 31, 2017): Well I have created a .htaccess file and filled with: ``` Options +SymLinksIfOwnerMatch RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] ``` because it didnt got created by itself
Author
Owner

@Ethanb00 commented on GitHub (Jan 31, 2017):

there shouldn't be a need to create your own htaccess file. If you need the original htaccess file, it is located in the repo (under public/.htaccess)

Why did you write your own?

@Ethanb00 commented on GitHub (Jan 31, 2017): there shouldn't be a need to create your own htaccess file. If you need the original htaccess file, it is located in the repo (under public/.htaccess) Why did you write your own?
Author
Owner

@petrk94 commented on GitHub (Jan 31, 2017):

Because there was point:

  1. If not using Apache or if .htaccess files are disabled you will have to create some URL rewrite rules as shown below.

And because I dont could edit a .htaccess file, I have created a new one.
I will try it with the file you say

@petrk94 commented on GitHub (Jan 31, 2017): Because there was point: > 6. If not using Apache or if .htaccess files are disabled _you will have to create some URL rewrite rules_ as shown below. And because I dont could edit a .htaccess file, I have created a new one. I will try it with the file you say
Author
Owner

@Ethanb00 commented on GitHub (Jan 31, 2017):

the rewrite rules indicated should be in your httpd.conf, not a new htaccess. But you should need those anyway if you have a functioning htaccess file in the public directory.

@Ethanb00 commented on GitHub (Jan 31, 2017): the rewrite rules indicated should be in your httpd.conf, not a new htaccess. But you should need those anyway if you have a functioning htaccess file in the public directory.
Author
Owner

@petrk94 commented on GitHub (Jan 31, 2017):

I have now deleted my .htaccess file and used this one in this repo
Now I get the forbidden too, but with error and access log.

Error log:

[Tue Jan 31 19:13:17 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/
[Tue Jan 31 19:13:17 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] File does not exist: /var/www/virtual/book1234/html/favicon.ico, referer: http://b$
[Tue Jan 31 19:16:10 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] File does not exist: /var/www/virtual/book1234/html/public
[Tue Jan 31 19:16:17 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] File does not exist: /var/www/virtual/book1234/html/BookStack/index.php
[Tue Jan 31 19:24:26 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] File does not exist: /var/www/virtual/book1234/html/BookStack/index.php
[Tue Jan 31 19:24:28 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/
[Tue Jan 31 19:35:44 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/
[Tue Jan 31 20:54:16 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/
[Tue Jan 31 21:38:47 2017] [error] [client 95.90.213.240] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/BookStack/

Access log:

2a02:810c:d3f:: - - [31/Jan/2017:19:13:17 +0100] "GET / HTTP/1.1" 403 297 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro$
2a02:810c:d3f:: - - [31/Jan/2017:19:13:17 +0100] "GET /favicon.ico HTTP/1.1" 404 304 "http://book1234.canopus.uberspace.de/" "Mozilla/5.0 (Windows NT 10.0; Win64; x$
2a02:810c:d3f:: - - [31/Jan/2017:19:16:10 +0100] "GET /public HTTP/1.1" 404 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko$
2a02:810c:d3f:: - - [31/Jan/2017:19:16:16 +0100] "GET /BookStack/public HTTP/1.1" 301 357 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, $
2a02:810c:d3f:: - - [31/Jan/2017:19:16:16 +0100] "GET /BookStack/public/ HTTP/1.1" 302 452 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,$
2a02:810c:d3f:: - - [31/Jan/2017:19:16:17 +0100] "GET /BookStack/login HTTP/1.1" 404 312 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, l$
2a02:810c:d3f:: - - [31/Jan/2017:19:24:26 +0100] "GET /BookStack/login HTTP/1.1" 404 312 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, l$
2a02:810c:d3f:: - - [31/Jan/2017:19:24:28 +0100] "GET / HTTP/1.1" 403 297 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro$
2a02:810c:d3f:: - - [31/Jan/2017:19:35:44 +0100] "GET / HTTP/1.1" 403 297 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro$
@petrk94 commented on GitHub (Jan 31, 2017): I have now deleted my .htaccess file and used this one in this repo Now I get the forbidden too, but with error and access log. Error log: ``` [Tue Jan 31 19:13:17 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/ [Tue Jan 31 19:13:17 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] File does not exist: /var/www/virtual/book1234/html/favicon.ico, referer: http://b$ [Tue Jan 31 19:16:10 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] File does not exist: /var/www/virtual/book1234/html/public [Tue Jan 31 19:16:17 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] File does not exist: /var/www/virtual/book1234/html/BookStack/index.php [Tue Jan 31 19:24:26 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] File does not exist: /var/www/virtual/book1234/html/BookStack/index.php [Tue Jan 31 19:24:28 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/ [Tue Jan 31 19:35:44 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/ [Tue Jan 31 20:54:16 2017] [error] [client 2a02:810c:d3f:f714:9886:b511:110:b1c1] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/ [Tue Jan 31 21:38:47 2017] [error] [client 95.90.213.240] Directory index forbidden by Options directive: /var/www/virtual/book1234/html/BookStack/ ``` Access log: ``` 2a02:810c:d3f:: - - [31/Jan/2017:19:13:17 +0100] "GET / HTTP/1.1" 403 297 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro$ 2a02:810c:d3f:: - - [31/Jan/2017:19:13:17 +0100] "GET /favicon.ico HTTP/1.1" 404 304 "http://book1234.canopus.uberspace.de/" "Mozilla/5.0 (Windows NT 10.0; Win64; x$ 2a02:810c:d3f:: - - [31/Jan/2017:19:16:10 +0100] "GET /public HTTP/1.1" 404 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko$ 2a02:810c:d3f:: - - [31/Jan/2017:19:16:16 +0100] "GET /BookStack/public HTTP/1.1" 301 357 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, $ 2a02:810c:d3f:: - - [31/Jan/2017:19:16:16 +0100] "GET /BookStack/public/ HTTP/1.1" 302 452 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,$ 2a02:810c:d3f:: - - [31/Jan/2017:19:16:17 +0100] "GET /BookStack/login HTTP/1.1" 404 312 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, l$ 2a02:810c:d3f:: - - [31/Jan/2017:19:24:26 +0100] "GET /BookStack/login HTTP/1.1" 404 312 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, l$ 2a02:810c:d3f:: - - [31/Jan/2017:19:24:28 +0100] "GET / HTTP/1.1" 403 297 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro$ 2a02:810c:d3f:: - - [31/Jan/2017:19:35:44 +0100] "GET / HTTP/1.1" 403 297 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro$ ```
Author
Owner

@Ethanb00 commented on GitHub (Jan 31, 2017):

Ok, cool. Thanks.

Can you post your httpd.conf?

@Ethanb00 commented on GitHub (Jan 31, 2017): Ok, cool. Thanks. Can you post your httpd.conf?
Author
Owner

@petrk94 commented on GitHub (Jan 31, 2017):

Dont know whether this would help you?

ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>
<IfModule worker.c>
StartServers         4
MaxClients         300
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>
Listen 95.143.172.252:81
#Listen 95.143.172.95:81
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so
User apache
Group apache
Include conf.d/*.conf
ServerAdmin hallo@uberspace.de
UseCanonicalName Off
DocumentRoot "/var/www/html"
<Directory />
Options SymLinksIfOwnerMatch
    AllowOverride None
</Directory>
<Directory "/var/www/html">
 # 2010-02-03 Indexes rausgenommen, das wollen wir grundsätzlich nicht global
   Options Includes FollowSymLinks
AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,Includes,Indexes,MultiViews,SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>
<IfModule mod_userdir.c>
    UserDir disabled
</IfModule>
DirectoryIndex index.html index.htm index.html.var index.php index.php4 index.php5 index.cgi index.shtml
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
TypesConfig /etc/mime.types
DefaultType application/octet-stream
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog "|| /usr/sbin/rotatelogs -f -p /usr/local/sbin/logjanitor -L /var/log/httpd/error_log /var/log/httpd/error_log.%Y-%m-%d-%H_%M_%S 86400 256M"
LogLevel warn
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vcombined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
ServerSignature On
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
AddHandler type-map var
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/error/"
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>
</IfModule>
</IfModule>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

@petrk94 commented on GitHub (Jan 31, 2017): Dont know whether this would help you? ``` ServerTokens OS ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 60 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 </IfModule> <IfModule worker.c> StartServers 4 MaxClients 300 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> Listen 95.143.172.252:81 #Listen 95.143.172.95:81 LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_alias_module modules/mod_authn_alias.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so LoadModule env_module modules/mod_env.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule substitute_module modules/mod_substitute.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule cgi_module modules/mod_cgi.so LoadModule version_module modules/mod_version.so User apache Group apache Include conf.d/*.conf ServerAdmin hallo@uberspace.de UseCanonicalName Off DocumentRoot "/var/www/html" <Directory /> Options SymLinksIfOwnerMatch AllowOverride None </Directory> <Directory "/var/www/html"> # 2010-02-03 Indexes rausgenommen, das wollen wir grundsätzlich nicht global Options Includes FollowSymLinks AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,Includes,Indexes,MultiViews,SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir disabled </IfModule> DirectoryIndex index.html index.htm index.html.var index.php index.php4 index.php5 index.cgi index.shtml AccessFileName .htaccess <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> TypesConfig /etc/mime.types DefaultType application/octet-stream <IfModule mod_mime_magic.c> MIMEMagicFile conf/magic </IfModule> HostnameLookups Off ErrorLog "|| /usr/sbin/rotatelogs -f -p /usr/local/sbin/logjanitor -L /var/log/httpd/error_log /var/log/httpd/error_log.%Y-%m-%d-%H_%M_%S 86400 256M" LogLevel warn LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vcombined LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent ServerSignature On Alias /icons/ "/var/www/icons/" <Directory "/var/www/icons"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> <IfModule mod_dav_fs.c> # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb </IfModule> <Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif ReadmeName README.html HeaderName HEADER.html IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t AddLanguage ca .ca AddLanguage cs .cz .cs AddLanguage da .dk AddLanguage de .de AddLanguage el .el AddLanguage en .en AddLanguage eo .eo AddLanguage es .es AddLanguage et .et AddLanguage fr .fr AddLanguage he .he AddLanguage hr .hr AddLanguage it .it AddLanguage ja .ja AddLanguage ko .ko AddLanguage ltz .ltz AddLanguage nl .nl AddLanguage nn .nn AddLanguage no .no AddLanguage pl .po AddLanguage pt .pt AddLanguage pt-BR .pt-br AddLanguage ru .ru AddLanguage sv .sv AddLanguage zh-CN .zh-cn AddLanguage zh-TW .zh-tw LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW ForceLanguagePriority Prefer Fallback AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl AddHandler type-map var AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/var/www/error/" <IfModule mod_negotiation.c> <IfModule mod_include.c> <Directory "/var/www/error"> AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback </Directory> </IfModule> </IfModule> BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "MS FrontPage" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully BrowserMatch "^gnome-vfs/1.0" redirect-carefully BrowserMatch "^XML Spy" redirect-carefully BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully ```
Author
Owner

@Ethanb00 commented on GitHub (Jan 31, 2017):

Ok I think your issue is in here.

Your Directory sections aren't allowing access to the htaccess files.

@Ethanb00 commented on GitHub (Jan 31, 2017): Ok I think your issue is in here. Your Directory sections aren't allowing access to the htaccess files.
Author
Owner

@Ethanb00 commented on GitHub (Jan 31, 2017):

Is there a reason why you are using SymLinksIfOwnerMatch?

@Ethanb00 commented on GitHub (Jan 31, 2017): Is there a reason why you are using SymLinksIfOwnerMatch?
Author
Owner

@petrk94 commented on GitHub (Feb 1, 2017):

ok and what I need to change?

The hosting provider is blocking it:

FollowSymLinks

For security reasons, you can not use Options + FollowSymLinks. This is not a problem: The Apache provides with SymLinksIfOwnerMatch an option, which does exactly the same as FollowSymLinks, but at the same time verifies whether the target belongs to the same user as the link itself. The nice thing about this: symlink attacks are excluded But the web server can still follow symlinks.

So the solution is ...

Options + SymLinksIfOwnerMatch
... to the .htaccess or to replace Options + FollowSymLinks with the entry above

.

@petrk94 commented on GitHub (Feb 1, 2017): ok and what I need to change? The hosting provider is blocking it: > FollowSymLinks > > For security reasons, you can not use Options + FollowSymLinks. This is not a problem: The Apache provides with SymLinksIfOwnerMatch an option, which does exactly the same as FollowSymLinks, but at the same time verifies whether the target belongs to the same user as the link itself. The nice thing about this: symlink attacks are excluded But the web server can still follow symlinks. > > So the solution is ... > > Options + SymLinksIfOwnerMatch > ... to the .htaccess or to replace Options + FollowSymLinks with the entry above .
Author
Owner

@Ethanb00 commented on GitHub (Feb 1, 2017):

Good question.

I don't know your exact setup so you'll have to do some tooling around with the directory settings and apache rules.

@Ethanb00 commented on GitHub (Feb 1, 2017): Good question. I don't know your exact setup so you'll have to do some tooling around with the directory settings and apache rules.
Author
Owner

@lommes commented on GitHub (Feb 1, 2017):

uberspace.de is a shared hosting provider, so there might be some restrictions which are not present on eg a VPS.

you should re-read my comment which explains all steps necessary to get a laravel app running there.

@lommes commented on GitHub (Feb 1, 2017): uberspace.de is a shared hosting provider, so there might be some restrictions which are not present on eg a VPS. you should re-read my [comment](https://github.com/BookStackApp/BookStack/issues/291#issuecomment-276442469) which explains all steps necessary to get a laravel app running there.
Author
Owner

@petrk94 commented on GitHub (Feb 21, 2017):

@lommes
I have tried it as you have shown in the comment
But it still not work :(
Im not sure what it cause, I have set the PHP Version to 5.6.6, only the MySQL version is 5.1, and I can not change that.

@petrk94 commented on GitHub (Feb 21, 2017): @lommes I have tried it as you have shown in the [comment](https://github.com/BookStackApp/BookStack/issues/291#issuecomment-276442469) But it still not work :( Im not sure what it cause, I have set the PHP Version to 5.6.6, only the MySQL version is 5.1, and I can not change that.
Author
Owner

@petrk94 commented on GitHub (Feb 21, 2017):

@lommes I will try sloppy.io and arukas with the docker image.
But at sloppy I have choose /solidnerd/bookstack as docker image, but it dont has run out of the box.
I will check it later

@petrk94 commented on GitHub (Feb 21, 2017): @lommes I will try sloppy.io and arukas with the docker image. But at sloppy I have choose /solidnerd/bookstack as docker image, but it dont has run out of the box. I will check it later
Author
Owner

@ssddanbrown commented on GitHub (Feb 23, 2017):

Thanks @Ethanb00 and @lommes for looking into this.

@petrk94 Sorry to hear you've been having issues installing BookStack. Apps like these can be awkward to set up in the limitations of shared hosting. Since BookStack is built on the Laravel framework it should install very similarly to other laravel applications. You could try contacting your hosts's support services requesting help installing a 'Laravel Application' since that's a more common requirement that they may be more familiar with.

@ssddanbrown commented on GitHub (Feb 23, 2017): Thanks @Ethanb00 and @lommes for looking into this. @petrk94 Sorry to hear you've been having issues installing BookStack. Apps like these can be awkward to set up in the limitations of shared hosting. Since BookStack is built on the Laravel framework it should install very similarly to other laravel applications. You could try contacting your hosts's support services requesting help installing a 'Laravel Application' since that's a more common requirement that they may be more familiar with.
Author
Owner

@ssddanbrown commented on GitHub (Jul 28, 2017):

Closing due to issue age and the fact the conversation came to a close, Feel free to comment if you want to discuss further though and this issue can be re-opened.

@ssddanbrown commented on GitHub (Jul 28, 2017): Closing due to issue age and the fact the conversation came to a close, Feel free to comment if you want to discuss further though and this issue can be re-opened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#250