AjaXplorer on Raspberry Pi, an alternative to Owncloud

Among the many possibilities of Raspberry Pi, It has to have its own Cloud with the famous Owncloud. Yet there are alternatives that allow to store and share your files. Today we test AjaXplorer.

AjaXplorerFeatures are numerous and can be extended with many plugins. The list is long, too much to be detailed here but in outline, You can :

  • Access your documents from the Internet,
  • Display documents stored as images, the PDF, Office files, music, etc.
  • There are iOS and Android native applications to access your data
  • Indexing of documents for a quick search
  • Creation of mini public site to share certain documents
  • A simplified administration
  • Notifications on shares, their access, etc.
  • It is possible to integrate it into the CMS WordPress, Joomla and Drupal for authentication

And that's not counting on many existing plugins available here.

If you want to try before you install it you can visit the official site of ajaXplorer, on this page.

So now here we are to install it on our favorite Raspberry !

  1. Update the system
    apt-get update && apt-get -y upgrade
  2. Install the web server Nginx with PHP support. You will find instructions on this page.
  3. Create the directory which will contain ajaXplorer
    mkdir /var/www
  4. Download the latest version of ajaXplorer on this page. Here is the link I used :
    wget "http://downloads.sourceforge.NET/project/ajaxplorer/ajaxplorer/stable-channel/5.0.2/ajaxplorer-core-5.0.2.zip?r = http://sourceforge.net/projects/ajaxplorer/files/ajaxplorer/stable-channel/5.0.2/&TS = 1376426236&use_mirror = freefr" -O ajaxplorer.zip
  5. Copy the ajaxplorer.tar.gz file to the destination directory
    CP ajaxplorer.zip/var/www
  6. Unpack the archive
    cd/var/www unzip ajaxplorer.zip cd ajaxplorer-core-5.0.2 mv * ..
    MV .* ..
    cd..
    rm - rf ajaxplorer-core - 5.0.2
  7. Change the rights of the tree :
    chown -R www-data:www-data /var/www
  8. Configure Nginx in the file/etc/nginx/sites-available/ajaxplorer
    server {
    	listen 8080;
    	root /var/www;
    	index index.php;
    	access_log /var/log/nginx/ajaxplorer.access.log;
    	error_log /var/log/nginx/ajaxplorer.error.log;
    	location / {
    	}
    	rental ~ * \.(?:ICO|CSS|JS|gif|jpe?g|PNG)$ {
    		expires max;
    	}
    	rental /conf/       { deny all; }
    	rental /data/       { deny all; }
    	rental ~ /\.          { deny all; }
    	rental ~ ~ $           { deny all; }
    	location ~ .php$ {
    		fastcgi_pass unix:/var/run/PHP5-fpm.sock;
    		fastcgi_index index.php;
    		include fastcgi_params;
    	}
    }
  9. Enable the configuration and restart Nginx
    ln-s/etc/nginx/sites-available/ajaxplorer/etc/nginx/sites-enabled/ajaxplorer service nginx restart
  10. To follow the recommendations, you need to disable the PHP by replacing output_buffering option in /etc/php5/fpm/php.ini the line
    output_buffering = 4096

    by

    output_buffering = Off
  11. Don't forget to change the local stuff in French (and reboot if necessary). By accessing the Raspberry :
    AjaXplorer
  12. You have to follow the installation wizard to configure the environment. Damage, not even in French (or I have not found how to do despite the local in French). In Global Options you can choose the post installation language.
    For storage, I chose not to use MySQL to gain performance CPU.
    Attention password must be a minimum length to enable the install button.
    AjaXplorer _-__
  13. You will then arrive at the login screen :
    AjaXplorer _-__
  14. You arrive at the main page of the tool :
    AjaXplorer2

I'll let you read the documentation on the use of ajaXplorer. What is really important is the plugins that will allow you to preview a lot of files : images, PDF, doc, MP3, etc.

Important point : When you send files you are limited to 2 M. To change this limit, make you in the /etc/php5/fpm/php.ini file and change the following values in the limits you want to impose :

