Topic: how to upgrade PHP 5.4 to 5.6 for Live GLPI implementation

Hi

i have the GLPI (0.90.3) configured and running on CENTOS 7 with PHP 5.4 and Mariadb  5.5.47.

i need to plan for upgrading the PHP to 5.7 or at least 5.6.. being little new to Linux world, need guidance on this.

please suggest step by step process for upgrading the PHP without breaking the current GLPI.

also share any pitfalls, Do's and Don'ts if possible.

Thanks in advance.

CG

 
GLPI 0.90.3 ( => /usr/share/glpi)

Server

 
Operating system: Linux abc.xyz.com 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64
PHP 5.4.16 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, apache2handler, bcmath, bz2, calendar, ctype, 

curl,
    date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imap, intl, json, ldap, 

libxml, lzf,
    mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, snmp, soap, 

sockets,
    sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, 

zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
    upload_max_filesize="2M" 
Software: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_perl/2.0.9dev Perl/v5.16.3 ()
    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
Server Software: MariaDB Server
    Server Version: 5.5.47-MariaDB
    Server SQL Mode: 
    Parameters: glpi@localhost/glpi
    Host info: Localhost via UNIX socket
    
OK/etc/glpi : OK
OK/var/lib/glpi/files : OK
OK/var/lib/glpi/files/_dumps : OK
OK/var/lib/glpi/files/_sessions : OK
OK/var/lib/glpi/files/_cron : OK
OK/var/lib/glpi/files/_graphs/ : OK
OK/var/lib/glpi/files/_lock/ : OK
OK/var/lib/glpi/files/_plugins : OK
OK/var/lib/glpi/files/_tmp/ : OK
OK/var/lib/glpi/files/_rss/ : OK
OK/var/lib/glpi/files/_uploads/ : OK
OK/usr/share/glpi/files/_pictures : OK
OK/var/log/glpi : OK
Web access to files directory is protectedWeb access to files directory is protected : OK
OKSELinux mode is Disabled

Libraries

 
htmLawed version 1.1.21 in ()
phpCas version 1.3.4 in (/usr/share/glpi/ajax)
PHPMailer version 5.2.9 in ()
ZetaComponent ezcGraph installed in (ezc):  OK
Zend Framework version 2.4.8 in (/usr/share/php/Zend)
SimplePie version 1.3.1 in (/usr/share/php/php-simplepie)
TCPDF version 6.2.12 in (/usr/share/glpi/lib/tcpdf)
ircmaxell/password-compat in (/usr/share/glpi/lib/password_compat). Compatitility: Ok

LDAP directories

 
Server: 'ldap://XXX.XXX.XXX.XXX', Port: '389', BaseDN: 'DC=XXX,DC=com', Connection filter:
        '(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!

(samaccountname=*$)))', RootDN:
        'XXX\glpi.ldap', Use TLS: none
Server: 'ldap://XXX.XXX.XXX.XXX', Port: '389', BaseDN: 'DC=XXX,DC=com', Connection filter:
        '(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!

(samaccountname=*$)))', RootDN:
        'XXX\administrator', Use TLS: none

Mysql replicas

 
Not active

Notifications

 
Way of sending emails: SMTP (anonymous@XXX.XXX.XXX.XXX)

Mails receivers

 
Name: 'alembic.response@gmail.com' Active: No
    Server: '{imap.gmail.com:993/ssl/novalidate-cert}' Login: 'alembic.response@gmail.com' Password: Yes
Name: 'supportcenter@alembic.co.in' Active: Yes
    Server: '{XXX.XXX.XXX.XXX/imap/novalidate-cert/notls/debug}' Login: 'supportcenter@alembic.co.in' Password: Yes

