Welcome! Log In Create A New Profile

Advanced

Ubuntu + Nginx + PHP + Mysql Question

Posted by rodrane 
Ubuntu + Nginx + PHP + Mysql Question
February 20, 2012 01:31PM
hey guys I've install Nginx Php and Mysql.

actually Mysql was already installed which is working perfect with mysql workbench.

in Nginx Localhost

when i create index.php

as

<?php

mysql_connect("localhost","root","password") or die(mysql_error());
phpinfo();

?>

it gives me internal server error 500

then i commentout line mysql_connect and it actually works.

from yakuake i write

mysql -u root -ppassword and i connect mysql without any problem...

well my question is what can be the problem ?



Ps:I am using Ubuntu 11.10



Edited 1 time(s). Last edit at 02/20/2012 01:32PM by rodrane.
Re: Ubuntu + Nginx + PHP + Mysql Question
February 20, 2012 02:30PM
Judging from your comments, the error is on the backend (PHP) side. Look into PHP error log.

Andrejs
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 202
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready