Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-05-20 00:52:22

richtestani
Plugin Author
Registered: 2009-11-08
Posts: 128

Database unavailable for front end only

Hi,
I have a new install setup using 4.6-dev on an nginx server.
When I run the site locally on MAMP (configured to use nginx), all is well – but when I deploy it to the server,
I get the Database unavailable error – yet I can log into text pattern and see all of the articles properly.
I can create an article and looking in the DB, it most certain insert the new article.

Any ideas what’s happening and where can I look to check on this?
Thanks
Rich

Offline

#2 2016-05-20 12:27:57

richtestani
Plugin Author
Registered: 2009-11-08
Posts: 128

Re: Database unavailable for front end only

Found the issue-
My nginx config was wrong.

Changed:

try_files $uri $uri/ /index.php?$query_string;

to

try_files $uri $uri/ /index.php?$args;

Offline

Board footer

Powered by FluxBB