Plugins list

 
    fields               Name: Additionnal fields             Version: 0.90-1.2   State: Not installed
    news                 Name: Alerts                         Version: 0.90-1.2   State: Enabled
    arsurveys            Name: AR Surveys                     Version: 1.4.0      State: Enabled
    behaviors            Name: Behaviours                     Version: 1.0        State: Enabled
    positions            Name: Cartography                    Version: 4.2.2      State: Enabled
    consumables          Name: Consumable request             Version: 1.1.0      State: Enabled
    custom               Name: Custom                         Version: 0.90-1.0.1 State: Enabled
    customfields         Name: Customfields                   Version: 1.7        State: Not installed
    dashboard            Name: Dashboard                      Version: 0.7.3      State: Enabled
    databases            Name: Databases                      Version: 1.8.1      State: Enabled
    domains              Name: Domains                        Version: 1.7.0      State: Enabled
    environment          Name: Environment                    Version: 1.9.0      State: Enabled
    escalade             Name: Escalation                     Version: 0.90-1.1   State: Enabled
    formcreator          Name: Forms                          Version: 0.90-1.4   State: Enabled
    fpconsumables        Name: FP Consumables                 Version: 1.0.0      State: Enabled
    fpsoftware           Name: FP Software                    Version: 1.1.0      State: Enabled
    resources            Name: Human Resources                Version: 2.2.1      State: Enabled
    geninventorynumber   Name: Inventory number generation    Version: 0.85+1.0   State: Enabled
    addressing           Name: IP Adressing                   Version: 2.3.0      State: Enabled
    itilcategorygroups   Name: ItilCategory Groups            Version: 0.90+1.0.3 State: Enabled
    mailanalyzer         Name: Mail Analyzer                  Version: 1.2.3      State: Enabled
    mask                 Name: Mask                           Version: 2.1.0      State: Enabled
    mobile               Name: Mobile                         Version: 2.0        State: Enabled
    moreticket           Name: More ticket                    Version: 1.2.3      State: Enabled
    moreldap             Name: MoreLDAP                       Version: 0.2.2      State: Enabled
    ocsinventoryng       Name: OCS Inventory NG               Version: 1.2.3      State: To be cleaned
    order                Name: Orders management              Version: 0.85+1.2   State: Enabled
    additionalalerts     Name: Others alerts                  Version: 1.8.0      State: Enabled
    helpdeskrating       Name: Plugin Helpdeskrating          Version: 1.1.1      State: Enabled
    pdf                  Name: Print to pdf                   Version: 1.0.1      State: Enabled
    printercounters      Name: Printer counters               Version: 1.2.0      State: Enabled
    racks                Name: Rack enclosures management     Version: 1.6.2      State: Enabled
    renamer              Name: Renamer                        Version: 0.90-1.0   State: Not installed
    reports              Name: Reports                        Version: 1.9.1      State: Enabled
    manufacturersimports Name: Suppliers imports              Version: 1.8.1      State: Enabled
    tasklists            Name: Tasks list                     Version: 1.0.0      State: Enabled
    timelineticket       Name: Timeline of tickets            Version: 0.90+1.0   State: Enabled
    typology             Name: Typologies                     Version: 2.2.1      State: Enabled
    webnotifications     Name: Web Notifications              Version: 1.0.4      State: Enabled
    webservices          Name: Web Services                   Version: 1.6.0      State: Enabled

Re: how to upgrade PHP 5.4 to 5.6 for Live GLPI implementation

See the Wizard instructions

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: how to upgrade PHP 5.4 to 5.6 for Live GLPI implementation

Thanks for the response.

after going thru the wizard need more information on below points please.

1. Can i consider ,y implementation as Single Version or Multiple Version? i do have phpmyadmin installed on Same Linux box.
2. If i run the suggested command i.e. "yum --enablerepo=remi install php-xxx" will do all the required activities?
3. should i shut down httpd and mysql services before running?
4. anything else i need to  check/change?
5. any other package needs to get upgraded?

Regards.

Re: how to upgrade PHP 5.4 to 5.6 for Live GLPI implementation

1/ I can't say, your needs wink

2/ Yes, I think

3/ not mandatory, but a restart will be needed

4/ yes, application compatibility with new version

5/ should be pulled by yum if needed, at least the dsitro should be fully updated

I also recommend to run first on a dev (not production) server first.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: how to upgrade PHP 5.4 to 5.6 for Live GLPI implementation

well

1. How i can check ( i am little new to PHP/Linux)
4. I am uysing it for GLPI .90.0 can you refer any URL to confirm please.

Thanks and Regards.

Re: how to upgrade PHP 5.4 to 5.6 for Live GLPI implementation

1. How can I know if you need a single PHP version ?

2. GLPI 0.90.0 is terrible old, use 0.90.5

Which work perfectly with 5.6

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi