Jump to content

Error 500 on files connecting to MySQL DB


Recommended Posts

My domain is www.madhusudanmishra.in. All index.php files are working fine but when files which have to make connection with the database are called it shows error 500.


For eg: www.madhusudanmishra.in/register is working fine but when someone tries to make a login attempt (file signin.php works) and shows error 500.


All php file permissions are set to 644 as well as db user has all privilege given. 


The same works fine on the localhost xampp. Please help and thanks in advance.



Link to comment
Share on other sites



$dbServername = "localhost";

$dbUsername = "msm_admin";

$dbPassword = "db pass";

$dbName = "msm_loginsystem";


$conn = mysqli_connect($dbServername, $dbUsername, $dbPassword, $dbName);


trial login credentials: username > madhusudan 

pass > test@123
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...