Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit a8cd0d3

Browse files
author
Daryl Lozupone
committed
Merge branch '88-php-documentation'
2 parents 900fc6c + f7c9570 commit a8cd0d3

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

FAQ.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,25 @@ Configure `composer.json` however you like; WPLib Box is agnostic with respect t
105105

106106
Yes, we do include a `composer.json` with our WPLib Box repository but only so that WPLib Box will just work, **out-of-the-box** _(yeah, sorry for the pun!)_
107107

108+
## How do I switch PHP versions?
109+
The PHP version in use by the site is set in the Nginx vhost configuration. Our intention is to provide a control panel to simplify this process, but currently
110+
you must edit this file manually. This file is located at `/etc/nginx/sites-available/default`.
111+
To change to PHP 7, you must change the line `set $sock php5.6-fpm.sock;` to `set $sock php7.0-fpm.sock;`.
112+
This can be accomplished by connecting to the guest machine via ssh:
113+
114+
cd project-directory
115+
vagrant ssh
116+
sudo nano /etc/nginx/sites-available/default
117+
118+
Change the pertinent line. Press `CTRL-X` to exit the program. When prompted to save the buffer, press `ENTER`. The filename will appear. Press `ENTER` again. Then enter the command `sudo service nginx restart`.
119+
Visit [http://wplib.box/phpinfo.php](http://wplib.box/phpinfo.php) (or whatever domain name you have configured for the box) to verify.
108120

109121
##Glossary
110122
<a id="glossary"></a>
111123

112-
###What Do They All These Terms Mean?
124+
###What Do All These Terms Mean?
125+
=======
126+
113127
The following are terms we have decide to use in our FAQ and in other documents. If any of these terms conflict with broader industry terms please submit a pull request with any suggested corrects.
114128

115129
Otherwise, there they are:

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We think that once you try WPLib Box you will agree that we have succeeded. Wan
2020

2121
Service/Software|Version
2222
-------|----------
23-
PHP/PHP5-FPM|5.6.20
23+
PHP-FPM|5.6.20 && 7.0
2424
MySQL|5.5
2525
nginx|1.4
2626
XDEBUG|2.3.3
@@ -115,6 +115,11 @@ To something else that is compatible with your network, i.e. maybe:
115115

116116
We will probably change to a different default IP address in the future.
117117

118+
## Switching PHP Versions
119+
120+
The box has both PHP-FPM 5.6 and 7.0 running concurrently. They are implemented as separate processes with
121+
individual sockets. Instructions on how to select which version to use can be found in the [FAQ](https://github.com/wplib/wplib-box/blob/master/FAQ.md).
122+
118123
## Logging into the WordPress Admin
119124

120125
To login to [wplib.box/wp-admin/](http://wplib.box/wp-admin) use the following credentials:

0 commit comments

Comments
 (0)