SOLVED After Cpanel 104.0.4 My WHMCS Admin Login not working.

Operating System & Version
centos7
cPanel & WHM Version
104.0.4

yohanecs

Member
Feb 10, 2021
9
1
3
Sri Lanka
cPanel Access Level
Root Administrator
Thank you for your reply, It was PHP Session issue after reconfiguration easyapache my issue has been resolved.
Hi Azeemeo

Same problem for me. I've migrated WHM to a new server. I'm unable to log in to the WHMCS admin or client area since the migration, login page keeps refreshing and not login in but I get emails saying "WHMCS Admin Failed Login Attempt". I tried everything, even reinstalling WHMCS. Could you please explain what you did to resolve this?

Thanks in advance :)
 

yohanecs

Member
Feb 10, 2021
9
1
3
Sri Lanka
cPanel Access Level
Root Administrator
I was able to resolve the issue. The issue was with the PHP session save path. After running the below code saved as a php file, I discovered that there are several .htaccess, .user.ini, php.ini, files in the home directory that were created by cPanel and include incorrect session save path. I corrected the path and saved the files. WHMCS login works fine after that. Check all the .ini files in the home directory and public_html


<?php

if (file_exists('init.php')) {
require('init.php');
} elseif (file_exists('../init.php')) {
require('../init.php');
} else {
echo "Init File not Found";
}
session_start();
$_SESSION["count"]++;
print_r($_SESSION);

$session_save_path = ini_get('session.save_path');

if(is_writable($session_save_path)){
echo "<p>PHP session.save_path $session_save_path is writable</p>";
}
else {
echo "<p>PHP session.save_path $session_save_path is NOT writable</p>";
}
 
  • Like
Reactions: Azeemeo