bdevos72
Posts: 4
Joined: Fri Sep 28, 2018 11:42 am

wordpress via BloginaBox

Fri Sep 28, 2018 12:09 pm

:roll: Ik ben al enige tijd bezig met het installeren van WordPress via de BloginaBox voor de raspberrypi 3B+.
alles keurig ingevuld en alles liep voorspoedig zoals Downloade,op SD card plaatsen en het uitpakken op de Raspberrypi.

Maar nadat alles uitgepakt is wordt er om een login gevraagd,alles geprobeerd maar krijg steeds de foutmelding: Login incorrect.
Heb dus als login :bloginabox en als password het door mij ingevulde wachtwoord bij de PI Settings.Hellas zonder resultaat.

Heb al vele malen opnieuw geïnstalleerd
Ik hoop dat er iemand mij kan helpen dit probleem op te lossen
p.s. Ik ben een totale beginner

Andyroo
Posts: 444
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: wordpress via BloginaBox

Fri Sep 28, 2018 6:11 pm

Sorry, ik spreek geen Nederlands en moest Google translate gebruiken :oops:

Probeer Gebruiker: pi (alle kleine letters)
Wachtwoord: het wachtwoord dat u hebt ingevoerd

Je kunt alles vanaf nul installeren, maar je krijgt niet de extra functies (SenseHat, camera, enz.) Door deze instructies te volgen
https://projects.raspberrypi.org/en/pro ... -wordpress

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

Sorry I do not speak Dutch and had to use Google translate :oops:

Try User: pi (all lower case)
Password: The password you entered

You can install from scratch but do not get the extra functions (SenseHat, camera etc) by following these instructions https://projects.raspberrypi.org/en/pro ... -wordpress
Need Pi spray - these things are breeding in my house...

bdevos72
Posts: 4
Joined: Fri Sep 28, 2018 11:42 am

Re: wordpress via BloginaBox

Sat Sep 29, 2018 9:09 am

Thank for the replies, using tehe specified link https://projects.raspberrypi.org/en/pro...-wordpress i have also already tried. With tee same result. There is not asked to enter a password and pi is not

Andyroo
Posts: 444
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: wordpress via BloginaBox

Sat Sep 29, 2018 4:25 pm

Will build one up tonight and let you know :)
Need Pi spray - these things are breeding in my house...

Andyroo
Posts: 444
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: wordpress via BloginaBox

Sun Sep 30, 2018 2:57 pm

Heb vandaag wat tijd om te spelen met het Mac-installatieprogramma.

Bij het instellen van de SD-kaart krijg je een geavanceerd instellingenscherm dat je veel gegevens toont:
Screen Shot 2018-09-30 at 15.48.20.png
Set up screen
Screen Shot 2018-09-30 at 15.48.20.png (72.06 KiB) Viewed 740 times
Om in te loggen op de SSH / PI-shell gebruikt u de gebruiker pi met het wachtwoord uit de groep 'Pi-instellingen' (JNeGnkipsfKzWWyc in mijn geval)

Om u aan te melden bij Wordpress (bloginabox.local/wp-admin) gebruikt u de login en het wachtwoord van Blog-instellingen (biab als de gebruiker en 9hMpqZibtfaXGZMM in mijn geval):

---------------------------------------------------------------

Got some time to play today using the Mac installer.

When setting the SD card up you get an advanced settings screen showing you lots of data:
Screen Shot 2018-09-30 at 15.48.20.png
Set up screen
Screen Shot 2018-09-30 at 15.48.20.png (72.06 KiB) Viewed 740 times
To log in to SSH / PI shell you use the user pi with the password from the group 'Pi settings' (JNeGnkipsfKzWWyc in my case)

To log in to Wordpress (bloginabox.local/wp-admin) you use the login and password from Blog settings (biab as the user and 9hMpqZibtfaXGZMM in my case)
Need Pi spray - these things are breeding in my house...

bdevos72
Posts: 4
Joined: Fri Sep 28, 2018 11:42 am

Re: wordpress via BloginaBox

Mon Oct 01, 2018 11:43 am

My very warm thanks for the sheets

It's almost succeeded

After entering username: pi

Pasword of Pi settings I get the BLOG IN A BOX screen with all information

And then the following: pi @ bloginabox: ~

