Deployed XAMPP site on Linux CPANEL returns a white screen when backend login is attempted. See new PHP code below:
<?php
session_start();
if(authUser($_POST['email'], $_POST['pass'])) { $_SESSION['auth'] = true; header('Location: dashboard.php'); }
?>
hey, try checking your php.ini incase error display is off, i had a similar issue. also make sure the session settings in cpanel match your web config, sometimes misconfigured paths or file permission cause a white screen. might help logging errors to trace the problem
The white screen issue when attempting a backend login suggests that there might be an error occurring before any output is sent to the browser, and error reporting is likely disabled. In several similar instances, I found that enabling error reporting in the PHP configuration can help identify the root cause. In addition, ensure that the session is initiated correctly and that the authUser function is properly defined and handling database connections without errors. Consider checking log files for any silent runtime warnings that may lead to this behavior.