Page MenuHomeIn-Portal Phabricator

INP-1888 - Detect Memcache availability during installation using Memcache/Memcached PHP modules
AcceptedPublic

Authored by alex on Nov 20 2024, 11:26 AM.

Details

Reviewers
erik
Test Plan
NOTE: You can't test this Differential Revision if php74 -m | grep memcache command doesn't return 2 entries (the memcache and memcached).
NOTE: Test using a domain, that uses PHP 7.4.

Preparations

  1. in CLI as root user:
    1. run the php74 --ini | grep memcache
    2. remember the command output
    3. backup these files (but not inside the folder they're currently placed or its sub-folders)

Part 1 - both modules

  1. in CLI as root user:
    1. run the php74 --ini | grep memcache
    2. confirm, that 2 paths for 2 INI files were shown
  2. in the Web Browser
    1. delete all tables in the In-Portal database
    2. go to the /core/install.php URL
    3. confirm, that on the 1. System Requirements Check step the Memory caching support line is shown as [PASSED]

Part 2 - only memcache module

  1. in CLI as root user:
    1. go to the directory, where both of the above-remembered INI files are located
    2. ensure, that both INI files, remembered above are in place (if they're not, then restore them from the backup)
    3. delete the INI file (you must have this file in a backup), whose name ends with memcached.ini (e.g. using the rm filename command)
    4. run the php74 -m | grep memcache command
    5. confirm, that only memcache module is shown
    6. run the systemctl restart httpd.service command to restart the Web Server
  2. in the Web Browser
    1. delete all tables in the In-Portal database
    2. go to the /core/install.php URL
    3. confirm, that on the 1. System Requirements Check step the Memory caching support line is shown as [PASSED]

Part 3 - only memcached module

  1. in CLI as root user:
    1. go to the directory, where both of the above-remembered INI files are located
    2. ensure, that both INI files, remembered above are in place (if they're not, then restore them from the backup)
    3. delete the INI file (you must have this file in a backup), whose name ends with memcache.ini (e.g. using the rm filename command)
    4. run the php74 -m | grep memcache command
    5. confirm, that only memcached module is shown
    6. run the systemctl restart httpd.service command to restart the Web Server
  2. in the Web Browser
    1. delete all tables in the In-Portal database
    2. go to the /core/install.php URL
    3. confirm, that on the 1. System Requirements Check step the Memory caching support line is shown as [PASSED]

Part 3 - cleanup

  1. in CLI as root user:
    1. go to the directory, where both of the above-remembered in files are located
    2. ensure, that both ini files, remembered above are in place (if they're not, then restore them from the backup)
    3. delete the backup made in the Preparations part of the test plan
    4. run the php74 --ini | grep memcache
    5. confirm, that 2 paths to 2 INI files were shown
    6. run the systemctl restart httpd.service command to restart the Web Server

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 1338
Build 1338: arc lint + arc unit

Event Timeline

alex created this revision.Nov 20 2024, 11:26 AM
alex requested review of this revision.Nov 20 2024, 11:26 AM
alex edited the test plan for this revision. (Show Details)Nov 20 2024, 11:48 AM
erik accepted this revision.Thu, Dec 19, 11:24 AM
This revision is now accepted and ready to land.Thu, Dec 19, 11:24 AM