TurnKey Linux Virtual Appliance Library

Back to Ajaxplorer

OK, I needed a web-based file sharing solution for in real life. I was looking for a dropbox solution, as discussed in other threads, but I found myself very happy with ajaxplorer. I've attached a patch, completed in collaboration with James Domchick and David Horn at Chelsea Schoool; the patch is intended for TKL LAMP.

Here's the conf:

#! /bin/bash -ex
####Set Hostname
HOSTNAME=ajaxplorer
echo $HOSTNAME > /etc/hostname
sed -i "s|127.0.1.1 \(.*\)|127.0.1.1 $HOSTNAME|" /etc/hostname
#Get Ajaxplorer
wget http://downloads.sourceforge.net/project/ajaxplorer/ajaxplorer/stable-ch...
#Unzip and move Ajaxplorer
unzip ./ajaxplorer-core-4.0.4
mv ajaxplorer-core-4.0.4 /var/www/ajaxplorer
chown -R www-data:www-data /var/www/ajaxplorer
a2enmod ssl
####Install from Repos
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y \
-o DPkg::Options::=--force-confdef \
-o DPkg::Options::=--force-confold \
install php5-gd php5-cli
a2ensite default-ssl
service apache2 reload

Jeremy's picture

Awesome work

Thanks Rik. I've been wanting to test this but never got around to installing. This patch will certainly make it easier.

Out of interest, how does it compare to eXtplorer (as installed by default in the fileserver appliance). A few have suggested that it should be used to replace eXtplorer in the next TKL version. Any thoughts?

Alon Swartz's picture

AjaXplorer in TurnKey 12.0 FileServer/TorrentServer (maybe)

I've been evaluting AjaXplorer to replace eXtplorer in the upcoming 12.0 release, and I really like it. It took a while to figure out how to configure multi authentication (serial and samba), as well as repositories for "storage" and the users home directory and the apropriate default role.

Everything works really nicely, except for a bug that I reported, which doesn't allow write access to the user's home directory (though everything works for subfolders).

Hopefully we'll get a patch that fixes the issue before the release...

Alon Swartz's picture

Good news, we have a workaround...

Good news. We have a workaround for the issue I mentioned, so it looks like we're moving to AjaXplorer...

Drew Ruggles's picture

Crikey I just spent a couple

Crikey I just spent a couple hours trying to figure out what was wrong with my configuration with Ajaxplorer when I saw this. What's the workaround?

I have it set up to share a Documents folder on a host and for the life of me, can't figure out how the permissions work. Where's the "Ajaxplorer" users on my TKL server? I get the sense it's a permissions issue, and I've found it very difficult to follow the ESL documentation.

Any suggestions?

thanks.

Drew

Drew Ruggles's picture

Great... Now I'm stuck with

Great... Now I'm stuck with an XML parse error, and don't know what to do, next:

<tree>
  <message type="ERROR">
    Cannot create recycle bin folder. Please check repository configuration or that your folder is writeable!
  </message>
</tree>

Jeremy's picture

Sorry for slow response...

I got the impression that the workaround to the issue was already included in TKL v12. I haven't ever used Ajaxplorer so I don't really know. The old eXtplorer used to just use the webserver account (i.e. www-data) but I don't think Ajaxplorer does that (because that was part of the reason why eXtploere was limited.

My suspicion would be that it uses Samba accounts... But I'm only basing that on a guess...

Perhaps you could point to the docs that you are struggling with?

Also the 'XML parse error' definately sounds like permissions to me...

Ajaxplorer

Can you please guide me how can i configure ajaxplorer multi authentication (serial samba).

 

Thanks

L. Arnold's picture

Same problem with a Fresh Install (can't add folders or files)

This is RE Squeeze 12, Fileserver.

I am striking out with AjaXplorer getting a user to be able to add either a folder or a file.

I've played around with php.ini for CGI and Client folders

also the Settings within AjaXploer ADMIN

I even changed the Ownership from Root to www-data:www-data

No luck.  Any thoughts?

Sorry I didn't Speak up Sooner

I suppose there's all kinds of minds. This particular mind I couldn't get to interface with eXtplorer. When that happens, I tend to look to documentation and a supportive community for guidance. Finding very little documentation and a lack feedback channels for eXtplorer, I have to admit I stopped trying. Wading through a difficult interface I can and do live find with. But those other ingredients are so integral to me.

That being said, I haven't had any difficulty with Ajaxplorer; so, I can't speak to the important stuff, the community and the documentation :)

On my end, I appreciate the polish and intuitiveness of ajaxplorer.


Alex Bassett's picture

Thanks Rik

Thanks for this Rik I have been looking for something like this so that i can set up a family photo cauldron , where all my family members can drop photo's and video's and pick up ones from other family members.

Now all that is needed for them is an ip address  username and password which is the next thing to set-up.


Force HTTPS

Hey guys,

Thanks for all of the great work you do.  It is greatly appreciated by all of us who benefit from it.  

I'm working on setting up a TKL PDC and I'm playing with the Ajaxplorer feature in hopes that it might serve as a secure alternative to SFTP for data file transfers from offsite users.  It would be nice to avoid the headache of having to walk remote users through the installation and use of WinSCP to do a single file transfer.  

I've looked at a couple different solutions (php, .htaccess) but thought it might be best to copy whatever the server is using to redirect to https for webmin.  

Can you either point me to the location of the file where that's done or maybe give me a hint on how to modify the .htaccess file in www/ajaxplorer?  

Thanks in advance for any help you can provide.  

B

Jeremy's picture

Webmin uses it's own miniserver

And as such the config for that is not relevant. AFAIK in the Fileserver appliance AjaxExplorer runs under Apache. phpMyAdmin is served by Apache too so you could look at how that is done in the LAMP appliance (or one of the other appliances that includes phpMyAdmin).

However I have done it before with a patch I created. I'm not sure whether it's necessarily the best way to do it but here's what I did:

Enable mod-rewrite:

a2enmod rewrite

And add this to the .htaccess

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

That's a generic way of doing it, so I'm sure you could replace the 'https://%{HTTP_HOST}%{REQUEST_URI}' with 'https://<full-url-to-ajaxexplorer>'.

I have read that ideally it is preferable to put config in the site config (in /etc/apache2/site-available/site-name) rather than in an .htaccess file (when you have full admin rights to the server. But the above worked for me...

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)