@@ -16,7 +16,7 @@ superset of the requirements for production:
1616``` bash
1717sudo apt-get update
1818sudo 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
2020sudo pip install mkdocs
2121sudo a2enmod rewrite
2222echo -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:
151151``` bash
152152sudo apt-get install mysql-server
153153```
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+ ```
156168
157169### PostgreSQL ###
158170
@@ -161,8 +173,20 @@ Install the PostgreSQL 9.3 database server:
161173``` bash
162174sudo apt-get install postgresql
163175```
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+ ```
166190
167191### SQLite ###
168192
@@ -171,8 +195,20 @@ Install the SQLite 3.8 database program:
171195``` bash
172196sudo apt-get install sqlite3
173197```
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+ ```
176212
177213## Development Tools ##
178214
@@ -184,7 +220,6 @@ control system, and Subversion 1.8 version control system:
184220
185221``` bash
186222sudo apt-get install cmake git subversion
187- sudo service apache2 restart
188223```
189224
190225Install the cURL and Xdebug PHP extensions:
@@ -257,13 +292,15 @@ Install the Apache 2.4 web server:
257292``` bash
258293sudo yum install httpd
259294```
295+
260296The mod_rewrite Apache module is enabled by default.
261297
262298Install the PHP 5.6 preprocessor:
263299
264300``` bash
265301sudo yum install php
266302```
303+
267304The mod_php5 Apache module is installed along with the PHP preprocessor.
268305
269306Install the GD and JSON-C PHP extensions:
@@ -359,6 +396,7 @@ Install the MariaDB 10.0 database server:
359396``` bash
360397sudo yum install mariadb-server
361398```
399+
362400MariaDB is a fork of MySQL.
363401
364402Enable and start the MariaDB database server:
@@ -373,9 +411,10 @@ Install the PDO_MYSQL PHP extension:
373411``` bash
374412sudo yum install php-mysqlnd
375413```
414+
376415This also installs the MySQL native driver for PHP.
377416
378- Restart the web server to load the additional PHP extension :
417+ Restart the web server to load the additional PHP extensions :
379418
380419``` bash
381420sudo systemctl restart httpd.service
@@ -407,9 +446,10 @@ Install the PDO_PGSQL PHP extension:
407446``` bash
408447sudo yum install php-pgsql
409448```
449+
410450This also installs the PostgreSQL PHP extension.
411451
412- Restart the web server to load the additional PHP extension :
452+ Restart the web server to load the additional PHP extensions :
413453
414454``` bash
415455sudo systemctl restart httpd.service
@@ -452,6 +492,7 @@ Install the Xdebug PHP extension:
452492``` bash
453493sudo yum install php-pecl-xdebug
454494```
495+
455496The cURL PHP extension was previously installed along with the PHP
456497preprocessor.
457498
@@ -530,20 +571,23 @@ Install the Apache 2.4 web server:
530571``` bash
531572sudo yum install httpd
532573```
574+
533575The mod_rewrite Apache module is enabled by default.
534576
535577Install the PHP 5.4 preprocessor:
536578
537579``` bash
538580sudo yum install php
539581```
582+
540583The mod_php5 Apache module is installed along with the PHP preprocessor.
541584
542585Install the GD PHP extension:
543586
544587``` bash
545588sudo yum install php-gd
546589```
590+
547591The JSON PHP extension was previously installed along with the PHP
548592preprocessor.
549593
@@ -634,6 +678,7 @@ Install the MariaDB 5.5 database server:
634678``` bash
635679sudo yum install mariadb-server
636680```
681+
637682MariaDB is a fork of MySQL.
638683
639684Enable and start the MariaDB database server:
@@ -648,9 +693,10 @@ Install the PDO_MYSQL PHP extension:
648693``` bash
649694sudo yum install php-mysqlnd
650695```
696+
651697This also installs the MySQL native driver for PHP.
652698
653- Restart the web server to load the additional PHP extension :
699+ Restart the web server to load the additional PHP extensions :
654700
655701``` bash
656702sudo systemctl restart httpd.service
@@ -682,9 +728,10 @@ Install the PDO_PGSQL PHP extension:
682728``` bash
683729sudo yum install php-pgsql
684730```
731+
685732This also installs the PostgreSQL PHP extension.
686733
687- Restart the web server to load the additional PHP extension :
734+ Restart the web server to load the additional PHP extensions :
688735
689736``` bash
690737sudo systemctl restart httpd.service
@@ -727,6 +774,7 @@ Install the Xdebug PHP extension:
727774``` bash
728775sudo yum install php-pecl-xdebug
729776```
777+
730778The cURL PHP extension was previously installed along with the PHP
731779preprocessor.
732780
0 commit comments