This repository has been archived by the owner on Jul 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
106 lines (92 loc) · 3.82 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Bolt - Installation error</title>
<style>
body{font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;color:#333;font-size:14px;line-height:20px;margin:0;}
h1 {font-size: 38.5px;line-height: 40px;margin: 10px 0;}
p{margin: 0 0 10px;}
strong{font-weight:bold;}
code, pre {padding: 0 3px 2px;font-family: Monaco,Menlo,Consolas,"Courier New",monospace;font-size: 12px;color: #333;border-radius: 3px;}
pre { display: block; white-space: pre-wrap; color: #D14;background-color: #F7F7F9;border: 1px solid #E1E1E8; }
code {padding: 2px 4px;color: #D14;background-color: #F7F7F9;border: 1px solid #E1E1E8; white-space: nowrap;}
a {color: #08C;text-decoration: none;}
ul, ol {padding: 0;margin: 0 0 10px 25px;}
hr{margin:20px 0;border:0;border-top:1px solid #eeeeee;border-bottom:1px solid #ffffff;}
.hide{display:none;}
</style>
</head>
<body style="padding: 20px;">
<div style="max-width: 640px; margin: auto;">
<h1>Bolt - Installation error</h1>
<p><strong>You've (probably) installed Bolt in the wrong folder.</strong></p>
<p>
It's recommended to install Bolt outside the so-called web root, because
this is generally seen as 'best practice', and it is good for overall
security. The reason you are seeing this page, is that your web server
is currently serving the incorrect folder as 'web root'. Or, to put it
the other way around: This file should not be visible.
</p>
<p>
The current folder is: <code><?php echo getcwd(); ?>/</code>.
</p>
<hr>
<p>
The best and easiest fix for this, is to configure the webserver to use
<code><?php echo getcwd(); ?>/public/</code> as the 'document root'.
</p>
<hr>
<p>
Alternatively, move everything 'up' one level. So instead of extracting
the <code>.zip</code> or <code>.tgz</code> file in this folder, extract
it in <code><?php echo dirname(getcwd()); ?>/</code> instead. If you do
this, you must edit the <code>.bolt.yml</code> file as follows, so it use
the correct folder.
</p>
<pre>
paths:
web: "%site%/<?php echo basename(getcwd()) . "\n"; ?>"
</pre>
<strong>
TIP: copy this snippet <em>now</em>, because you won't see it anymore, after moving the files.
</strong>
<hr>
<p>
If these options aren't possible for you, please consult the documentation on
<a href="https://docs.bolt.cm/installation/installation">Installing Bolt</a>,
as well as the page on
<a href="https://docs.bolt.cm/howto/troubleshooting-outside-webroot">
Troubleshooting 'Outside of the web root'
</a>.
</p>
<ul>
<li>
<a href="https://docs.bolt.cm/installation/installation">
<span class="hide"> * https://docs.bolt.cm/installation/installation - </span>
Bolt documentation - Setup / Installation
</a>
</li>
<li>
<a href="https://docs.bolt.cm/howto/troubleshooting-outside-webroot">
<span class="hide"> * https://docs.bolt.cm/howto/troubleshooting-outside-webroot - </span>
Bolt documentation - Troubleshooting 'Outside of the web root'
</a>
</li>
<li>
<a href="https://discuss.bolt.cm/">
<span class="hide"> * https://discuss.bolt.cm/ - </span>
The Bolt discussion forum
</a>
</li>
<li>
<a href="https://bolt.cm/community">
<span class="hide"> * https://bolt.cm/community - </span>
IRC, Slack or Twitter - Bolt Community
</a>
</li>
</ul>
</div>
<hr>
</body>
</html>