@@ -16,7 +16,7 @@ superset of the requirements for production:
16
16
``` bash
17
17
sudo apt-get update
18
18
sudo apt-get dist-upgrade
19
- sudo apt-get install apache2 cmake curl git libapache2-mod-php5 memcached mysql-server nano php5 php5-curl php5-gd php5-json php5-memcached php5-xdebug postgresql python python-jinja2 python-markdown python-pip python-yaml sqlite3 subversion
19
+ sudo apt-get install apache2 cmake curl git libapache2-mod-php5 memcached mysql-server nano php5 php5-curl php5-gd php5-json php5-memcached php5-mysqlnd php5-pgsql php5-sqlite php5- xdebug postgresql python python-jinja2 python-markdown python-pip python-yaml sqlite3 subversion
20
20
sudo pip install mkdocs
21
21
sudo a2enmod rewrite
22
22
echo -e " <VirtualHost *:80>\nServerAdmin webmaster@example.org\nServerName example.org\nServerAlias www.example.org\nDocumentRoot /var/www/example.org/html\nErrorLog \$ {APACHE_LOG_DIR}/error.log\nCustomLog \$ {APACHE_LOG_DIR}/access.log combined\n</VirtualHost>" | sudo tee -a /etc/apache2/sites-available/example.org.conf
@@ -151,8 +151,20 @@ Install the MySQL 5.5 database server:
151
151
``` bash
152
152
sudo apt-get install mysql-server
153
153
```
154
- The PDO_MYSQL PHP extension was previously installed along with the PHP
155
- preprocessor.
154
+
155
+ Install the PDO_MYSQL PHP extension:
156
+
157
+ ``` bash
158
+ sudo apt-get install php5-mysqlnd
159
+ ```
160
+
161
+ This also installs the MySQL native driver for PHP.
162
+
163
+ Restart the web server to load the additional PHP extensions:
164
+
165
+ ``` bash
166
+ sudo service apache2 restart
167
+ ```
156
168
157
169
### PostgreSQL ###
158
170
@@ -161,8 +173,20 @@ Install the PostgreSQL 9.3 database server:
161
173
``` bash
162
174
sudo apt-get install postgresql
163
175
```
164
- The PDO_PGSQL PHP extension was previously installed along with the PHP
165
- preprocessor.
176
+
177
+ Install the PDO_PGSQL PHP extension:
178
+
179
+ ``` bash
180
+ sudo apt-get install php5-pgsql
181
+ ```
182
+
183
+ This also installs the PostgreSQL PHP extension.
184
+
185
+ Restart the web server to load the additional PHP extensions:
186
+
187
+ ``` bash
188
+ sudo service apache2 restart
189
+ ```
166
190
167
191
### SQLite ###
168
192
@@ -171,8 +195,20 @@ Install the SQLite 3.8 database program:
171
195
``` bash
172
196
sudo apt-get install sqlite3
173
197
```
174
- The PDO_SQLITE PHP extension was previously installed along with the PHP
175
- preprocessor.
198
+
199
+ Install the PDO_SQLITE PHP extension:
200
+
201
+ ``` bash
202
+ sudo apt-get install php5-sqlite
203
+ ```
204
+
205
+ This also installs the SQLite PHP extension.
206
+
207
+ Restart the web server to load the additional PHP extensions:
208
+
209
+ ``` bash
210
+ sudo service apache2 restart
211
+ ```
176
212
177
213
## Development Tools ##
178
214
@@ -184,7 +220,6 @@ control system, and Subversion 1.8 version control system:
184
220
185
221
``` bash
186
222
sudo apt-get install cmake git subversion
187
- sudo service apache2 restart
188
223
```
189
224
190
225
Install the cURL and Xdebug PHP extensions:
@@ -257,13 +292,15 @@ Install the Apache 2.4 web server:
257
292
``` bash
258
293
sudo yum install httpd
259
294
```
295
+
260
296
The mod_rewrite Apache module is enabled by default.
261
297
262
298
Install the PHP 5.6 preprocessor:
263
299
264
300
``` bash
265
301
sudo yum install php
266
302
```
303
+
267
304
The mod_php5 Apache module is installed along with the PHP preprocessor.
268
305
269
306
Install the GD and JSON-C PHP extensions:
@@ -359,6 +396,7 @@ Install the MariaDB 10.0 database server:
359
396
``` bash
360
397
sudo yum install mariadb-server
361
398
```
399
+
362
400
MariaDB is a fork of MySQL.
363
401
364
402
Enable and start the MariaDB database server:
@@ -373,9 +411,10 @@ Install the PDO_MYSQL PHP extension:
373
411
``` bash
374
412
sudo yum install php-mysqlnd
375
413
```
414
+
376
415
This also installs the MySQL native driver for PHP.
377
416
378
- Restart the web server to load the additional PHP extension :
417
+ Restart the web server to load the additional PHP extensions :
379
418
380
419
``` bash
381
420
sudo systemctl restart httpd.service
@@ -407,9 +446,10 @@ Install the PDO_PGSQL PHP extension:
407
446
``` bash
408
447
sudo yum install php-pgsql
409
448
```
449
+
410
450
This also installs the PostgreSQL PHP extension.
411
451
412
- Restart the web server to load the additional PHP extension :
452
+ Restart the web server to load the additional PHP extensions :
413
453
414
454
``` bash
415
455
sudo systemctl restart httpd.service
@@ -452,6 +492,7 @@ Install the Xdebug PHP extension:
452
492
``` bash
453
493
sudo yum install php-pecl-xdebug
454
494
```
495
+
455
496
The cURL PHP extension was previously installed along with the PHP
456
497
preprocessor.
457
498
@@ -530,20 +571,23 @@ Install the Apache 2.4 web server:
530
571
``` bash
531
572
sudo yum install httpd
532
573
```
574
+
533
575
The mod_rewrite Apache module is enabled by default.
534
576
535
577
Install the PHP 5.4 preprocessor:
536
578
537
579
``` bash
538
580
sudo yum install php
539
581
```
582
+
540
583
The mod_php5 Apache module is installed along with the PHP preprocessor.
541
584
542
585
Install the GD PHP extension:
543
586
544
587
``` bash
545
588
sudo yum install php-gd
546
589
```
590
+
547
591
The JSON PHP extension was previously installed along with the PHP
548
592
preprocessor.
549
593
@@ -634,6 +678,7 @@ Install the MariaDB 5.5 database server:
634
678
``` bash
635
679
sudo yum install mariadb-server
636
680
```
681
+
637
682
MariaDB is a fork of MySQL.
638
683
639
684
Enable and start the MariaDB database server:
@@ -648,9 +693,10 @@ Install the PDO_MYSQL PHP extension:
648
693
``` bash
649
694
sudo yum install php-mysqlnd
650
695
```
696
+
651
697
This also installs the MySQL native driver for PHP.
652
698
653
- Restart the web server to load the additional PHP extension :
699
+ Restart the web server to load the additional PHP extensions :
654
700
655
701
``` bash
656
702
sudo systemctl restart httpd.service
@@ -682,9 +728,10 @@ Install the PDO_PGSQL PHP extension:
682
728
``` bash
683
729
sudo yum install php-pgsql
684
730
```
731
+
685
732
This also installs the PostgreSQL PHP extension.
686
733
687
- Restart the web server to load the additional PHP extension :
734
+ Restart the web server to load the additional PHP extensions :
688
735
689
736
``` bash
690
737
sudo systemctl restart httpd.service
@@ -727,6 +774,7 @@ Install the Xdebug PHP extension:
727
774
``` bash
728
775
sudo yum install php-pecl-xdebug
729
776
```
777
+
730
778
The cURL PHP extension was previously installed along with the PHP
731
779
preprocessor.
732
780
0 commit comments