Report this

What is the reason for this report?

Cannot log into WordPress on CentOS with nginx

Posted on November 23, 2013

I’ve just setup my web server with the following:

CentOS 6 64-bit nginx 1.5.6 php 5.5 php-fpm pagespeed APC Fail2Ban MariaDB 5.5 WP-CLI memcache

I’ve run into a weird issue. I installed the software using a custom-made bash script and it has installed without errors (after two weeks of tweaking!). I’ve created my first site on the server, but I’m not able to log into WordPress. Its like it tries to redirect or something but can’t.

My nginx configs can be seen here:

https://github.com/slushman/slushhost

The site is here:

http://christopherjoel.com/

I’m sure this is something simple like I forgot permissions or something in nginx config, but I’ve been at this for weeks and I’d like a second pair of eyes on this. Can someone take a look and help me find the issue, please?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Even though your WordPress site is already installed, run through this tutorial to make sure you’ve covered all the basis: <a href=“https://www.digitalocean.com/community/articles/how-to-install-wordpress-with-nginx-on-centos-6--2”>How To Install Wordpress with nginx on CentOS 6</a>.

The site seems to resolve OK and the login page appears OK. /wp-login/ or <br> <br>Can you elaborate on, “Its like it tries to redirect or something but can’t.” please? <br> <br>What happens when you enter your username and password? Screen grabs or exact errors please. <br> <br>

@pablo - I’ve already run through that tutorial, thanks. Like I said, the WP files are download, in the correct directory, with the correct permissions (user and group are both the nginx user), the wp-config.php file and setup correctly, the database is created, and the site is displaying. The only issue is I can’t actually log into the Dashboard and administrate the site through the GUI. I can see the files through SFTP and I can administrate the site through the command line (usiing WP-CLI), but I can’t log into the site by going to the login page. <br> <br>@Ben - Normally, when you go to the wp-login page, enter your credentials, and hit the Submit button, the page refreshes and you’re sent to the Dashboard. In my case, I get sent back to the login with no errors. The URL changes from http://christopherjoel.com/wp-login.php to http://christopherjoel.com/wp-login.php?redirect_to=http%3A%2F%2Fchristopherjoel.com%2Fwp-admin%2Fprofile.php&reauth=1. On other servers (like my current web host - not at Digital Ocean), this page then redirects to http://christopherjoel.com/wp-admin/. So, its trying to redirect to the Dashboard, but for some reason, it doesn’t. Is that more clear?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.