Skip to content

Commit

Permalink
feat(wp): new sites (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd authored May 11, 2023
2 parents f4da98d + 139c040 commit e6a5e4b
Show file tree
Hide file tree
Showing 17 changed files with 148 additions and 83 deletions.
3 changes: 3 additions & 0 deletions cloud/classic/adminer/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ services:
- alwatr-private-network
- alwatr-public-network

environment:
- PHP_MAX_EXECUTION_TIME=600

env_file: .env

labels:
Expand Down
14 changes: 7 additions & 7 deletions cloud/classic/traefik-proxy/env/srv1.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
U2FsdGVkX1+4wXRB5gi0+JkKaTIVVXVSEx4gCDQDu8t7JI5/pIdO8UXubtAdKAOp
wLT+7b90TvwEVK/ICMXv+2e/7kjeXNYqUCQNqSLooIjlOfzsDU/a99Z8MKKj0de5
Jsel3w7ISKdP8Fc3gF9hUxjWr6Iw3zzRHWV7hjcmv64qv/NGWejz++5Bfv/b24eo
FU0dTZ5QhHSuBHHPgBzM1e9L660EBEAsqfYRss3Qz2WyPyVP6i6hj3cEYv5poGAC
vUWj7AI7/IKQCD9a97h5MbXJyfrcy1xO+w6lWQW/aKuHfbTBooosZJA+rS+/NyrM
FH+3BivKTPeX7YmF6E/fngW6uLlgwZBuORNPMB9UuCOM3PTzRILrxnq11xFisjJm
k2jtIPsQcHlmmqEVVVbalw==
U2FsdGVkX19qgpA+bcRxTthMUWK5sliPH/KFmBLw/cFVa5RV74qZK+qIeHcafmnb
3aTtAy6v19lzYTcSfQujZmmNxrtbGd1Cf1Dr6uu5tRtI+i9pxRWf/lL9c/cZJNyJ
W1vQ6V/A3855UPuA9dx60E1x+vDbAacKdqkFd8he1Fxb1q5HXGSSHXkeLTvN62BA
TfrsgvXWLjqBxfSHhTrwPZ1+okIonhU0AyZU2F7OISJKMTvXwY2dDNY270v++2BT
74Ew9PAe00mUuKzgpVSyjzbvSMCzMFJa3Ssjr8/YxCjbcRMgIFhDb4AV+dlCw1oO
kP19IjA6w/gqMLFN6q5Ayd5BYY8Kn6bAMFHomPOU5yOBRZtqLN+2K6wxNbTRiRmx
QhEkT4PGaKW5k1wWVuLpDg==
7 changes: 0 additions & 7 deletions cloud/classic/traefik-proxy/env/srv2.env

This file was deleted.

7 changes: 7 additions & 0 deletions cloud/classic/traefik-proxy/env/srv3.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
U2FsdGVkX187dZIAevumzl1IMCraLmJ0zQ7IStmCH7KdA4iT5fJ3Q8ZzBgc08twG
uRIOHz4mC+DHyi+LJr4sASqp+mL3tUWujb0oMW5L9YBuKKYuPjh87K1vrNUsWlYI
996OE3BmNnaRSLRGzD7dCpjciO2FZyM4qNsMI0E5GGwNjgQyrU4HOU2Age6TizKS
7zZEWVGh4p23joDW4kgB64s6G4qQ5HpPgESwt/yDw+IGyR55zGxbVk9t32lNnG+h
OYaR1JI6oyHW+78GDkT5fWtz4WqD5SsLFpzD4IKLkm3OTzD5if1THr7YuO4iqn0i
GvWM8t2Ous5IP39cQ+OiTpF48lUtVi8ukrizPFrf5SF2OoKOZ0/AbyqTszgYda4N
t6xDmGAGzqAASPM0pDjhxg==
23 changes: 17 additions & 6 deletions cloud/classic/traefik-proxy/traefik.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,19 @@
#
# Accepted values, in order of severity: "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "PANIC"
# Messages at and above the selected level will be logged.
logLevel = "WARN"
logLevel = "INFO"

[traefikLog]
# By default the Traefik log is written to stdout in text format.
# filePath = "/path/to/traefik.log"
# format = "json"

[accessLog]
# [accessLog]
# By default it will write to stdout and produce logs in the textual Common Log Format (CLF), extended with additional fields.
# filePath = "/path/to/access.log"
# format = "json"
[accessLog.filters]
statusCodes = ["300-302", "400-410"]

# [accessLog.filters]
# statusCodes = ["300-302", "400-410"]

# Entrypoints to be used by frontends that do not specify any entrypoint.
# Each frontend can specify its own entrypoints.
Expand Down Expand Up @@ -272,15 +271,27 @@ defaultEntryPoints = ["http", "https"]
#
# caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"

# Preferred chain to use.
#
# Optional
# Default: empty
#
preferredChain = "ISRG Root X1"

# KeyType to use.
#
# Optional
# Default: "RSA4096"
#
# Available values : "EC256", "EC384", "RSA2048", "RSA4096", "RSA8192"
#
# KeyType = "RSA4096"
KeyType = "RSA2048"

# Use a TLS-ALPN-01 ACME challenge.
#
# Optional (but recommended)
#
[acme.tlsChallenge]

# Use a HTTP-01 ACME challenge.
#
Expand Down
11 changes: 5 additions & 6 deletions cloud/classic/wordpress/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ services:
traefik.port: 80
traefik.frontend.rule: Host:${DOMAIN}
traefik.frontend.entryPoints: http, https
traefik.frontend.redirect.entryPoint: https
# traefik.frontend.redirect.entryPoint: https

php:
build:
Expand All @@ -70,7 +70,7 @@ services:
restart: unless-stopped

cpu_shares: 1024
mem_limit: ${PHP_MEMORY_LIMIT:-256m}
mem_limit: ${WP_MAX_MEMORY_LIMIT:-768M}

volumes:
- type: bind
Expand All @@ -80,7 +80,7 @@ services:
create_host_path: true

tmpfs:
- /tmp
- /var/cache

env_file: .env

Expand All @@ -92,11 +92,10 @@ services:

environment:
WORDPRESS_CONFIG_EXTRA: |
/* Alwatr Setting */
define('WP_CACHE', true);
define('WP_POST_REVISIONS', 2);
define('IMAGE_EDIT_OVERWRITE', true);
define('FORCE_SSL_LOGIN', false);
define('FORCE_SSL_ADMIN', false);
define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '256M'); # admin dashboard
define('WP_MEMORY_LIMIT', '${WP_MEMORY_LIMIT:-256M}');
define('WP_MAX_MEMORY_LIMIT', '${WP_MAX_MEMORY_LIMIT:-768M}');
25 changes: 13 additions & 12 deletions cloud/classic/wordpress/env/baran-demo.env
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
U2FsdGV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qIuq0vAoLFPlmabHR2QuKyXZC2
N3IWtv5HFcWek9otLK84vvX9EODPUx2hQcB1iJ1fzA5cXEbz0bYxJA6jibRVwig2
dC9gbjZPMgCWDihz8yGPAq2isCayFSrqvV/0MtIIqHGXJrTKIOci8iVjuTFzXKyw
Ppg3uiu+aqWVHUSyyOw2jJeU8aM+YcM7tvhVMp/2DGjABz01xXXNPeNld65IaC+i
It1/fS29MrVQvktlr0qegr+TqBHFKZN7U6RKXNkhooqKlBa0rBfK+Pl9hzZPsZch
5jJPZOI84pnyMLq8cx84ZZjA828d7k1t2Sdcy8BrGcpWvO47VF9fWrpcHrAcTADy
BSjGbq2+Aac80LQLNOL29lB/ihQ9W7FCcuUEhv8Ife+yYv43XKtEJL/FogELbygU
n5Zph4tY1WmiUusQ9a3vNlstjJNa4WQ+mb6wAQsWkFN5psMuAzFLFZKhO9rkMAa2
ZVQ/jqT9BOgihwezLw3CD78ZOIfm1bcP/z80K5/mNUWSpsb7BwizbzV4RpdxjHcL
27 changes: 14 additions & 13 deletions cloud/classic/wordpress/env/baran-www.env
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
U2FsdGVkX18KkJAZIC0TIstwx30crz6oa9k/bqFAP//Mk89v8t7osvfUDvNQU+hK
9M4BCjbC99i2sFkpXlbuHljfqr7BRaiRhvaPJSoFlaJvMSL7MZbhX3skyyPhIMP5
nf/kUkpk+4lDSBPHK3ROyu2kAJJ7nI1oUQZWJqgAL+MDQOeQPpoSROlF4/TvXLNX
XE03aU5R+cjBCE2LoRFdXX6EMrkw9/Fdg4VZG4XdCsogWVtprmEJyfHjQIFhQux5
u3dulchSQlH61VTB/ghWKkO2omDazrR70c7JlaiaLitIF8cb4asbl5+TMdYsT96k
Ps4POlfSYGdPZOAK/03zAxM8G04J1n6ZavOboD0FRmWPr/Ytumjm4RPH9lodkPcH
Zc9Tk2GyHufvH6qIRefaBWa7t1Ygu8rwgKGAPw2oQf9flwyeWktEVSxBgM+MWHs1
A84/1M/N5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mcCHh
t2Knl0ZB32yqj18vmiIIzqaAkz1TIONgEuIi3KGZ2L9zXPJssL6fSK3tNAdvYEOB
+CFM+ze4S3em0LVhGnw6kftF2yt5WosXHzpxvt/gG0a+g5xw72uFfEDQHUjrrhR7
5WZ+fBJ0j6XuNsuEL67mWg==
25 changes: 13 additions & 12 deletions cloud/classic/wordpress/env/example.env
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
U2FsdGVkX18Brj+ujqJ3B3Dc4H+k81a7TS4+qemRKEy/fAEu6Z4PZ2ov40XVdIGR
ilC2hnTXhDhCYJn9+9FT9ib3tZcedNAmbkVcDWXX8f4295BtbLxuGT6N+FAJTNlz
fvlRD9WJt5H42ar91EiUWwDWFKzQnOKH7bt32lV8vF+SivBuYvzm8CXm4QRH/2Iu
dFsFodlEH1I0kdixI8/Oa9evWk5P0DbUjZbEvz3saYNBMkFrcEdqhn4WhdkTEOmW
aU3NEEWSYe0J7SvSFFFSp0tkDRZ6ISHEE2ulFzIuxUSwsjJYIWWQpQy0NtCTmjF2
GtIKq+tG/gdrGkhiSyQFUTq41oqBQZQjqIw971koi+qaRwOiwRLW4Oj5j1xHh9fS
ToGu/xRIA44vR4vYAIEM5wrO8vnB16w+yaVUoMeFHcqVwnCHYfn/YZh5vfM3Ugu2
Qd7Rq/Jjx9fPW9A4QFdgLTAmVgMHCfrclNj+vKmB4lm90klqJh5i1DmUaRXl6sch
OY4JYrA7OLPW7xNJAZOXA4eabEey79c/KnVENlkvq1NOcCsBXNEuTExTUCf2LLS3
Rlp96u03bbTFOA+DBEg7XXVE/lFnNhpMJZ9e7Gyad1B+d21Z0Er3HQKPvbY/W83T
J6M9+MZtbYp2DzPfq9PXCVVnxFzLKP40jOjjjPafXkk32iMY638XMY3F90L1cxVz
tGOpmJWNLqsteoxUd3RW8Fkk/9qH1g03TkuUO9wbQewCFhgkJpLLdoZ0D7lJy0fW
U2FsdGVkX190zRILV4MyovZSP6kAglpjW+vt0OKib2kGRW1wmTBt+ieVZpdvvpJG
Xh+Ac8zajjvuEYJoneYH0QfM5CInEEnzj+Kl7ChNVCDbFihVNGanoaVfFD19dKPV
/kUkcaLEE2vYgnWrCSOITHoHpva4wGt3S7v0mWPwk01e4A6YBvf1rB2K8+bOdOIQ
FDuXVw9dOw/GBn6inNz9H1FOlIG0np7s1tMyxaCi8catmE8gytNmZZOfJUZYgDZQ
w61cGpW7v8dULpICPDpkusqcPCnSU5L6zt36FGYXMTphxev+s0QQ72R3KkQFldfb
bw1FAo7OaFb/nE/+u0i/paNNvv5NHJ7d2Fn30PdzlgFKEaP+M+ke58/TIZQ06OQu
mbRrhNifzhMrAAlrBNOV3uaPriTCAjOMVBMD+JsLczSt+CME5jOx8xTTJDzrPeYy
XMTtY1j4VbB4JTtbsGC6LViQRYnPj1M8yLzNRpT12OnQISNIy6BCpDnMfTLSMS6r
SbradV6J36R2DV9Qib/umHtppEY+G4RHlaZgr5x3c57dyZQB9KwJb2wkYLEJVKs9
p+MwPSRIo/PLPqXSqHxvH+ThcPzptHjMgBTqOafpfP2DTKKKf/A/gMmBr+oeKJk0
lI2jGT3nfnnz6zJFncTuY7ObMcuJ2uMVRH/A61DCAeQ+OkwXFDW35fdwLotUoosg
0JC+ZYNoipXyxBmqwEl2U4huEZRxYU4o6T3hlf80xxpFZYE5FzaXugJ7o7FxnVxt
4XfJq3qRUQnPSrSi7y6ROAK0JmgVhAFZiU9yW2SVPzg=
13 changes: 0 additions & 13 deletions cloud/classic/wordpress/env/mashin-ro.env