Question: How do I go in my Browser? for http://bloginabox.local/wp-admin

Andyroo
Posts: 444
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: wordpress via BloginaBox

Mon Oct 01, 2018 3:01 pm

I guess you are using Microsoft Windows? If so you can load Bonjour from Apple https://support.apple.com/kb/DL999?view ... cale=en_US but the simplest way is to go onto the pi (where it says pi @ bloginabox: ~) and type

Code: Select all

ifconfig
You should then see the IP details and a line like:

inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255

Then in the browsers use that IP address http://192.168.1.2/wp-admin

If you get stuck - post the ifconfig output here :)
Need Pi spray - these things are breeding in my house...

bdevos72
Posts: 4
Joined: Fri Sep 28, 2018 11:42 am

Re: wordpress via BloginaBox

Tue Oct 02, 2018 9:48 am

Thank you very much for your comments

On my screen it says:
PI @ bloginabox: ~



What do I need to fill in behind the line: pi @ bloginabox: ~
to get the Browser visible?
Or can that only through a second PC?

Andyroo
Posts: 444
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: wordpress via BloginaBox

Tue Oct 02, 2018 11:22 am

The Pi does not have a GUI or browser in the build so web access must be done from another machine. Not sure if SSH works now either - I'm locked out of my box remotely.

When you log onto the Pi it will show you the IP address - did not realise till just now :oops:

==============================================================================================
Wednesday, 3 October 2018, 01:43:55 PM
Linux 4.4.50-v7+ armv7l GNU/Linux
Memory: 671400 kB (Free) / 882772 kB (Total)
IP Addresses: 127.0.0.1 192.168.1.235
==============================================================================================

I do know updates do not work - just looking at that. At this rate its going to be easier to scratch this box and set a full LAMP and WP box up :o :D :o
Need Pi spray - these things are breeding in my house...

Andyroo
Posts: 444
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: wordpress via BloginaBox

Wed Oct 03, 2018 4:03 pm

Though you can find a soft link for the Wordpress site in ~/wordpress (for samba support I think) the actual data is in /opt/wordpress and this is where the web server looks for its files. The ownership of this is:
ls -l
total 12
drwx------ 9 pi pi 4096 Mar 14 2017 bloginabox
drwxr-xr-x 7 root root 4096 Mar 14 2017 vc
drwxr-xr-x 5 pi pi 4096 Mar 14 2017 wordpress

The web server runs under www-data so by default it has NO write ability in this folder (hence the update does not work) - this is very secure as it stops program changes from being executed by browser based users without them inheriting the root user or pi user rights.

The simplest way is to update everything from the command line :twisted: once signed in as Pi

Code: Select all

cd /opt/wordpress
wp core update
wp theme update --all
wp plugin update --all
These will then get the initial WordPress install up to date BUT it will not let you add / remove plugins etc - you can only change the pages / posts etc as these are database based!

If you do want to add plugin / themes you could manually install them into /opt/wordpress BUT it's simpler if starting out to use the built in browser tools for plugins / themes and that gets us back to the FTP message that comes up when you try an update...

To fix this we need to change the group that owns the WordPress installation and tell WordPress not to use FTP:

Code: Select all

cd /opt
sudo chgrp -R www-data wordpress
cd wordpress
sudo chmod -R g+w *
sudo nano wp-config.php
When you are in the editor, scroll down till you see the line starting define('DB_COLLATE' and add a line below so the file looks like:
/** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );

define( 'FS_METHOD', 'direct');

/**
* Authentication Unique Keys and Salts.
NOTES:
a) Your DB_COLLATE may be different than mine
b) DO NOT CHANGE THE DB_COLLATE line else sorting will go wrong on the site!


Use ctrl-x to save and confirm you want to overwrite the current file.

You many need to restart the web server at this point and the simplest way to get everything to see the new security is:

Code: Select all

SUDO reboot now
Once the Pi is back up and running you can get into WordPress and start creating a site.

A good discussion on the FS_METHOD is https://wordpress.stackexchange.com/que ... t-in-wp-co

As for me - I think I'll build up my version of 'blog in a box' as I've not used nginx before and it seems faster than Apache :lol:
Need Pi spray - these things are breeding in my house...

Return to “Nederlands”