-
Notifications
You must be signed in to change notification settings - Fork 5k
Expand file tree
/
Copy pathmissing_requirement.php
More file actions
132 lines (116 loc) · 3.07 KB
/
missing_requirement.php
File metadata and controls
132 lines (116 loc) · 3.07 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PrestaShop Installation</title>
<style>
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
html {
padding: 30px 10px;
font-size: 16px;
line-height: 1.4;
color: #737373;
background: #f0f0f0;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
html,
input {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
max-width:1000px;
width: 1000px;
padding: 30px 20px 50px;
border: 1px solid #b3b3b3;
border-radius: 4px;
margin: 0 auto;
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
background: #fcfcfc;
}
h1 {
margin: 0 10px;
font-size: 50px;
text-align: center;
}
h1 span {
color: #bbb;
}
h2 {
color: #D35780;
margin: 0 10px;
font-size: 40px;
text-align: center;
}
h2 span {
color: #bbb;
font-size: 60px;
}
h3 {
margin: 1.5em 0 0.5em;
}
p {
margin: 1em 0;
}
ul {
padding: 0 0 0 40px;
margin: 1em 0;
}
.container {
max-width: 580px;
width: 580px;
margin: 0 auto;
}
.container p {
text-align: center;
}
input::-moz-focus-inner {
padding: 0;
border: 0;
}
</style>
</head>
<body>
<div class="container">
<h2>We can't start installation :(</h2>
<ol>
<?php if (!extension_loaded('SimpleXML')): ?>
<li>
PrestaShop installation requires the <b>SimpleXML PHP extension</b> to be enabled.
</li>
<?php endif; ?>
<?php if (!extension_loaded('zip')): ?>
<li>
PrestaShop installation requires the <b>Zip PHP extension</b> to be enabled.
</li>
<?php endif; ?>
<?php if ((!defined('PHP_VERSION_ID') || PHP_VERSION_ID < _PS_INSTALL_MINIMUM_PHP_VERSION_ID_) || (PHP_VERSION_ID > _PS_INSTALL_MAXIMUM_PHP_VERSION_ID_)): ?>
<li>
Your server is running PHP <?php echo PHP_VERSION ?>, but PrestaShop requires a PHP version between PHP <?php echo _PS_INSTALL_MINIMUM_PHP_VERSION_ ?> and PHP <?php echo _PS_INSTALL_MAXIMUM_PHP_VERSION_ ?>.
<i>To install PrestaShop <?php echo _PS_INSTALL_VERSION_ ?> you need to change your server's PHP version.</i>
</li>
<?php endif; ?>
<?php if (!is_writable(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'var'.DIRECTORY_SEPARATOR.'cache')): ?>
<li>
PrestaShop installation needs to write critical files in the folder var/cache.
<i>Please review the permissions on your server.</i>
</li>
<?php endif; ?>
</ol>
<p>You can contact your web host provider to fix the above requirements.</p>
</div>
</body>
</html>