Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 4e67cdd

Browse files
committed
Merge master
2 parents 83db90a + 71da9f0 commit 4e67cdd

File tree

1 file changed

+189
-149
lines changed

1 file changed

+189
-149
lines changed

guides/v2.3/install-gde/prereq/php-centos-ubuntu.md

Lines changed: 189 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -73,99 +73,130 @@ To install PHP 7.1 on CentOS 6 or 7:
7373

7474
1. *CentOS 6*. Enter the following commands in the order shown:
7575

76-
yum -y update
77-
yum -y install epel-release
78-
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
79-
wget https://centos6.iuscommunity.org/ius-release.rpm
80-
rpm -Uvh ius-release*.rpm
81-
yum -y update
76+
```bash
77+
yum -y update
78+
```
8279

83-
*CentOS 7*. Enter the following commands:
80+
```bash
81+
yum -y install epel-release
82+
```
8483

85-
yum install -y http://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release-1.0-15.ius.centos7.noarch.rpm
86-
yum -y update
84+
```bash
85+
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
86+
```
87+
88+
```bash
89+
wget https://centos6.iuscommunity.org/ius-release.rpm
90+
```
91+
92+
```bash
93+
rpm -Uvh ius-release*.rpm
94+
```
95+
96+
```bash
97+
yum -y update
98+
```
99+
100+
1. *CentOS 7*. Enter the following commands:
101+
102+
```bash
103+
yum install -y http://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release-1.0-15.ius.centos7.noarch.rpm
104+
```
105+
106+
```bash
107+
yum -y update
108+
```
87109

