-
Notifications
You must be signed in to change notification settings - Fork 8
/
ionCube_apache.jps
77 lines (77 loc) · 2.82 KB
/
ionCube_apache.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"jpsType": "update",
"jpsVersion": "0.8",
"application": {
"id": "ioncube-apache",
"name": "ioncube-apache",
"version": "6.0.x",
"type": "php",
"targetNodes": {
"nodeType": [
"apache2","apache"
]
},
"homepage": "https://www.ioncube.com",
"logo": "https://www.ioncube.com/images/site_logo_small2015.png",
"description": {
"text": "ionCube - C extension for your Apache PHP server(s). Versions supported: PHP 5.3.x,5.4.x,5.5.x/5.6.x/7.0.x"
},
"onInstall": {
"call": [
"installIonCube"
]
},
"onUninstall": {
"call": "removeIonCube"
},
"procedures": [
{
"id": "removeIonCube",
"onCall": [
{
"executeShellCommands": [
{
"nodeMission": "cp",
"commands": [
"sed -i \"/ioncube/d\" /etc/php.ini",
"service httpd restart",
"rm -rf /usr/lib64/php/modules/ioncube/"
],
"user": "root"
}
]
}
]
},
{
"id": "installIonCube",
"onCall": [
{
"executeShellCommands": [
{
"nodeMission": "cp",
"commands": [
"mkdir /usr/lib64/php/modules/ioncube",
"wget -O /usr/lib64/php/modules/ioncube/ioncube_loader_lin_5.3.so https://github.com/jelastic-jps/ionCube-PHP/raw/master/modules/ioncube_loader_lin_5.3.so 2>&1",
"wget -O /usr/lib64/php/modules/ioncube/ioncube_loader_lin_5.4.so https://github.com/jelastic-jps/ionCube-PHP/raw/master/modules/ioncube_loader_lin_5.4.so 2>&1",
"wget -O /usr/lib64/php/modules/ioncube/ioncube_loader_lin_5.5.so https://github.com/jelastic-jps/ionCube-PHP/raw/master/modules/ioncube_loader_lin_5.5.so 2>&1",
"wget -O /usr/lib64/php/modules/ioncube/ioncube_loader_lin_5.6.so https://github.com/jelastic-jps/ionCube-PHP/raw/master/modules/ioncube_loader_lin_5.6.so 2>&1",
"wget -O /usr/lib64/php/modules/ioncube/ioncube_loader_lin_7.0.so https://github.com/jelastic-jps/ionCube-PHP/raw/master/modules/ioncube_loader_lin_7.0.so 2>&1",
"chown -R apache:apache /usr/lib64/jelastic_php/ioncube",
"wget -O /root/phpver.sh https://github.com/jelastic-jps/ionCube-PHP/raw/master/scripts/phpvertest.sh 2>&1",
"/bin/sh /root/phpver.sh",
"service httpd restart",
"rm -rf /root/phpver.sh"
],
"user": "root"
}
]
}
]
}
],
"success": {
"text": "The ionCube PHP extension is active on your server. Please see https://www.ioncube.com/loaders.php to get started."
}
}
}