• Hello,

    I’ve been trying to set up WordPress on my Raspberry Pi using this guide

    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)

    (@sterndata)

    Volunteer Forum Moderator

    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

    (@m20tgd)

    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)

    (@sterndata)

    Volunteer Forum Moderator

    Do you have the necessary PHP libraries installed to access MySQL?

    Thread Starter m20tgd

    (@m20tgd)

    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)

    (@sterndata)

    Volunteer Forum Moderator

    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.

    Thread Starter m20tgd

    (@m20tgd)

    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)

    (@sterndata)

    Volunteer Forum Moderator

    Yup. Make a wp-config.php by hand from the sample file.

    Thread Starter m20tgd

    (@m20tgd)

    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.

    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

    (@m20tgd)

    I managed to find the solution elsewhere.

    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.

    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.