88110
1. Install all [required PHP extensions]({{page.baseurl}}/install-gde/system-requirements-tech.html#required-php-extensions):
89111

90-
yum -y install php71u php71u-pdo php71u-mysqlnd php71u-opcache php71u-xml php71u-gd php71u-devel php71u-mysql php71u-intl php71u-mbstring php71u-bcmath php71u-json php71u-iconv php71u-soap
112+
```bash
113+
yum -y install php71u php71u-pdo php71u-mysqlnd php71u-opcache php71u-xml php71u-gd php71u-devel php71u-mysql php71u-intl php71u-mbstring php71u-bcmath php71u-json php71u-iconv php71u-soap
114+
```
91115

92-
{:.bs-callout .bs-callout-info}
116+
{:.bs-callout .bs-callout-info}
117+
The `bcmath` extension is required for {{site.data.var.ee}} only.
93118

94119
1. Restart Apache:
95120

96-
service httpd restart`
121+
```bash
122+
service httpd restart`
123+
```
97124

98125
1. Verify that PHP 7.1 is installed properly:
99126

100-
php -v
127+
```bash
128+
php -v
129+
```
101130

102-
The following response indicates that PHP 7.1.6 is installed:
131+
The following response indicates that PHP 7.1.6 is installed:
103132

104-
PHP 7.1.6 (cli) (built: Jan 9 2017 09:23:16) ( NTS )
105-
Copyright (c) 1997-2017 The PHP Group
106-
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.6, Copyright (c) 1999-2017, by Zend Technologies
133+
```terminal
134+
PHP 7.1.6 (cli) (built: Jan 9 2017 09:23:16) ( NTS )
135+
Copyright (c) 1997-2017 The PHP Group
136+
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.6, Copyright (c) 1999-2017, by Zend Technologies
137+
```
107138

108-
{:.bs-callout .bs-callout-info}
109-
The preceding message confirms that the `Zend OPcache` is installed. We strongly recommend using the OPcache for performance reasons. If your PHP distribution does not come with the OPcache, see the [PHP OPcache documentation](http://php.net/manual/en/opcache.setup.php){:target="_blank"}.
139+
{:.bs-callout .bs-callout-info}
140+
The preceding message confirms that the `Zend OPcache` is installed. We strongly recommend using the OPcache for performance reasons. If your PHP distribution does not come with the OPcache, see the [PHP OPcache documentation](http://php.net/manual/en/opcache.setup.php){:target="_blank"}.
110141

111142
1. Verify that all [required PHP extensions]({{ page.baseurl }}/install-gde/system-requirements-tech.html#required-php-extensions) were installed:
112143

113-
```bash
114-
php -me
115-
```
116-
117-
You should see output similar to the following:
118-
119-
```bash
120-
[PHP Modules]
121-
bcmath
122-
calendar
123-
Core
124-
ctype
125-
curl
126-
date
127-
dom
128-
exif
129-
fileinfo
130-
filter
131-
ftp
132-
gd
133-
gettext
134-
hash
135-
iconv
136-
intl
137-
json
138-
libxml
139-
mbstring
140-
mysqli
141-
mysqlnd
142-
openssl
143-
pcntl
144-
pcre
145-
PDO
146-
pdo_mysql
147-
Phar
148-
readline
149-
Reflection
150-
session
151-
SimpleXML
152-
soap
153-
sockets
154-
SPL
155-
standard
156-
tokenizer
157-
wddx
158-
xml
159-
xmlreader
160-
xmlwriter
161-
xsl
162-
Zend OPcache
163-
zip
164-
zlib
165-
166-
[Zend Modules]
167-
Zend OPcache
168-
```
144+
```bash
145+
php -me
146+
```
147+
148+
You should see output similar to the following:
149+
150+
```terminal
151+
[PHP Modules]
152+
bcmath
153+
calendar
154+
Core
155+
ctype
156+
curl
157+
date
158+
dom
159+
exif
160+
fileinfo
161+
filter
162+
ftp
163+
gd
164+
gettext
165+
hash
166+
iconv
167+
intl
168+
json
169+
libxml
170+
mbstring
171+
mysqli
172+
mysqlnd
173+
openssl
174+
pcntl
175+
pcre
176+
PDO
177+
pdo_mysql
178+
Phar
179+
readline
180+
Reflection
181+
session
182+
SimpleXML
183+
soap
184+
sockets
185+
SPL
186+
standard
187+
tokenizer
188+
wddx
189+
xml
190+
xmlreader
191+
xmlwriter
192+
xsl
193+
Zend OPcache
194+
zip
195+
zlib
196+
197+
[Zend Modules]
198+
Zend OPcache
199+
```
169200

170201
1. Continue with [Required PHP settings]({{ page.baseurl }}/install-gde/prereq/php-settings.html).
171202

@@ -196,90 +227,99 @@ To install PHP 7.1 on Ubuntu 14 or 16:
196227

197228
1. Enter the following commands in the order shown:
198229

199-
```bash
200-
sudo apt-get -y update
201-
sudo add-apt-repository ppa:ondrej/php
202-
sudo apt-get -y update
203-
sudo apt-get install -y php7.1 libapache2-mod-php7.1 php7.1-common php7.1-gd php7.1-mysql php7.1-curl php7.1-intl php7.1-xsl php7.1-mbstring php7.1-zip php7.1-bcmath php7.1-iconv php7.1-soap
204-
```
230+
```bash
231+
sudo apt-get -y update
232+
```
205233

206-
The last command installs all [required PHP extensions]({{page.baseurl}}/install-gde/system-requirements-tech.html#required-php-extensions).
234+
```bash
235+
sudo add-apt-repository ppa:ondrej/php
236+
```
207237

208-
1. Verify that PHP 7.1 is installed properly:
238+
```bash
239+
sudo apt-get -y update
240+
```
209241

210-
```bash
211-
php -v
212-
```
242+
```bash
243+
sudo apt-get install -y php7.1 libapache2-mod-php7.1 php7.1-common php7.1-gd php7.1-mysql php7.1-curl php7.1-intl php7.1-xsl php7.1-mbstring php7.1-zip php7.1-bcmath php7.1-iconv php7.1-soap
244+
```
213245

214-
The following response indicates that PHP 7.1.7 is installed:
246+
The last command installs all [required PHP extensions]({{page.baseurl}}/install-gde/system-requirements-tech.html#required-php-extensions).
215247

216-
```bash
217-
PHP 7.1.7-1~ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jul 6 2017 09:07:54) ( NTS )
218-
Copyright (c) 1997-2017 The PHP Group
219-
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.7-1~ubuntu14.04.1+deb.sury.org+1,Copyright (c) 1999-2017, by Zend Technologies
220-
```
248+
1. Verify that PHP 7.1 is installed properly:
221249

222-
{:.bs-callout .bs-callout-info}
223-
The preceding message confirms that the `Zend OPcache` is installed. We strongly recommend using the OPcache for performance reasons. If your PHP distribution does not come with the OPcache, see the [PHP OPcache documentation](http://php.net/manual/en/opcache.setup.php){:target="_blank"}.
250+
```bash
251+
php -v
252+
```
224253

225-
1. Verify that all [required PHP extensions]({{ page.baseurl }}/install-gde/system-requirements-tech.html#required-php-extensions) were installed:
254+
The following response indicates that PHP 7.1.7 is installed:
226255

227-
```bash
228-
php -me
229-
```
256+
```terminal
257+
PHP 7.1.7-1~ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jul 6 2017 09:07:54) ( NTS )
258+
Copyright (c) 1997-2017 The PHP Group
259+
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.7-1~ubuntu14.04.1+deb.sury.org+1,Copyright (c) 1999-2017, by Zend Technologies
260+
```
230261

231-
You should see output similar to the following:
262+
{:.bs-callout .bs-callout-info}
263+
The preceding message confirms that the `Zend OPcache` is installed. We strongly recommend using the OPcache for performance reasons. If your PHP distribution does not come with the OPcache, see the [PHP OPcache documentation](http://php.net/manual/en/opcache.setup.php){:target="_blank"}.
232264

233-
```bash
234-
[PHP Modules]
235-
bcmath
236-
calendar
237-
Core
238-
ctype
239-
curl
240-
date
241-
dom
242-
exif
243-
fileinfo
244-
filter
245-
ftp
246-
gd
247-
gettext
248-
hash
249-
iconv
250-
intl
251-
json
252-
libxml
253-
mbstring
254-
mysqli
255-
mysqlnd
256-
openssl
257-
pcntl
258-
pcre
259-
PDO
260-
pdo_mysql
261-
Phar
262-
readline
263-
Reflection
264-
session
265-
SimpleXML
266-
soap
267-
sockets
268-
SPL
269-
standard
270-
tokenizer
271-
wddx
272-
xml
273-
xmlreader
274-
xmlwriter
275-
xsl
276-
Zend OPcache
277-
zip
278-
zlib
279-
280-
[Zend Modules]
281-
Zend OPcache
282-
```
265+
1. Verify that all [required PHP extensions]({{ page.baseurl }}/install-gde/system-requirements-tech.html#required-php-extensions) were installed:
266+
267+
```bash
268+
php -me
269+
```
270+
271+
You should see output similar to the following:
272+
273+
```terminal
274+
[PHP Modules]
275+
bcmath
276+
calendar
277+
Core
278+
ctype
279+
curl
280+
date
281+
dom
282+
exif
283+
fileinfo
284+
filter
285+
ftp
286+
gd
287+
gettext
288+
hash
289+
iconv
290+
intl
291+
json
292+
libxml
293+
mbstring
294+
mysqli
295+
mysqlnd
296+
openssl
297+
pcntl
298+
pcre
299+
PDO
300+
pdo_mysql
301+
Phar
302+
readline
303+
Reflection
304+
session
305+
SimpleXML
306+
soap
307+
sockets
308+
SPL
309+
standard
310+
tokenizer
311+
wddx
312+
xml
313+
xmlreader
314+
xmlwriter
315+
xsl
316+
Zend OPcache
317+
zip
318+
zlib
319+
320+
[Zend Modules]
321+
Zend OPcache
322+
```
283323

284324
### Next
285325

0 commit comments

Comments
 (0)