Skip to content

Instantly share code, notes, and snippets.

@phpdave
Last active September 20, 2017 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdave/9f4090af8b90fa6c3916554b970a63b3 to your computer and use it in GitHub Desktop.
Save phpdave/9f4090af8b90fa6c3916554b970a63b3 to your computer and use it in GitHub Desktop.
Automate installing ZS91 on your IBM i. Note the zendphp7.savf is 1.5GB
#wget http://downloads.zend.com/zendserver/9.1.0/ZendServer-9.1.0-php-7.1.3-IBM-i.zip
wget http://downloads.zend.com/zendserver/9.1.1/ZendServer-9.1.1-php-7.1.7-IBM-i.zip
#unzip ZendServer-9.1.0-php-7.1.3-IBM-i
unzip ZendServer-9.1.1-php-7.1.7-IBM-i
scp zendphp7.savf QSECOFR@MYIBMi.example.com:/tmp/
ssh QSECOFR@MYIBMi.example.com system "\"CPYFRMSTMF FROMSTMF('/tmp/zendphp7.savf') TOMBR('/QSYS.LIB/QGPL.LIB/ZENDPHP7.FILE')\""
ssh QSECOFR@MYIBMi.example.com system "\"SBMJOB CMD(RSTLICPGM LICPGM(7PHPZND) DEV(*SAVF) SAVF(QGPL/zendphp7))\""
CRTSAVF FILE(QGPL/zendphp7) TEXT('Zend Server 9 product save file')
#clear it if it already exisits
CLRSAVF FILE(QGPL/zendphp7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment