I am using php 7.3 with apache and mod_php. osTicket has various issues, and I had to modify osTicket's core scripts to make it work. Instead, I now will be changing to php-fpm and will be installing both php 7.3 for some sites and another version of php specifically for osTicket. What php version should I use for osTicket?
What is the most current version of PHP that works well with osTicket?
https://docs.osticket.com/en/latest/Getting%20Started/Installation.html
https://github.com/osTicket/osTicket
All of them say 5.6+, with git hub adding 7.2 recommended
Thanks ntozier, The 5.6+ through me off as I typically use 7.3. The github page, however, is quite clear. 7.2 it is!
Actually, 7.2 causes osTicket to complain, yes 7.0 will not. Per change log for https://www.php.net/manual/en/function.session-start.php:
7.1.0 session_start() now returns FALSE and no longer initializes $_SESSION when it failed to start the session.
What other warningS are you experiencing? I don’t see any on PHP 7.3 and osTicket v1.12.2.
Cheers.
Personally In 7.3 I get this in my php logs a ton:
[08-Aug-2019 17:25:32 UTC] PHP Warning: session_name(): Cannot change session name when session is active in C:\inetpub\wwwroot\support\include\class.ostsession.php on line 34
[08-Aug-2019 17:25:32 UTC] PHP Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in C:\inetpub\wwwroot\support\include\class.ostsession.php on line 40
[08-Aug-2019 17:25:32 UTC] PHP Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in C:\inetpub\wwwroot\support\include\class.ostsession.php on line 56
[08-Aug-2019 17:25:32 UTC] PHP Warning: session_set_save_handler(): Cannot change save handler when session is active in C:\inetpub\wwwroot\support\include\class.ostsession.php on line 81