Moving site
Moving site
I've moved my FP site to a new host. But now I am unable to login. I'm still on 1.4.1 so I haven't upgraded yet. The site works otherwise. Just can't log in at all. I go to login and enter the credentials and the site just stays on the login screen.
- fraenkiman
- FlatPress Coder
- Posts: 547
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: Moving site
Hello anlarye,
Hmm, to narrow down the cause of the error further, I need a little more information.
After entering your username and password, do you see an error message ("Please wait 30 seconds" or "Username or password incorrect")?
Use a text editor to check the file fp-content/config/settings.conf.php
You could run the setup (setup.php) again to create a new username and password.
If an .htaccess file was moved over from your old web host, please rename it to _htaccess.
Best regards,
Frank
Hmm, to narrow down the cause of the error further, I need a little more information.
After entering your username and password, do you see an error message ("Please wait 30 seconds" or "Username or password incorrect")?
Use a text editor to check the file fp-content/config/settings.conf.php
Code: Select all
$fp_config = array (
'general' =>
array (
'www' => 'https://<your-new-BLOGBASE>/',
If an .htaccess file was moved over from your old web host, please rename it to _htaccess.
Best regards,
Frank
My
Re: Moving site
the URL didn't change. only the hosting provider changed.
i did rename the htaccess as suggested.
still getting the same issue of not being able to login.
there isn't any error message. it just blinks the page when hitting login and goes back to the login screen.
i did rename the htaccess as suggested.
still getting the same issue of not being able to login.
there isn't any error message. it just blinks the page when hitting login and goes back to the login screen.
- fraenkiman
- FlatPress Coder
- Posts: 547
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: Moving site
It's strange that not even an error message is displayed. There may be a corrupted file in the FlatPress cache.
Please delete the following directories, including all subdirectories and files:
fp-content/cache/
fp-content/compile/
Since the domain hasnβt changedβonly the hosting providerβplease also check the file permissions (0644) and directory permissions (0755).
Afterward, check to see if the problem is resolved.
Best regards,
Frank
Please delete the following directories, including all subdirectories and files:
fp-content/cache/
fp-content/compile/
Since the domain hasnβt changedβonly the hosting providerβplease also check the file permissions (0644) and directory permissions (0755).
Afterward, check to see if the problem is resolved.
Best regards,
Frank
My
Re: Moving site
I checked on permissions last night to make sure they were correct. No issues there.
I deleted the files as suggested. No change. Still cannot log in. I might just wipe it and start over.
I deleted the files as suggested. No change. Still cannot log in. I might just wipe it and start over.
- fraenkiman
- FlatPress Coder
- Posts: 547
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: Moving site
Hello anlarye,
Could you please provide me with a ZIP file containing the affected FlatPress instance so I can investigate it further?
Thank you very much and best regards,
Frank
Could you please provide me with a ZIP file containing the affected FlatPress instance so I can investigate it further?
Thank you very much and best regards,
Frank
My
Re: Moving site
Just a thought: Make a complete backup of your FlatPress installation. Then reactivate the setup folder with all its files and delete the setup lock file.anlarye wrote: Sun Sep 27, 2026 7:12 pm... Just can't log in at all. I go to login and enter the credentials and the site just stays on the login screen. ...
The reasoning behind this: If you move from one web server to another, youβll run into a problem with the certificate and the key file. Every web server has its own key file.
If the login process now reads the key file to decrypt the password, it wonβt work anymore.
best regards
Laborix
- fraenkiman
- FlatPress Coder
- Posts: 547
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: Moving site
Hello anlarye,
I've made some progress in figuring out the cause. On my test environment, I was able to log in using another admin account I had created. In your case, I suspect a lost session and that the session storage is unusable with the new host. By default, cPanel uses session directories under /var/cpanel/php/sessions (.user.ini). The question is whether this specific path exists on the new host and whether the relevant PHP process is actually allowed to use it. .user.ini is not part of the 1.4.1 repository. Does this file come from the old host or the new one?
@laborix: The suspected linking of the password to a certificate or server key does not apply to the login. user_login() (line 101) in communiti.chat/fp-includes/core/core.users.php uses password_verify() with the stored hash.
Please try the attached diagnostic script: 1. Upload session-diagnose.php to the same directory as login.php.
2. Open it in your browser using your siteβs HTTPS address (https://communiti.chat/session-diagnose.php).
3. Click "Test session persistence / test again". You can wait a few minutes and click it again.
4. Copy the "Results to share" block and post it here.
5. Delete the script from your hosting account afterward.
The script uses a separate test session and does not modify your FlatPress files.
Best regards,
Frank
I've made some progress in figuring out the cause. On my test environment, I was able to log in using another admin account I had created. In your case, I suspect a lost session and that the session storage is unusable with the new host. By default, cPanel uses session directories under /var/cpanel/php/sessions (.user.ini). The question is whether this specific path exists on the new host and whether the relevant PHP process is actually allowed to use it. .user.ini is not part of the 1.4.1 repository. Does this file come from the old host or the new one?
@laborix: The suspected linking of the password to a certificate or server key does not apply to the login. user_login() (line 101) in communiti.chat/fp-includes/core/core.users.php uses password_verify() with the stored hash.
Please try the attached diagnostic script: 1. Upload session-diagnose.php to the same directory as login.php.
2. Open it in your browser using your siteβs HTTPS address (https://communiti.chat/session-diagnose.php).
3. Click "Test session persistence / test again". You can wait a few minutes and click it again.
4. Copy the "Results to share" block and post it here.
5. Delete the script from your hosting account afterward.
The script uses a separate test session and does not modify your FlatPress files.
Best regards,
Frank
My
Re: Moving site
It doesn't give any button to retest. Just fails instantly when going to the diagnose.php page
PHP Session Diagnostics
Result: SESSION_START_FAILED
PHP was unable to open the test session. Check the session handler, storage path, access permissions, and PHP error log with your hosting provider.
Stay in the same browser and tab. After the first PASS, check again after a few minutes if necessary.
Result to share
Copy only this block. It does not contain any session IDs, cookie values, login credentials, full server paths, or installation URLs.
{
"diagnostic_version": 1,
"php_version": "8.3.30",
"php_sapi": "cgi-fcgi",
"main_ini_loaded": true,
"additional_ini_files_loaded": true,
"user_ini_scanning_enabled": true,
"user_ini_supported_by_sapi": true,
"session_handler": "files",
"session_save_path_configured": true,
"session_save_path_cpanel_style": true,
"session_directory_exists": false,
"session_directory_writable_hint": false,
"session_directory_depth": 0,
"open_basedir_configured": false,
"configured_session_auto_start": false,
"configured_session_use_cookies": true,
"configured_session_use_only_cookies": true,
"configured_session_use_strict_mode": false,
"configured_session_gc_maxlifetime": 1440,
"configured_session_cookie_secure": false,
"configured_session_cookie_httponly": false,
"configured_session_cookie_domain_set": false,
"configured_session_cookie_path_set": true,
"configured_session_cookie_samesite": "",
"https_server_variable_enabled": true,
"https_server_variable_is_off": false,
"proxy_header_indicates_https_unverified": false,
"flatpress_141_https_detection_would_enable_secure_cookie": true,
"diagnostic_cookie_secure": true,
"request_method": "GET",
"diagnostic_cookie_received": false,
"session_start_ok": false,
"result": "SESSION_START_FAILED",
"suppressed_warning_count": 2
}
PHP Session Diagnostics
Result: SESSION_START_FAILED
PHP was unable to open the test session. Check the session handler, storage path, access permissions, and PHP error log with your hosting provider.
Stay in the same browser and tab. After the first PASS, check again after a few minutes if necessary.
Result to share
Copy only this block. It does not contain any session IDs, cookie values, login credentials, full server paths, or installation URLs.
{
"diagnostic_version": 1,
"php_version": "8.3.30",
"php_sapi": "cgi-fcgi",
"main_ini_loaded": true,
"additional_ini_files_loaded": true,
"user_ini_scanning_enabled": true,
"user_ini_supported_by_sapi": true,
"session_handler": "files",
"session_save_path_configured": true,
"session_save_path_cpanel_style": true,
"session_directory_exists": false,
"session_directory_writable_hint": false,
"session_directory_depth": 0,
"open_basedir_configured": false,
"configured_session_auto_start": false,
"configured_session_use_cookies": true,
"configured_session_use_only_cookies": true,
"configured_session_use_strict_mode": false,
"configured_session_gc_maxlifetime": 1440,
"configured_session_cookie_secure": false,
"configured_session_cookie_httponly": false,
"configured_session_cookie_domain_set": false,
"configured_session_cookie_path_set": true,
"configured_session_cookie_samesite": "",
"https_server_variable_enabled": true,
"https_server_variable_is_off": false,
"proxy_header_indicates_https_unverified": false,
"flatpress_141_https_detection_would_enable_secure_cookie": true,
"diagnostic_cookie_secure": true,
"request_method": "GET",
"diagnostic_cookie_received": false,
"session_start_ok": false,
"result": "SESSION_START_FAILED",
"suppressed_warning_count": 2
}
- fraenkiman
- FlatPress Coder
- Posts: 547
- Joined: Thu Feb 03, 2022 7:25 pm
- Location: Berlin, Germany
- Contact:
Re: Moving site
Hello anlarye,
Thank you very much for posting the results.
In this older copy of the 1.4.1 instance, .user.ini explicitly sets the session path to a cPanel directory for PHP 8.2. The new hostβs diagnostic runs on PHP 8.3.30. This indicates a setting that was carried over but is now incorrect. PHP cannot start a session, and the configured session directory appears to be missing or inaccessible. This occurs independently of FlatPress and likely explains the login issue. The test button only appears after a session has been successfully started.
Please create a backup copy of .user.ini and check the session.save_path setting. If it points to the directory on the old host, comment out that line by adding a ; at the beginning. If youβre unsure, ask your new hosting provider for the correct setting for the session storage.
Wait about five minutes for PHP to reload the configuration, and then open the diagnostics page again. If the button appears, click it to check whether "PASS" is displayed, and then try logging in to FlatPress as an admin again.
If it still doesnβt work, please share the updated "Results to Share" block. Delete the diagnostic script after testing.
Best regards,
Frank
Thank you very much for posting the results.
In this older copy of the 1.4.1 instance, .user.ini explicitly sets the session path to a cPanel directory for PHP 8.2. The new hostβs diagnostic runs on PHP 8.3.30. This indicates a setting that was carried over but is now incorrect. PHP cannot start a session, and the configured session directory appears to be missing or inaccessible. This occurs independently of FlatPress and likely explains the login issue. The test button only appears after a session has been successfully started.
Please create a backup copy of .user.ini and check the session.save_path setting. If it points to the directory on the old host, comment out that line by adding a ; at the beginning. If youβre unsure, ask your new hosting provider for the correct setting for the session storage.
Wait about five minutes for PHP to reload the configuration, and then open the diagnostics page again. If the button appears, click it to check whether "PASS" is displayed, and then try logging in to FlatPress as an admin again.
If it still doesnβt work, please share the updated "Results to Share" block. Delete the diagnostic script after testing.
Best regards,
Frank
My
Who is online
Users browsing this forum: No registered users and 0 guests