├── app ├── nut ├── config │ └── .gitignore ├── cache │ └── .gitignore └── database │ └── .gitignore ├── extensions └── .gitignore ├── public ├── theme │ └── .gitignore ├── files │ └── .gitignore ├── thumbs │ └── .gitignore ├── bolt-public │ └── .gitignore ├── extensions │ └── .gitignore ├── index.php └── .htaccess ├── README.md ├── .gitignore ├── src └── Site │ └── CustomisationExtension.php ├── composer.json └── index.php /app/nut: -------------------------------------------------------------------------------- 1 | ../vendor/bin/nut -------------------------------------------------------------------------------- /extensions/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | -------------------------------------------------------------------------------- /app/config/.gitignore: -------------------------------------------------------------------------------- 1 | *_local.yml 2 | -------------------------------------------------------------------------------- /app/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/theme/.gitignore: -------------------------------------------------------------------------------- 1 | !.gitignore 2 | -------------------------------------------------------------------------------- /app/database/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/files/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/thumbs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/bolt-public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/extensions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | run(); 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bolt Installer for Composer 2 | 3 | To start the install just run the following command replacing the project with 4 | the name you want to use. 5 | 6 | `composer create-project bolt/composer-install:^3.7 --prefer-dist` 7 | 8 | After the packages have downloaded, you can choose whether you would like a 9 | separate public directory and if so choose a name. 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # PHP files and folders 2 | /vendor 3 | 4 | # Common developer tools 5 | composer.phar 6 | php-cs-fixer.phar 7 | scrutinizer.phar 8 | 9 | # NPM, Gulp and Grunt stuff 10 | .sass-cache 11 | bower_components 12 | node_modules 13 | npm-debug.log 14 | 15 | # File-system cruft and temporary files 16 | *.gz 17 | *.sublime-* 18 | *.zip 19 | .*.swp 20 | ._* 21 | .buildpath 22 | .DS_Store 23 | .idea 24 | .project 25 | .swp 26 | .Trashes 27 | .vagrant* 28 | __* 29 | Thumbs.db 30 | Vagrantfile 31 | -------------------------------------------------------------------------------- /src/Site/CustomisationExtension.php: -------------------------------------------------------------------------------- 1 | 9 | Options -MultiViews 10 | 11 | 12 | 13 | 14 | Require all denied 15 | 16 | 17 | Order deny,allow 18 | Deny from all 19 | 20 | 21 | 22 | 23 | RewriteEngine on 24 | 25 | RewriteRule cache/ - [F] 26 | 27 | # Some servers require the RewriteBase to be set. If so, set to the correct folder. 28 | # RewriteBase / 29 | 30 | RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ 31 | RewriteRule ^(.*) - [E=BASE:%1] 32 | 33 | # Sets the HTTP_AUTHORIZATION header removed by Apache 34 | RewriteCond %{HTTP:Authorization} . 35 | RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 36 | 37 | # Redirect to URI without front controller to prevent duplicate content 38 | # (with and without `/index.php`). Only do this redirect on the initial 39 | # rewrite by Apache and not on subsequent cycles. Otherwise we would get an 40 | # endless redirect loop (request -> rewrite to front controller -> 41 | # redirect -> request -> ...). 42 | # So in case you get a "too many redirects" error or you always get redirected 43 | # to the start page because your Apache does not expose the REDIRECT_STATUS 44 | # environment variable, you have 2 choices: 45 | # - disable this feature by commenting the following 2 lines or 46 | # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the 47 | # following RewriteCond (best solution) 48 | RewriteCond %{ENV:REDIRECT_STATUS} ^$ 49 | RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L] 50 | 51 | # If the requested filename exists, simply serve it. 52 | # We only want to let Apache serve files and not directories. 53 | RewriteCond %{REQUEST_FILENAME} !-d 54 | RewriteCond %{REQUEST_URI} !=/favicon.ico 55 | RewriteCond %{REQUEST_FILENAME} -f 56 | RewriteRule ^ - [L] 57 | 58 | # Rewrite all other queries to the front controller. 59 | RewriteRule ^ %{ENV:BASE}/index.php [L] 60 | 61 | 62 | 63 | 64 | # set the correct mime type for woff2 font type 65 | # ============================================= 66 | # if you don't set your own mimetypes or you aren't using 67 | # HTML5 Boilerplate Server Configs https://github.com/h5bp/server-configs-apache 68 | # then you can uncomment (delete the hash/pound/octothorpe/number symbol) 69 | # the section below: 70 | 71 | # 72 | # AddType application/font-woff2 woff2 73 | # 74 | 75 | # Block access to all hidden files and directories. These types of files 76 | # usually contain user preferences and can include private information like, 77 | # for example, the `.git` or `.svn` directories. 78 | 79 | RewriteEngine On 80 | RewriteCond %{REQUEST_URI} "!(^|/)\.well-known/([^./]+./?)+$" [NC] 81 | RewriteCond %{SCRIPT_FILENAME} -d [OR] 82 | RewriteCond %{SCRIPT_FILENAME} -f 83 | RewriteRule "(^|/)\." - [F] 84 | 85 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Bolt - Installation error 6 | 19 | 20 | 21 | 22 |
23 | 24 |

Bolt - Installation error

25 | 26 |

You've (probably) installed Bolt in the wrong folder.

27 | 28 |

29 | It's recommended to install Bolt outside the so-called web root, because 30 | this is generally seen as 'best practice', and it is good for overall 31 | security. The reason you are seeing this page, is that your web server 32 | is currently serving the incorrect folder as 'web root'. Or, to put it 33 | the other way around: This file should not be visible. 34 |

35 | 36 |

37 | The current folder is: /. 38 |

39 |
40 | 41 |

42 | The best and easiest fix for this, is to configure the webserver to use 43 | /public/ as the 'document root'. 44 |

45 |
46 | 47 |

48 | Alternatively, move everything 'up' one level. So instead of extracting 49 | the .zip or .tgz file in this folder, extract 50 | it in / instead. If you do 51 | this, you must edit the .bolt.yml file as follows, so it use 52 | the correct folder. 53 |

54 | 55 |
 56 | paths:
 57 |     web: "%site%/"
 58 | 
59 | 60 | 61 | TIP: copy this snippet now, because you won't see it anymore, after moving the files. 62 | 63 |
64 | 65 |

66 | If these options aren't possible for you, please consult the documentation on 67 | Installing Bolt, 68 | as well as the page on 69 | 70 | Troubleshooting 'Outside of the web root' 71 | . 72 |

73 | 74 | 75 | 101 | 102 |
103 |
104 | 105 | 106 | 107 | --------------------------------------------------------------------------------