pull/109/head
midoks 5 years ago
parent c59d341e6f
commit c726772ce7
  1. 2
      plugins/php/conf/php5.ini
  2. 6
      plugins/php/index.py

@ -38,7 +38,7 @@ always_populate_raw_post_data=-1
file_uploads = On
upload_tmp_dir = "/tmp"
upload_tmp_dir = "/tmp/upload"
upload_max_filesize = 2M
max_file_uploads = 20

@ -214,6 +214,12 @@ def initReplace(version):
os.mkdir(session_path)
if not mw.isAppleSystem():
mw.execShell('chown -R www:www ' + session_path)
upload_path = '/tmp/upload'
if not os.path.exists(upload_path):
os.mkdir(upload_path)
if not mw.isAppleSystem():
mw.execShell('chown -R www:www ' + upload_path)
return file_bin

Loading…
Cancel
Save