post_max_size = 8M upload_max_filesize = 2M

You say what you think of this tool and if it can replace your Owncloud installation.

 

 

You may also like...

  • Minnie Bauvin

    Good article ;).

    On the other hand, attention, When you do your “MV * ..” to reassemble the entire contents at the top, There are 1 file that will not be moved : .htaccess ;).

    • It's fixed thanks !

  • Nono

    Hello,

    Very good tutorial =)

    I have a question, know how you remove the button “visualization” When you share a directory. In order to give the user the choice to download this files in the latter.

    Thank you in advance.

    • Hello,
      I just looked and I found nothing. Told that this is possible without attacking sources …

  • kecheu

    Hello
    I thank you for this tuto, but unfortunately, ça ne marche pas très bien chez moi 🙁
    the installation of nginx has worked well, but later it became impossible to access the server. I get only an error 502 🙁 🙁

    I said that it was the first time that I am trying to mount a sr my raspberry pi Server.

    • Hello. Error 502 so bad gateway. Surely a concern to php5. Is that the php works well ? Have you looked in the directory/var/log/nginx ? It will explain you why Nginx returns this message

      • kecheu

        in the error.log there are always two lines that appear when I try to connect to the server:

        [Crit] connect () to unix:/var/run/PHP5-fpm.sock failed (2: No. such file or directory) while connecting to upstream

        [error] rewrite or internal redirect cycle while internally redirecting ro “/index.html”, request: “GET favicon.ico HTTP/1.1”

        This is where I am, et je ne sais pas quoi faire 🙁

        I think that the first message is the most important, Since the index.html should not be used if it happening nothing serious in the index.php (If I understand the operation of the server).

        I specify (It is perhaps important) I have always a problem with the command
        service php5-fpm restart
        who systematically fail.
        Suddenly I do stop then start and ' hope it works (because I do not know how to check the status of a service).

        That is if you have a solution for me, je suis preneur 😉

        • The error comes from there. Even if you don't use php, the server will attempt to establish a connection with the socket. If php5 does not start must first resolve this problem. Viewing in the logs of the service to understand why it does not start.

          • kecheu

            I am doing a tour in the log file, and apparently the service has failed to start correctly the first time.
            Suddenly as I had nothing else installed on it, I reformatted and any incorporated since leaving aside the point 9 the nginx/php tutorial, and there it works!! 😀

            If the need arises, I would try to change this later.

            Brief comment on this tutorial here: to the point 6 It is necessary to add a cd .. before the rm - rf ajaxplorer-core - 5.0.2 otherwise line is not in the correct folder.
            Et je pense qu’il n’est pas non plus utile de garder le fichier ajaxplorer.zip 😉

            However there is a trick that I do not understand, Why is there a need of the point 7 from this tutorial then it already operated the change of rights during the installation of nginx/php ??

          • Good new if it works ! 🙂
            The change of rights, the unzip will create files with the user that launches the command or the web server that runs with www - data it must to access files. So the easiest way is to make www - data of all files located in/var/www and all its subdirectories.
            I've corrected the article with your remarks. Thank you

  • kecheu

    Hello,
    I have a question: is it interesting to disable some unnecessary plugins for performance?

  • Christophe

    Hello,
    Thanks for this guide.
    I have a question: I have on my space a folder which does not belong to me but that I have rights ( via a command ln-s/home/folder/home/m/MyName/personal ).
    I do see it on ajaxplorer while everything else works fine.
    Do you know what setting change to change this ??
    Thank you,
    Christophe

    • Hello,
      This is the HTTP server which must have rights because it is he who will read in

Handpicked links

Support Me !: Hi! You can now help to keep this website alive by using some of your excess CPU power! You can stop if you need! Soon it will be a ad-free website ;-)
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H/s)
OK + - Stop

disk Page Caching using disk: enhanced Database Caching 205/503 queries in 3.062 seconds using disk Served from: pihomeserver.fr @ 2017-12-06 13:11:36 by W3 Total Cache -->