I changed the session.save_path and the website (cPanel) is down now
Hi,
After migrating the account to a new server I could not log into WHMCS and I asked their support to help me and they say the session.save_path was wrong and the system is tying to write to a directory that does not exist.
I went to cPanel via WHM (MultiPHP INI Editor) and changed the path to:
/var/cpanel/php/sessions/ea-php81
(changing only the last numbers) but now the website is down altogether.
I tried to change it back but still nothing.
What am I doing wrong?
-
Hey there! It's hard to say what may have happened, as a broken path there would not take a site offline.
What do you see in the main Apache error log (/etc/apache2/logs/error_log) when you visit the site?
0 -
Hi guys,
This seems to be a problem with the session save path of PHP, a very critical thing in WHMCS when dealing with sessions. If this path is wrong or inaccessible, it creates problems in logging in; moreover, it can take down the whole site if PHP is unable to handle sessions properly. Let us follow the steps to troubleshoot and fix the issue:
Steps for Resolution:
Check if the session path exists:Using SSH, log into your server, or use the File Manager within cPanel. Navigate to /var/cpanel/php/sessions/ea-php81.
Make sure this directory exists and is writable by the web server user, usually nobody, www-data or apache.ls -ld /var/cpanel/php/sessions/ea-php81If this directory does not exist, create it and change appropriate permissions if necessary:
mkdir -p /var/cpanel/php/sessions/ea-php81
chmod 733 /var/cpanel/php/sessions/ea-php81
chown -R nobody:nobody /var/cpanel/php/sessions/ea-php81Check PHP Version Compatibility
Ensure that the version of PHP that you are editing in MultiPHP INI Editor matches the version used by WHMCS.
The PHP version can be checked from within WHMCS by viewing the server's PHP configuration or by checking your .htaccess file for PHP version overrides.
Edit the PHP Configuration:If the session path still seems to be wrong, update the session.save_path back to the default path used on your server.
- Alternatively, you can set a different session path in the MultiPHP INI Editor to another known good directory, like : /tmp for more informarion you can use this link : http://[url=https://tutuapp.uno/][color=#383a3b]Tutuapp[/color][/url] [url=https://9apps.ooo/][color=#383a3b]9Apps[/color][/url]
1 - Alternatively, you can set a different session path in the MultiPHP INI Editor to another known good directory, like : /tmp for more informarion you can use this link : http://[url=https://tutuapp.uno/][color=#383a3b]Tutuapp[/color][/url] [url=https://9apps.ooo/][color=#383a3b]9Apps[/color][/url]
-
After changing the path back, restarting services like Apache or Nginx might be needed for things to take effect. Check your hosting provider's documentation on how to do this.
0
Please sign in to leave a comment.
Comments
3 comments