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

Commit 880e765

Browse files
author
Daryl Lozupone
committed
Update FAQ
closes #93
1 parent 919344e commit 880e765

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

FAQ.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
- [How do I Use WPLib Box on New Projects?](#how-do-i-use-wplib-box-on-new-projects)
1313
- [How do I Use WPLib Box on Pre-Existing Projects?](#how-do-i-use-wplib-box-on-pre-existing-projects)
1414
- [How do I Configure Composer to Work with WPLib Box?](#how-do-i-configure-composer-to-work-with-wplib-box)
15+
- [How do I import a database?](#import-db)
16+
- [How do I switch PHP versions?](#php-versions)
17+
- [How do I share my work with the outside world?](#share)
1518

1619
###Glossary
1720
- [What Do They All These Terms Mean?](#what-do-they-all-these-terms-mean)
@@ -99,13 +102,19 @@ If you cannot create a `scripts/` directory in the same directory as your `Vagra
99102
`wplib-scripts/` — and then search for `scripts/` in your `Vagrantfile` and replace it with whatever you named your directory, e.g.
100103
with `wplib-scripts/` as in our example.
101104

102-
<<<<<<< HEAD
103105
<a id="existing-projects"></a>
104106
### How do I Configure Composer to Work with WPLib Box?
105107
Configure `composer.json` however you like; WPLib Box is agnostic with respect to Composer.
106108

107109
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!)_
108110

111+
<a id="import-db"></a>
112+
## How do I import a databse?
113+
When the box is created, a default WordPress database is installed. If you need to import a different dataset or restore a backup of the data, you can simply `ssh` into the guest and perform a MySQL import.
114+
115+
To do this, simply enter your working directory and do the following: `mysql -u wordpress -pwordpress wordpress < /path/to/sql/file`.
116+
117+
<a id="php-version"></a>
109118
## How do I switch PHP versions?
110119
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
111120
you must edit this file manually. This file is located at `/etc/nginx/sites-available/default`.
@@ -119,6 +128,7 @@ This can be accomplished by connecting to the guest machine via ssh:
119128
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`.
120129
Visit [http://wplib.box/phpinfo.php](http://wplib.box/phpinfo.php) (or whatever domain name you have configured for the box) to verify.
121130

131+
<a id="share"></a>
122132
## How do I share my work with the outside world?
123133

124134
The box image has [localtunnel.me](https://localtunnel.me) pre-installed in the box. You can simply `ssh` into the guest and run: `lt --port 80`.

0 commit comments

Comments
 (0)