Title: WordPress on Raspberry Pi
Last modified: January 6, 2019

---

# WordPress on Raspberry Pi

 *  [m20tgd](https://wordpress.org/support/users/m20tgd/)
 * (@m20tgd)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/)
 * Hello,
 * I’ve been trying to set up WordPress on my Raspberry Pi using this [guide](https://projects.raspberrypi.org/en/projects/lamp-web-server-with-wordpress/8)
 * I’ve installed everything and set up a database on MySQL. I try logging in via
   the web browser and record the correct user and password, but I always get a 
   page saying that it wasn’t able to establish a connection with a server.
 * Is anyone able to help?

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11057756)
 * Verify your entries in wp-config.php
 * From a command line try
 * `mysql -u DB_USER -pDB_PASS -h DB_HOST DB_NAME`
 * making the appropriate substitutions (and note that there is no space after “-
   p”).
 *  Thread Starter [m20tgd](https://wordpress.org/support/users/m20tgd/)
 * (@m20tgd)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11057904)
 * That opened up MySQL in the command line, if that’s what it was supposed to do.
 * I don’t have a wp-config.php file, only wp-config.php. I believe the configuration
   process through the browser should create the non sample file. I tried creating
   it myself and putting in the relevant information. However, when I tried to connect
   through the browser I was just met by a white screen with black writing at the
   top saying that it couldn’t connect to the database.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11058110)
 * Do you have the necessary PHP libraries installed to access MySQL?
 *  Thread Starter [m20tgd](https://wordpress.org/support/users/m20tgd/)
 * (@m20tgd)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11058287)
 * Yes, I installed the MySQL PHP package. If you have a look at the link in my 
   first post, I followed all instructions in that.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11058289)
 * is mysql running?
 * ps -ef |grep mysql
 * I’m not going to dig through that tutorial. If you have questions about its specifics,
   contact its author.
 * I generally create the database *before* installing wordpress, then use that 
   info when running the install. And the user I use for the WP database is never‘
   root’.
 * create a database first.
    -  This reply was modified 7 years, 5 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Thread Starter [m20tgd](https://wordpress.org/support/users/m20tgd/)
 * (@m20tgd)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11058302)
 * This is what it comes up with:
 * mysql 15824 1 0 00:05 ? 00:00:53 /usr/sbin/mysqld
    m20tgd 21400 21362 0 23:33
   pts/0 00:00:00 grep –color=auto mysql
 * I assume that as it’s listed it means it’s working.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11058310)
 * Yup. Make a wp-config.php by hand from the sample file.
 *  Thread Starter [m20tgd](https://wordpress.org/support/users/m20tgd/)
 * (@m20tgd)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11058312)
 * I did try that and just got a white screen with black text telling me it couldn’t
   stabilise a connection with the database when I tried to access it from the browser.
 * I’ll try again as I’ve changed a few other things since. It may be an issue with
   how the Pi is configured if not, so I’ll get help from another forum.
 *  [af13rlife](https://wordpress.org/support/users/af13rlife/)
 * (@af13rlife)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11067627)
 * Having same problem, not completley new to linux, but new to setting up a lamp
   server and bought ‘raspberry pi 3’ to learn how to set up and use a lamp to be
   able to learn how to process data sent from my website and have the resualts 
   returned to my site. Anyway, I too stumbled upon the same tutorial and am experiancing
   the same problem, or close to it. Instead of popping up the install webpage for
   wordpress, it is just popping up the php code in my browser that sounds like 
   it should be redirecting me to the site but its not… I have questions but I don’t
   want to hijack this thread and will stay posted to see what comes of this thread
   before starting my own. Thank you for any help.
 *  Thread Starter [m20tgd](https://wordpress.org/support/users/m20tgd/)
 * (@m20tgd)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11067654)
 * I managed to find the solution [elsewhere.](https://askubuntu.com/questions/766334/cant-login-as-mysql-user-root-from-normal-user-account-in-ubuntu-16-04/801950)
 * It’s the 3rd or 4th post down that worked for me. It’s the one that describes
   changing the PlugIn data for the root user to the standard password for the account.
 *  [af13rlife](https://wordpress.org/support/users/af13rlife/)
 * (@af13rlife)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11067668)
 * ok ill let you know how it works, thanks for timley response!!! 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘WordPress on Raspberry Pi’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [lamp](https://wordpress.org/support/topic-tag/lamp/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [raspberrypi](https://wordpress.org/support/topic-tag/raspberrypi/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 11 replies
 * 3 participants
 * Last reply from: [af13rlife](https://wordpress.org/support/users/af13rlife/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/wordpress-on-raspberry-pi/#post-11067668)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