This file was deleted.

13 changes: 13 additions & 0 deletions cloud/classic/wordpress/env/mashin.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
U2FsdGVkX1+rBa3AAHYiOoNZn+cdVRnt+BpAjfprOzloRTfMpbGvsMYqI8eqWNLs
rs2Laf5AsefAZJi4szLzkpoFiFK7BhSaHrrAxQ+XLp6ZYgYs9V9jN/VjYDll5PYk
F0rVbpwBGXjdlA6+b//yW3OOP0E1FzBClRAE3Rs0qUUoAmX7yLv5dvmIswEF42pr
JoV9G8U1aQwepdJAjJrypda9NdPOvvDjkNcycMWQiTZ4riMlcZhbukchkxG6JXQt
z3Fjf4ziMM13uBWDio6pVyg5t+FvdQdD0YduuJ9zi9ONymt62yhMlGtluNfbFW5E
7grXXRSDootYh/ZHs9cciHBoJEnA86G7VQv2PdrfT82PKy/rI+lbkQErTSVnzOB5
EucEgj5bXg6/Ee8KVUQ7UHEdBvcpKpDrvgdeQrI1qOt3ritu4HXa7H0RHRp1W84S
6wTtC3XYPYAr06d4OsuRLM7Q2+O+GcK+g6lsmfDanl1e9doBSqwBBaMYaY8wPnUR
9UR9IEzOHo0cnF87gVf7H9oQ7/XZZjjqfJr2IGF1I2zYIfNNkQXtO9fWQEIaDD8Z
gUkw2EjfFgxOyFQcZFuVOx59E45pafvK/f+JcmDWQYC7xR6bNMqmPQ03a/Qr50+2
wb8uK3x/bG7v6SJsE+iLLPBlXQ/4PCljBs6DYHhAWioAe3hcJjqcg2lkqgpU7iwa
g7/Rwz83Tubgqlbqz+zhdBwuRRdLZInSEfcRb6l/LnuS9J0M7ifJo5Q0jT99WEjG
2jj2FNMZBQRBSaQvh6fHPy7+6n2n6C3iSXUbZUuf7mGC3LSJi5n5/JUAc40GSBK3
15 changes: 15 additions & 0 deletions cloud/classic/wordpress/env/mdpedia-ar.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
U2FsdGVkX19C/JEz4lC6GlU3zA2bycwQ39H+uVScUhOB0ZFc2qB4PhXmqRQTJKBq
Ppg9pf8Ots7XrWSarFGEnscOvRLt42VItuE05HhbQdSw+u/cRGxi1G3GzGM/L9EV
uCbpxTMA2y74UeVGJLj5rLPPULgk0y6fWOX3Uw6VZKdZiwKfM5ncZFxh3pKfi7Ue
IPqS5FuvcAej/fxUGoTP8UwzPuPC3kKN9JInEhvSXrmkWV9gf94klUDNrZbZ12FM
5KB8Sb+qRLtAKDSuuXbO7/VPrjswjMrqjfCYSqwcQT1dWIv143FQmtjSTLzJBKZ+
HyalQHhq352Omz9EDKSPW4IsEoUJ14b0R22yXRF1s2IrABLH418mep467+7T64Ga
gOzznGfQiyitvRUU+yhcxseUOwMHxuTMTq55+m+B4QslNrJk2ywJEu8KmkfYm/qG
D6eiUHkyxOfCGC8LPxGxlhxPDscb7NQgK2xF+1i07LvaksufIcgjZkLSP3X0VIxe
T4TmKT90OiAFqHuQRqodr/QhVzHxV9+OxhDsGbSqDZHJL0OzOPTF0xJrHxy4qva4
peF1qzuz9kI97TQ1sy3S/nIw6+u8+oBWF+5Pi/1plm+yCs8A3CjRBtbu7ylii1PK
867yU9myGPFU9hDQVP/Lo3v+fpjM3Swb8VXffTW3xKyO7r7v1REV5NR+0S5PDtMj
2UhTwdDl0PD4wct5ysrJ4ubwcfrpbcCJL3bySPoBGD+ZDv78V2onGpVyfRD+78QP
nk8IYoyflby0U2R6TTiXkZP1Qdh9lGfLw063A9V0zr2raLniA/n/EEyQ2JsyuPVA
5I+gEinHhGz4rVE3dja8LJZCo5XIMujt5ietX+SebSNYP/EI1iJTMchBCmhL45Go
2C1/Qdp3DKYVsBq1oS63+w==
15 changes: 15 additions & 0 deletions cloud/classic/wordpress/env/mdpedia-en.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
U2FsdGVkX19h4RVo26Pj9CqoJ2wCJUBwEIwLEFBazKac4MJhj++gAp0Zj2tA0wIe
mNrK84RPs88hMT4ylsrWyiW8fS1+0Nxhxz4LUu2VOBcBZ3538q3kHXIlIOMNKyUW
ghzkWujLmg4vlGLVprCr+/6aqMMKq6zGkId7/B6NOEhue1IRAZmcgEvUv0ws2i1+
+6ixkYSt0pNCf1Q025IAEJX33VJmj6O+MIX8DZ+e8I1i7Zq0KULImL602sFqvjpq
2fw/WbCBOEnfapVx93HnlW2H++t0zvFaH3dVbQtfSmPSv29fT86nlSNOCHdgXpHh
svmPQC7bw1wKpF+fw2DSikqFPpci06kXxj+68xPNxNHBf/Jj+3G2VKE/qCeUol5k
Sp1qix2VKxPtR8fLn2VFqGkpS2gjel/6VICF61Z9PTgtLCem2qGy1brF3FwfrPVn
D//j+1r8v6v84RJTuPPcebF5ps+AMupG/RK6uBeklFJ0XwrVf5VJKTOeSNof7sEN
6frzNDb8+AmvTapZeRYDPM2mSIhGRCmiem8KbS+K2kRLvm4yiIJX2rZPtXssLNIr
kmDUuapDDMRQcg4x8VSeB6O9bqFLysyXuRbbCwXKG+8L5HcfXwNaerIt7XCJqBoZ
WcQhV89hXLoK8yeowgEUgjv21XD6xmUNWFgtqUAbR7VXl4QoVVcvdBSNmmvh8L+n
OYu0V0bpXTFR6ScBNNHpDaY+0ppJc9ng4krD4e6HwNiRij0EwzM8M13ZwHw8kEB5
egl5nhtta6gsekzmeZ9fGcMfRrdWhyNY1yhtreUap6+iMr92VhfKe+87Z2vFqyCL
sVf2KnmDO1++xC++v+J1Pn8sS1mgvCmz9FP8KILNk8ECp9JUAGU2RCbPqnXcrPnt
PgAAs6crDld6dYekqE4cWw==
15 changes: 15 additions & 0 deletions cloud/classic/wordpress/env/mdpedia-fa.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
U2FsdGVkX1/T9gOOM5WesVHE5Tz4egrm76m2AjAO95gvP0TGrBOE7tnT7Iq4eS31
mqpAqJ3KxNKSX2JiPs4w0KPYG4nUucwTRD4K5NGJo5e7wyX8fcwvTn90TVw2KGBO
LxPPF8EFM54abqWgdKwaFXeiiUUMAy+49aK2HoHafLSczBPCRZWlJKnM2Ea9L6P+
q9dFw9Se/aGLvRYdGRuKEBfFXtTKHv31dI/K4Ez+tag1Ot07918UVOJ4mhF4Fvoj
oUJ8+10hCaQYXxIj1VEv0dEI3/74CJ+5YSE1tfOEB/L7+QYLsQ2EIfOqCFu37m1M
n8oCJhqlrN4crSzWCH08UGfVZnww/dkvzlJVKGfAOJqCRJA3fdUOvBDFTuaWjsCj
m924XNYw2dfLBRH47WuXN69RB5SmD1roiq9wwTrCklKLCO67nVJqFdIJFN1ExOHu
Tm/SeohFDyefoD7vBdLQx5Mi0xuMWbV82nSB4rO8ItMnRSZtspTcAFR0xLeC27ck
rRySZLE4j4QYmNDRWYFuWV1rnG0fvOugUjyqvCDqGZxWHkX5bnwhkguRbb4Bw0oJ
iSCQWzyM5/73x0VHRb+Fl9ucgIKM9tQdVblwElV/Xlr28bb7oy86rRgfzA7PuosF
O17hyB4cSl98cbVkTam3ulqTNg6pB9HlYphAzzwFm3dQlwiM67jVoxI5OcYVbdFA
kiDu35ucTM8XJhT2uXqMBS4oH/mebdxoVO8WS1AdZQv6aNN4ccP1WpWzeynzSR/0
Gnc71pafmOQRfNbf58lrdaifNAbckPTt0ENunfr+Bq6BDcfVkYbehrTTnyWvCNbZ
6KrCjSrFkR2ROi0l172MNAKP/VVP8HDBiwnpaeVyeLiP/2/ueRWG35MGLuUSvIJx
W1u2sMXKocwMJO0olXe4+A==
13 changes: 7 additions & 6 deletions cloud/classic/wordpress/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,17 @@ http {

index index.html index.php;

set_real_ip_from 172.16.0.0/12;
#set_real_ip_from 10.0.0.0/8;
#real_ip_header X-Real-IP;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
set_real_ip_from 172.0.0.0/10;
set_real_ip_from 10.0.0.0/10;

limit_req_zone $binary_remote_addr zone=req_zone:10m rate=400r/s;
limit_req_zone $binary_remote_addr zone=req_zone:10m rate=200r/s;
limit_req_status 503;
limit_req_log_level notice;

limit_req zone=req_zone burst=1200;

fastcgi_cache_path /var/cache/fastcgi
levels=1:2
Expand Down Expand Up @@ -128,9 +132,6 @@ http {
add_header X-Cache $upstream_cache_status;
add_header X-Skip-Cache $no_cache; # for debug

# limit request disabled behind edge proxy
limit_req zone=req_zone burst=150 nodelay;

location / {
# This is cool because no php is touched for static content.
try_files $uri $uri/ /index.php$is_args$args;
Expand Down
3 changes: 3 additions & 0 deletions cloud/classic/wordpress/php/fix-permition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ chown www-data:www-data -R $data
find $data -type d -exec chmod 755 {} \;
find $data -type f -exec chmod 644 {} \;
ls -lahF $data

chown www-data:www-data -R /var/cache
ls -lahF /var/cache
2 changes: 1 addition & 1 deletion cloud/classic/wordpress/php/php.conf.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ post_max_size = 100M
max_input_time = 600
max_input_vars = 3000
# after uplaod compreled max_input_time clock is stopped, max_execution_time clock started
max_execution_time = 600
max_execution_time = 120

0 comments on commit e6a5e4b

Please sign in to comment.