You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: FAQ.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@
12
12
-[How do I Use WPLib Box on New Projects?](#how-do-i-use-wplib-box-on-new-projects)
13
13
-[How do I Use WPLib Box on Pre-Existing Projects?](#how-do-i-use-wplib-box-on-pre-existing-projects)
14
14
-[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)
15
18
16
19
###Glossary
17
20
-[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
99
102
`wplib-scripts/`— and then search for `scripts/` in your `Vagrantfile` and replace it with whatever you named your directory, e.g.
100
103
with `wplib-scripts/` as in our example.
101
104
102
-
<<<<<<< HEAD
103
105
<aid="existing-projects"></a>
104
106
### How do I Configure Composer to Work with WPLib Box?
105
107
Configure `composer.json` however you like; WPLib Box is agnostic with respect to Composer.
106
108
107
109
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!)_
108
110
111
+
<aid="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
+
<aid="php-version"></a>
109
118
## How do I switch PHP versions?
110
119
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
111
120
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:
119
128
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`.
120
129
Visit [http://wplib.box/phpinfo.php](http://wplib.box/phpinfo.php) (or whatever domain name you have configured for the box) to verify.
121
130
131
+
<aid="share"></a>
122
132
## How do I share my work with the outside world?
123
133
124
134
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