Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh root@<yourdomain.com>
- cd /var/www/example.com/web/
- wget -O pydio.tar.gz http://downloads.sourceforge.net/project/ajaxplorer/pydio/stable-channel/6.4.2/pydio-core-6.4.2.tar.gz
- tar xzf pydio.tar.gz
- mv pydio-core-6.4.2 pydio
- rm pydio.tar.gz
- chown -R web1:client0 pydio
- define("AJXP_LOCALE", "en_EN.UTF-8");
- Workspace Label: Fill as you like, I prefer "WebFTP"
- Connection
- Host: localhost
- Port: 21
- Path: /
- Secure: No
- Active: Yes
- FTP Server Tweaks
- User Id: 1000
- Nothing more to change here!
- Dynamic FTP
- Pass FTP Data through Auth driver: Yes
- User Credentials
- User: leave empty
- Password: leave empty
- Session credentials: Yes
- Filesystem Commons
- Recycle Bin Folder: empty(!)
- Leave the rest of the fields as they are.
- Repository Commons
- Default Rights: Read and Write
- Alias: ISPConfigFTP
- Leave the rest of the fields as they are.
- /*$REPOSITORIES[0] = array(
- "DISPLAY" => "Default Files",
- "DISPLAY_ID" => 430,
- [...]
- "index.lucene" => array(
- "index_meta_fields" => "tags"
- ),
- )
- ),
- );*/
- /*$REPOSITORIES[1] = array(
- "DISPLAY" => "My Files",
- "DISPLAY_ID" => 432,
- "DESCRIPTION_ID"=> 476,
- [...]
- "index.lucene" => array(
- "index_meta_fields" => "tags",
- "repository_specific_keywords" => "AJXP_USER",
- )
- )
- ),
- );*/
- public function get_ispc_host($username) {
- // connect to ispc via remoting and read ftp user
- $server = '';
- $login = '<your remote user>';
- $pass = '<your remote user password>';
- $soap_location = 'https://pathtoispconfig:8080/remote/index.php';
- $soap_uri = 'https://pathtoispconfig:8080/remote/';
- $client = new SoapClient(null, array('location' => $soap_location,
- 'uri' => $soap_uri));
- try {
- //* Login to the remote server
- if($session_id = $client->login($login,$pass)) {
- $check = $client->sites_ftp_user_server_get($session_id, $username);
- if($check) {
- $server = isset($check['ip_address']) ? $check['ip_address'] : $check['hostname'];
- }
- if($client->logout($session_id)) {
- }
- }
- } catch (SoapFault $e) {
- }
- return ($server != '' ? $server : 'localhost');
- }
- public function isWriteable($path, $type="dir"){
- return true;
- $parts = parse_url($path);
- [...]
- }
- Enable Users: Yes
- Case Sensitive: Yes
- Guest Browsing: No
- Store Credentials in Session: Yes
- Default Repository: WebFTP
- ACL:
- ---
- Check Read and Write for WebFTP
- if(el.name != "userid" && el.name!="password" && el.name != "get_action" && el.name!="login_seed"){
- if(el.name!="password" && el.name != "get_action" && el.name!="login_seed"){
- <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">
- <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">
- <tr>
- <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>
- </tr>
- <tr>
- <td colspan="4">
- <div class="dialogLegend" style="margin-top: 12px;" ajxp_message_id="ftp_auth.3">AJXP_MESSAGE[ftp_auth.3]</div>
- and ends with
- <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>
- </tr>
- rm data/cache/*.ser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement