Commit efcc4a57 authored by MikeyMJCO's avatar MikeyMJCO

Update README for docs books git repo separation, changes to PHP version and...

Update README for docs books git repo separation, changes to PHP version and additional, undocumented PHP module requirements.
parent 857d24e3
......@@ -90,12 +90,20 @@ You should be able to see the app at http://localhost:8080.
``` bash
sudo apt install mysql-server
```
* [php 7.1](https://php.net):
* [curl](https://curl.haxx.se/):
``` bash
sudo apt install curl
```
* [unzip](http://www.info-zip.org/UnZip.html):
``` bash
sudo apt install unzip
```
* [php 7.3](https://php.net):
``` bash
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.1-fpm php7.1-mcrypt php7.1-mbstring php7.1-cli php7.1-xml php7.1-mysql php7.1-gd php7.1-imagick php7.1-recode php7.1-tidy php7.1-xmlrpc
sudo apt install php7.3-fpm php7.3-cli php7.3-gd php7.3-imagick php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline php7.3-recode php7.3-tidy php7.3-xml php7.3-xmlrpc php7.3-zip
```
* [pip](https://packaging.python.org/en/latest/install_requirements_linux/#installing-pip-setuptools-wheel-with-linux-package-managers):
``` bash
......@@ -114,7 +122,7 @@ You should be able to see the app at http://localhost:8080.
```
**Note**: Ensure that MkDocs is installed as root so that it can be accessed from the src/publish.php script (typically invoked as https://docs.civicrm.org/publish.php)*
2. clone this repository to somewhere like /var/www/civicrm-docs and run `composer install`
2. clone this repository to somewhere like /var/www/civicrm-docs and install with composer:
```bash
git clone https://lab.civicrm.org/documentation/docs-publisher.git /var/www/civicrm-docs
......@@ -122,9 +130,9 @@ You should be able to see the app at http://localhost:8080.
composer install
```
3. Set appropriate permissions on web/static
3. Set appropriate permissions on web/static.
4. Update the nginx configuration file to point to the php7.1-fpm socket and fix the root.
4. Update the nginx configuration file to point to the php7.1-fpm socket and fix the root:
[- root /var/www/web; -]
[+ root /var/www/civicrm-docs/web; +]
......@@ -132,12 +140,18 @@ You should be able to see the app at http://localhost:8080.
[- fastcgi_pass unix:/var/run/php-fpm.sock; -]
[+ fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; +]
5. Configure the nginx virtual host
5. Configure the nginx virtual host:
```bash
``` bash
cd /etc/nginx/sites-enabled
ln -s /var/www/civicrm-docs/app/config/civicrm-docs.conf civicrm-docs
```
6. Grab the documentation book files:
``` bash
cd /var/www/civicrm-docs/
git clone https://lab.civicrm.org/documentation/docs-books.git books
6. Reload your nginx config and you should be up and running.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment