[EA-7479] cPanel v70 php session problem

vacancy

Well-Known Member
Sep 20, 2012
557
223
93
Turkey
cPanel Access Level
Root Administrator
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
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @vacancy

I've been trying to replicate this on a test server:
Started with:
[[email protected] 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:
Code:
[[email protected] 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
Code:
=> 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:
Code:
[[email protected] 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!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @vacancy

Interestingly enough, I'm still not able to replicate this behavior:

Code:
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://<IPRemoved>: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!
[[email protected] home]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[[email protected] 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:

Code:
[[email protected] home]# cat /usr/local/cpanel/version
11.70.0.42

Thanks!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
HI @vacancy

Thanks for the clarification, I was able to replicate the issue once I installed ea-php54, ea-php71, ea-php72:

Code:
[[email protected] 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!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
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!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
  • Like
Reactions: vacancy