[EA-7479] cPanel v70 php session problem
Hello there
After the Cpanel v70 installation, session.save_path for some php versions seems to be null. The session folders are lost if they are in the /var/cpanel/php/sessions folder.
problem php versions 5.4 - 7.1 and 7.2
version 70.0.41
-
Hi @vacancy I've been trying to replicate this on a test server: Started with: [root@centos7 sessions]# cat /usr/local/cpanel/version 11.68.0.38 1. I installed all available versions of PHP 2. I ensured the session save path was to default set for them all: [root@centos7 sessions]# grep "session.save_path =" /opt/cpanel/ea-php*/root/etc/php.ini /opt/cpanel/ea-php54/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php54" /opt/cpanel/ea-php55/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php55" /opt/cpanel/ea-php56/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php56" /opt/cpanel/ea-php70/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php70" /opt/cpanel/ea-php71/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php71" /opt/cpanel/ea-php72/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php72"
3. I ran an update from v68.0.38 -> 70.0.41=> Log opened from cPanel Update (upcp) - Slave (31395) at Wed May 16 14:27:32 2018 [2018-05-16 14:27:32 -0500] 95% complete [2018-05-16 14:27:32 -0500] Running Standardized hooks [2018-05-16 14:27:32 -0500] 100% complete [2018-05-16 14:27:32 -0500] [2018-05-16 14:27:32 -0500] cPanel update completed [2018-05-16 14:27:32 -0500] A log of this update is available at /var/cpanel/updatelogs/update.1526497466.log [2018-05-16 14:27:32 -0500] Removing upcp pidfile [2018-05-16 14:27:32 -0500] [2018-05-16 14:27:32 -0500] Completed all updates => Log closed Wed May 16 14:27:32 2018
4. Then checked for "null" in session save path:[root@centos7 sessions]# grep "session.save_path =" /opt/cpanel/ea-php*/root/etc/php.ini /opt/cpanel/ea-php54/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php54" /opt/cpanel/ea-php55/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php55" /opt/cpanel/ea-php56/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php56" /opt/cpanel/ea-php70/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php70" /opt/cpanel/ea-php71/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php71" /opt/cpanel/ea-php72/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php72"
As you can see I couldn't replicate it. Could you tell me more about your configuration so I can try and replicate that? Is PHP-FPM enabled? What PHP Handler is being used, etc. Thanks!0 -
Hello there The problem I'm talking about is for a clean cPanel installation. (version 70.0.41) php-fpm not active. 0 -
Hi @vacancy Interestingly enough, I'm still not able to replicate this behavior: 2018-05-17 10:06:26 1184 ( INFO): Congratulations! Your installation of cPanel & WHM 11.70 is now complete. The next step is to configure your server. 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087. 2018-05-17 10:06:26 1184 ( INFO): On RHEL, CentOS, and CloudLinux systems, execute /scripts/configure_firewall_for_cpanel to accomplish this. 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server. 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): 1. Open your preferred browser 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): 2. Type https://:2087 in the address bar 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): 3. Enter the word root in the Username text box 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): 4. Enter your root password in the Password text box 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): 5. Click the Login button 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): Visit https://go.cpanel.net/whminit for more information about first-time configuration of your server. 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): Visit http://support.cpanel.net or https://go.cpanel.net/whmfaq for additional support 2018-05-17 10:06:26 1184 ( INFO): 2018-05-17 10:06:26 1184 ( INFO): Thank you for installing cPanel & WHM 11.70! [root@host-172-16-0-118 home]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@host-172-16-0-118 home]# grep "session.save_path =" /opt/cpanel/ea-php*/root/etc/php.ini /opt/cpanel/ea-php55/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php55" /opt/cpanel/ea-php56/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php56" /opt/cpanel/ea-php70/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php70"
Will you be installing on any other servers? All I can think of is there was an issue that was resolved between when you opened the ticket and when I installed. It's possible that the .41 version was the issue as well as I just noticed I installed 70.0.42:[root@host-172-16-0-118 home]# cat /usr/local/cpanel/version 11.70.0.42
Thanks!0 -
Hello Do you install php 5.4, 7.1 and 7.2 and try it. There are problems with these versions. 0 -
HI @vacancy Thanks for the clarification, I was able to replicate the issue once I installed ea-php54, ea-php71, ea-php72: [root@host-172-16-0-118 home]# grep "session.save_path =" /opt/cpanel/ea-php*/root/etc/php.ini /opt/cpanel/ea-php54/root/etc/php.ini:; session.save_path = "N;/path" /opt/cpanel/ea-php54/root/etc/php.ini:; session.save_path = "N;MODE;/path" /opt/cpanel/ea-php54/root/etc/php.ini:;session.save_path = "/tmp" /opt/cpanel/ea-php55/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php55" /opt/cpanel/ea-php56/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php56" /opt/cpanel/ea-php70/root/etc/php.ini:session.save_path = "/var/cpanel/php/sessions/ea-php70" /opt/cpanel/ea-php71/root/etc/php.ini:; session.save_path = "N;/path" /opt/cpanel/ea-php71/root/etc/php.ini:; session.save_path = "N;MODE;/path" /opt/cpanel/ea-php71/root/etc/php.ini:;session.save_path = "/tmp" /opt/cpanel/ea-php72/root/etc/php.ini:; session.save_path = "N;/path" /opt/cpanel/ea-php72/root/etc/php.ini:; session.save_path = "N;MODE;/path" /opt/cpanel/ea-php72/root/etc/php.ini:;session.save_path = "/tmp"
I opened an internal case as a result of this EA-7479 php session.save_path set to null when installing additional PHP versions on fresh install I'll update here when I have any further information on this. Thanks!0 -
Hello Easyapache 4 has received 2 updates, but this issue is still not fixed. 0 -
Hi @vacancy You're correct, it wasn't included in the fixes EasyApache included yesterday. It is being worked on, I checked the status yesterday and again today but there's no update on it besides the fact that it's in progress currently. I will let you know as soon as I have an update on the status. Thanks! 0 -
Hello all, A resolution for this was pushed in the EA4 updates yesterday. The case number was changed to EA-7548 and should be included in the changelogs. You can check them here: EasyApache 4 Change Log 2018 - EasyApache 4 - cPanel Documentation Please let us know if you continue to see issues with this. Thanks! 0
Please sign in to leave a comment.
Comments
8 comments