Updating your Blog-In-A-Box system to allow themes and plugins to be installed
I have a home blog that's currently hosted on a Raspberry Pi 3 using Automattic's Blog-In-A-Box WordPress system. So far I've only come across one limitation. When I tried to install a new theme, I was promoted for an FTP user-id and password. I tried various combinations of the user-id's and passwords that had been set during the installation process, but didn't have any luck. The standard Raspberry Pi doesn't come with an FTP server installed by default, but I thought the Blog-In-A-Box my have added one.
Fortunately a quick google got me a result on how to modify the Blog-In-A-Box install to allow direct upload via the web interface :-)
I found some instructions on Instructables - "Blog in a Box – Raspberry Pi WordPress Complete Setup Guide". There are some typos in the original instructions so I'm reproducing them here.
As a preliminary you'll need some of the info from the Blog-In-A-Box setup.
- Physically login to the Raspberry Pi or SSH into it, using the user-id 'pi' and the password in box 6.
- Type in cd wordpressand press [ENTER]
- Now we need to edit one of the config files, the easiest way to do this is to use nano
- Type in sudo nano wp-config.php and press [ENTER]
- Scroll down to the line that contains 'DB collate'
- Create a new line underneath it by pressing [ENTER]
- Type in define( 'FS_METHOD', 'direct' );
- Press ctrl-X, then type Y and press [ENTER], that will save the file and put you back at the command line.
- Now type sudo chmod -R 755 /opt/wordpress/wp-content/ and press [ENTER]
- Finally type sudo chown -R www-data:www-data /opt/wordpress and press [ENTER]
If everything has gone according to plan you should now be able to install themes and plugins directly from the web interface on your Blog-In-A-Box :-).
I am going to have a bit more of a play with this, because the idea behind Blog-In-A-Box is to give people a full development environment with everything they need to develop with WordPress and Node.
Not being able to upload new themes or plugins is a bit of a limitation on that. This implies I've missed something somewhere. If I find anything, I'll post it here.
“If you change the way you look at things, the things you look at change.”
— Wayne Dyer