Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

[EA-7479] cPanel v70 php session problem

Discussion in 'EasyApache' started by vacancy, May 16, 2018.

Tags:
  1. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    198
    Likes Received:
    25
    Trophy Points:
    28
    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
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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:
    Code:
    [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
    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:
    [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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    198
    Likes Received:
    25
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    Hello there

    The problem I'm talking about is for a clean cPanel installation. (version 70.0.41)

    php-fpm not active.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
    [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:

    Code:
    [root@host-172-16-0-118 home]# cat /usr/local/cpanel/version
    11.70.0.42

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    198
    Likes Received:
    25
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    Hello

    Do you install php 5.4, 7.1 and 7.2 and try it.

    There are problems with these versions.
     
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @vacancy

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

    Code:
    [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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    linux4me2 and vacancy like this.
  7. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    198
    Likes Received:
    25
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    Hello

    Easyapache 4 has received 2 updates, but this issue is still not fixed.
     
  8. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    linux4me2 and vacancy like this.
  9. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    vacancy likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice