mishra Posted August 5, 2019 Share Posted August 5, 2019 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. Quote Link to comment Share on other sites More sharing options...
Luigi123 Posted August 5, 2019 Share Posted August 5, 2019 Moved to Customer Service. Quote Link to comment Share on other sites More sharing options...
qsgt Posted August 5, 2019 Share Posted August 5, 2019 Without posting your password, please share the code you are using to connect to your database. Quote Link to comment Share on other sites More sharing options...
mishra Posted August 6, 2019 Author Share Posted August 6, 2019 <?php $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 Quote Link to comment Share on other sites More sharing options...
qsgt Posted August 6, 2019 Share Posted August 6, 2019 Your PHP database connection statement looks OK to me. Additionally, my login attempt did not generate a 500 error. I did notice that your signup page sent me to https://www.madhusudanmishra.in/register/includes/signup.inc.php and displayed an "Email not sent" message though. Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted August 6, 2019 Share Posted August 6, 2019 Yeah same here @qsgt. Yesterday when I was trying to login on his site it showed the 500 error. However that didn't happen today. Rather I too encountered the 'Mail not sent' error. Quote Link to comment Share on other sites More sharing options...
flazepe Posted August 6, 2019 Share Posted August 6, 2019 It's 500, not 505. I got it too. Now it's saying "Mail not sent" which is presumably better. Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted August 6, 2019 Share Posted August 6, 2019 Sorry... Corrected that in my previous post. That happened due to my mobile's keyboard auto-fill. The error was '500 server gone wild'. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.