Advertisement
Guest User

Untitled

a guest
Aug 17th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. ssh root@<yourdomain.com>
  2. cd /var/www/example.com/web/
  3.  
  4. wget -O pydio.tar.gz http://downloads.sourceforge.net/project/ajaxplorer/pydio/stable-channel/6.4.2/pydio-core-6.4.2.tar.gz
  5. tar xzf pydio.tar.gz
  6. mv pydio-core-6.4.2 pydio
  7. rm pydio.tar.gz
  8. chown -R web1:client0 pydio
  9.  
  10. define("AJXP_LOCALE", "en_EN.UTF-8");
  11.  
  12. Workspace Label: Fill as you like, I prefer "WebFTP"
  13.  
  14. Connection
  15. Host: localhost
  16. Port: 21
  17. Path: /
  18. Secure: No
  19. Active: Yes
  20.  
  21. FTP Server Tweaks
  22. User Id: 1000
  23. Nothing more to change here!
  24.  
  25. Dynamic FTP
  26. Pass FTP Data through Auth driver: Yes
  27.  
  28. User Credentials
  29. User: leave empty
  30. Password: leave empty
  31. Session credentials: Yes
  32.  
  33. Filesystem Commons
  34. Recycle Bin Folder: empty(!)
  35. Leave the rest of the fields as they are.
  36.  
  37. Repository Commons
  38. Default Rights: Read and Write
  39. Alias: ISPConfigFTP
  40. Leave the rest of the fields as they are.
  41.  
  42. /*$REPOSITORIES[0] = array(
  43. "DISPLAY" => "Default Files",
  44. "DISPLAY_ID" => 430,
  45. [...]
  46. "index.lucene" => array(
  47. "index_meta_fields" => "tags"
  48. ),
  49. )
  50. ),
  51. );*/
  52. /*$REPOSITORIES[1] = array(
  53. "DISPLAY" => "My Files",
  54. "DISPLAY_ID" => 432,
  55. "DESCRIPTION_ID"=> 476,
  56. [...]
  57. "index.lucene" => array(
  58. "index_meta_fields" => "tags",
  59. "repository_specific_keywords" => "AJXP_USER",
  60. )
  61. )
  62. ),
  63. );*/
  64.  
  65. public function get_ispc_host($username) {
  66. // connect to ispc via remoting and read ftp user
  67. $server = '';
  68. $login = '<your remote user>';
  69. $pass = '<your remote user password>';
  70.  
  71.  
  72. $soap_location = 'https://pathtoispconfig:8080/remote/index.php';
  73. $soap_uri = 'https://pathtoispconfig:8080/remote/';
  74.  
  75. $client = new SoapClient(null, array('location' => $soap_location,
  76.  
  77. 'uri' => $soap_uri));
  78. try {
  79. //* Login to the remote server
  80. if($session_id = $client->login($login,$pass)) {
  81.  
  82. $check = $client->sites_ftp_user_server_get($session_id, $username);
  83. if($check) {
  84. $server = isset($check['ip_address']) ? $check['ip_address'] : $check['hostname'];
  85. }
  86.  
  87. if($client->logout($session_id)) {
  88. }
  89. }
  90. } catch (SoapFault $e) {
  91. }
  92.  
  93. return ($server != '' ? $server : 'localhost');
  94. }
  95.  
  96. public function isWriteable($path, $type="dir"){
  97. return true;
  98.  
  99. $parts = parse_url($path);
  100. [...]
  101. }
  102.  
  103. Enable Users: Yes
  104. Case Sensitive: Yes
  105. Guest Browsing: No
  106. Store Credentials in Session: Yes
  107.  
  108. Default Repository: WebFTP
  109. ACL:
  110. ---
  111. Check Read and Write for WebFTP
  112.  
  113. if(el.name != "userid" && el.name!="password" && el.name != "get_action" && el.name!="login_seed"){
  114.  
  115. if(el.name!="password" && el.name != "get_action" && el.name!="login_seed"){
  116.  
  117. <div class="dialogLegend" ajxp_message_id="ftp_auth.1">AJXP_MESSAGE[ftp_auth.1]</div>
  118.  
  119. <input type="hidden" name="FTP_HOST" value=""><input type="hidden" name="FTP_SECURE" value="FALSE"><input type="hidden" name="FTP_DIRECT" value="FALSE"><input type="hidden" name="FTP_PORT" value="21"><input type="hidden" name="CHARSET" value=""><input type="hidden" name="PATH" value="/web">
  120.  
  121. <div class="dialogLegend" ajxp_message_id="ftp_auth.1">AJXP_MESSAGE[ftp_auth.1]</div><input type="hidden" name="FTP_HOST" value=""><input type="hidden" name="FTP_SECURE" value="FALSE"><input type="hidden" name="FTP_DIRECT" value="FALSE"><input type="hidden" name="FTP_PORT" value="21"><input type="hidden" name="CHARSET" value=""><input type="hidden" name="PATH" value="/web">
  122.  
  123. <tr>
  124. <td align="right"><ajxp:message ajxp_message_id="ftp_auth.2">AJXP_MESSAGE[ftp_auth.2]</ajxp:message> </td><td colspan="3"><input type="text" name="FTP_HOST" style="width: 190px; padding:0px; margin-right: 10px;" class="dialogFocus"><ajxp:message ajxp_message_id="ftp_auth.8">AJXP_MESSAGE[ftp_auth.8]</ajxp:message> <input type="text" name="FTP_PORT" style="width: 25px; padding:0px;" value="21"></td>
  125. </tr>
  126.  
  127. <tr>
  128. <td colspan="4">
  129. <div class="dialogLegend" style="margin-top: 12px;" ajxp_message_id="ftp_auth.3">AJXP_MESSAGE[ftp_auth.3]</div>
  130. and ends with
  131. <td align="right"><ajxp:message ajxp_message_id="ftp_auth.7">AJXP_MESSAGE[ftp_auth.7]</ajxp:message> </td><td><input type="radio" name="FTP_DIRECT" style="width: 12px; padding:0px;" value="TRUE"><label style="display:inline-block;width:27px;">AJXP_MESSAGE[440]</label><input type="radio" name="FTP_DIRECT" style="width: 12px; padding:0px;" value="FALSE" checked><label style="display:inline-block;width:27px;">AJXP_MESSAGE[441]</label></td>
  132. </tr>
  133.  
  134. rm data/cache/*.ser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement