LEMP, cant get php to talk to mysql - please help

Hi guys,

its my 2nd day of trial and error, but still cant get php to talk to mysql.

Have followed the "LEMP Server on Debian 6" giude in linode library, have installed all components - all work well independently. I tested this by placing a test.php in my public_html and the browser outputed the rendered php file.

However, when I try to connect to mysql from test.php, the browser shows a blank page, and i was able to find that the server sent a 500 - internal server error.

About mysql config - it is configured to run on 127.0.0.1, i can successfully execute mysql commands from ssh.

Please help - how can I get php to talk to mysql?

Any advice would be greatly appreciated.

Thanks.

1 Reply

OK so I have rebooted my Linode, everything works now!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct