-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmanifest.jps
56 lines (49 loc) · 2.18 KB
/
manifest.jps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
type: update
version: 1.6
id: ioncube
name: ionCube Add-On
baseUrl: https://raw.githubusercontent.com/jelastic-jps/ionCube-PHP/master/
globals:
modulesBaseUrl: https://github.com/jelastic-jps/ionCube-PHP/raw/master/
ioncubePath: /usr/lib64/php/modules/
tmpLog: /tmp/ioncube_loader.log
targetNodes:
nodeType:
- apache2
- apache
- nginxphp
- nginxphp-dockerized
onAfterChangeEngine:
- removeIonCube
- installIonCube
homepage: https://www.ioncube.com
logo: /images/ioncube.png
description:
text: |
PHP extension for running ionCube-encoded files on Apache and NGINX-PHP application servers.
Supported programming language versions: PHP 8.1.x, 7.4.x, 7.3.x, 7.2.x., 7.1.x, 7.0.x, 5.6.x, 5.5.x 5.4.x and 5.4.x
short: "PHP extension for running ionCube-encoded files. Supported PHP versions: 8.1.x, 7.4.x, 7.3.x, 7.2.x., 7.1.x, 7.0.x, 5.6.x, 5.5.x 5.4.x and 5.4.x"
onInstall: installIonCube
onUninstall: removeIonCube
actions:
removeIonCube:
- cmd [${targetNodes.nodeGroup}]:
- sed -i "/ioncube/d" /etc/php.ini
- rm -rf ${globals.ioncubePath}/
user: root
- restartNodes:
nodeMission: cp
installIonCube:
- cmd [${targetNodes.nodeGroup}]:
- mkdir -p ${globals.ioncubePath}
- curl -fslL '${baseUrl}modules/ioncube.zip?raw=true' -o ${globals.ioncubePath}/ioncube.zip >> ${globals.tmpLog} 2>&1
- unzip -o ${globals.ioncubePath}/ioncube.zip -d ${globals.ioncubePath} >> ${globals.tmpLog} 2>&1
- wget -O /tmp/defineIoncubeLoader.sh ${baseUrl}scripts/defineIoncubeLoader.sh?_r=${fn.random} >> ${globals.tmpLog} 2>&1
- /bin/sh /tmp/defineIoncubeLoader.sh >> ${globals.tmpLog} 2>&1
- rm -rf /tmp/defineIoncubeLoader.sh
user: root
- restartNodes [${targetNodes.nodeGroup}]
success: |
The ionCube Loader is enabled at your application server and ready to process the encoded files. Use the ***php.ini*** file in case any customizations are required.
For more information on ionCube usage, refer to the official [guidance](https://www.ioncube.com/loaders.php).
If something does not work as expected, please check the logs for more details or submit a question to [Jelastic community](https://stackoverflow.com/questions/tagged/jelastic).