Install WordPress on raspbian jessie – RCK

Proceed as pi.

Install WordPress

Download wordpress

cd /home/pi
wget https://wordpress.org/latest.zip

If it exists, delete the WordPress directory:

rm -rf wp

Unzip wordpress

unzip latest.zip
mv ./wordpress ./wp

Change owner to ‘www-data’

Nginx use the ‘www-data’ user and group.

sudo chown -R www-data:www-data wp

Granted to ‘pi’ user:

sudo chmod -R 775 wp
sudo usermod -a -G www-data pi

Group confirmation:

groups pi

result:

pi : pi adm dialout cdrom sudo audio www-data video plugdev games users input netdev spi i2c gpio

Raspberry pi reboot:

sudo reboot

Modify the ‘wp-config.php’ file

cd ~/wp
cp wp-config-sample.php wp-config.php
sudo chown www-data:www-data wp-config.php
nano wp-config.php

Please edit this section(database name, ID, password):

/** The name of the database for WordPress */
define('DB_NAME', 'wp');

/** MySQL database username */
define('DB_USER', 'wp');

/** MySQL database password */
define('DB_PASSWORD', 'database password');

Please connect the site in a browser

http://raspberry pi IP address/

Add a user to MySQL

Leave a Reply

Your email address will not be published. Required fields are marked *