Pydio Installation Guide

    • OMV 2.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Pydio Installation Guide

      Hi guys,

      Anybody in here install Pydio on their system without using Docker?
      If you do, please share.

      I found an old tutorial guide here:
      linuxpluse.wordpress.com/2013/…penmediavault-ajaxplorer/

      pydio.com/en/docs/kb/system/installing-debiannginx

      translate.google.com/translate…ie-a118439398&prev=search
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 4 times, last by tinh_x7 ().

    • Disclaimer: before proceed, please backup your OMV or data.
      Nobody is responsible for your data loss.

      Pydio requirement: PHP 5.5.9 or later

      1. Ensure you have Nginx (websites) plugin and MySQL are installed.
      2. Open MySQL>>>create a database call: pydio >>>create a user call: pydio
      3. Grant user pydio access to pydio's database.
      4. Ensure to write down your username and password for your pydio user.
      5. Exit MySQL database.


      6. Create a self-cert for your site if applicable, or use your existing certificate such as Let's Encrypt.
      7. Go back to OMV GUI>>create a pool in Nginx service>>>create it as "pool_pydio'
      8. Create a pydio site under 'Servers' tab and enable appropriate options from the examples.


      9.
      apt-get install php5 php5-fpm php5-mysql php5-curl php5-json php5-gd php5-intl php5-mbstring php5-xml php5-zip php5-exif php5-apcu php5-cli php5-mcrypt apt-transport-https

      apt-get update
      10.

      1.nano /etc/php5/fpm/php.ini

      Copy & paste the below into the file:

      2. file_uploads = On
      post_max_size = 20G
      upload_max_filesize = 20G
      max_file_uploads = 20000
      output_buffering = Off

      Save the file:

      Ctrl + O

      3. /etc/init.d/php5-fpm restart




      11. You can either download the package & install manually or use the following steps to add it to repo for Debian Jessie:

      Display Spoiler
      # Pydio Community repositories
      echo "deb download.pydio.com/pub/linux/debian/ jessie-backports main" > /etc/apt/sources.list.d/pydio.list
      wget -qO - download.pydio.com/pub/linux/debian/key/pubkey | sudo apt-key add -


      sudo apt-get install apt-transport-https
      sudo apt-get update

      sudo apt-get install pydio
      sudo apt-get install pydio-all




      Debian Wheezy (OMV2):

      Display Spoiler
      DEBIAN 7 (WHEEZY)


      Ensure that wheezy-backports repositories are enabled in /etc/apt/sources.list :

      deb httpredir.debian.org/debian wheezy-backports main
      deb-src httpredir.debian.org/debian wheezy-backports main
      Configure the pydio repository as well as its dependencies

      # DotDeb
      echo "deb packages.dotdeb.org wheezy-php56 all" > /etc/apt/sources.list.d/dotdeb.list
      echo "deb-src packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list
      wget -qO - dotdeb.org/dotdeb.gpg | sudo apt-key add -

      # Pydio Community & Enterprise repositories
      echo "deb download.pydio.com/pub/linux/debian/ wheezy-backports main" > /etc/apt/sources.list.d/pydio.list
      echo "deb API_KEY:API_SECRET@download.pydio.com/auth/linux/debian/ wheezy-backports main" > /etc/apt/sources.list.d/pydio.list
      wget -qO - download.pydio.com/pub/linux/debian/key/pubkey | sudo apt-key add -
      Now update all repositories, with https support if not already installed

      sudo apt-get install apt-transport-https debian-keyring debian-archive-keyring
      sudo apt-get update
      And finally install pydio

      sudo apt-get install pydio
      sudo apt-get install pydio-all




      Manual Installation:

      note: UUID is your hard drive ID number. ie. /media/54bf67db-da31-4c50-bb3c-27140944b223/

      1. cd /media/UUID/www/

      2. Download Pydio package: wget https://download.pydio.com/pub/core/archives/pydio-core-7.0.3.tar.gz

      3. Extract Pydio:

      Source Code

      1. tar -xzf pydio-core-7.0.3.tar.gz
      2. mv pydio-core-7.0.3 pydio
      3. mv pydio /media/UUID/www/
      4. cd /media/UUID/www/pydio
      5. chown -R www-data:www-data /media/UUID/www/pydio



      12. Copy & paste the following codes into the 'extra options' space:
      Display Spoiler

      # un-comment the below line & change the Path if you use the repo installation method
      # root /(pydio webroot path);
      index index.php;

      ### If you changed the maximum upload size in PHP.ini, also change it below
      client_max_body_size 20G;

      # Prevent Clickjacking
      add_header X-Frame-Options "SAMEORIGIN";

      # This settings are destined to limit the supported crypto suites, this is optional and may restrict the availability of your website.
      #ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
      #ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

      add_header Strict-Transport-Security "max-age=16070400; includeSubdomains";

      keepalive_requests 10;
      keepalive_timeout 60 60;
      access_log /var/log/nginx/access_pydio7.log;
      error_log /var/log/nginx/error_pydio7.log;

      client_body_buffer_size 128k;
      # All non existing files are redirected to index.php
      if (!-e $request_filename){
      # For old links generated from Pydio 6
      rewrite ^/data/public/([a-zA-Z0-9_-]+)$ /public/$1?;
      rewrite ^(.*)$ /index.php last;
      }

      # Manually deny some paths to ensure Pydio security
      location ~* ^/(?:\.|conf|data/(?:files|personal|logs|plugins|tmp|cache)|plugins/editor.zoho/agent/files) {
      deny all;
      }

      # Forward PHP so that it can be executed
      location ~ \.php$ {

      fastcgi_param GATEWAY_INTERFACE CGI/1.1;
      fastcgi_param SERVER_SOFTWARE nginx;
      fastcgi_param QUERY_STRING $query_string;
      fastcgi_param REQUEST_METHOD $request_method;
      fastcgi_param CONTENT_TYPE $content_type;
      fastcgi_param CONTENT_LENGTH $content_length;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_param SCRIPT_NAME $fastcgi_script_name;
      fastcgi_param REQUEST_URI $request_uri;
      fastcgi_param DOCUMENT_URI $document_uri;
      fastcgi_param DOCUMENT_ROOT $document_root;
      fastcgi_param SERVER_PROTOCOL $server_protocol;
      fastcgi_param REMOTE_ADDR $remote_addr;
      fastcgi_param REMOTE_PORT $remote_port;
      fastcgi_param SERVER_ADDR $server_addr;
      fastcgi_param SERVER_PORT $server_port;
      fastcgi_param SERVER_NAME $server_name;

      try_files $uri =404;
      fastcgi_pass unix:/run/php/php5-fpm.sock ;
      }

      # Enables Caching
      location ~* \.(ico|css|js)$ {
      expires 7d;
      add_header Pragma public;
      add_header Cache-Control "public, must-revalidate, proxy-revalidate";
      }




      13. service php5-fpm restart
      service nginx restart

      14. if you enable SSL, then go to: https://local.ip:SSL port to start your installation.
      15. Once you reach the Pydio installation page, it'll display the status of service or error that you may have.
      If you do have an error, then you need to fix it before continue.
      Next, 'Click Here to Continue'
      16. Enter your MySQL user name and password when it prompts.
      17. create an admin username and password when it prompts.
      18. log into Pydio using your username and password.
      19. Do a port forwarding on your router if you want to access it remotely to your site.


      Optional:

      Change language to US:
      1. Go to: /media/UUID/pydio/conf/bootstrap_conf.php
      2. Change // define ( "AJXP_LOCALE", "en_EN.UTF-8") to: define("AJXP_LOCALE", "en_US.UTF-8");
      3. service php5-fpm restart
      4. service nginx restart

      Auto Redirect http to https:

      1. nano /media/UUID/www/pydio/conf/bootstrap_conf.php

      2. Remove "//"

      define("AJXP_FORCE_SSL_REDIRECT", true);


      Optional:

      Pydio Booster (increase your server performance): pydio.com/en/docs/v7/install-pydio-booster
      Images
      • create Pydio database_1.png

        8.16 kB, 336×175, viewed 301 times
      • create Pydio user_2.png

        16.84 kB, 645×445, viewed 329 times
      • grante Pydio user access_3.png

        33.97 kB, 627×443, viewed 368 times
      • Nginx_Pydio's pool_4.png

        56.38 kB, 418×725, viewed 395 times
      • Server settings_5_1.png

        67.2 kB, 512×857, viewed 375 times
      • Server settings_5_2.png

        57.64 kB, 509×847, viewed 363 times
      • About screen.png

        781.04 kB, 1,589×616, viewed 370 times
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 48 times, last by tinh_x7 ().

    • Unless you have some needs for advanced features, can't think of any at the moment, why not install eXtplower plug-in and be done?

      But thanks you for all your efforts anyhow, good write up.

      Sent from my phone
      omv 3.0.56 erasmus | 64 bit | 4.7 backport kernel
      SM-SC846(24 bay)| H8DME-2 |2x AMD Opteron Hex Core 2431 @ 2.4Ghz |49GB RAM
      PSU: Silencer 760 Watt ATX Power Supply
      IPMI |3xSAT2-MV8 PCI-X |4 NIC : 2x Realteck + 1 Intel Pro Dual port PCI-e card
      OS on 2×120 SSD in RAID-1 |
      DATA: 3x3T| 4x2T | 2x1T
    • I installed it last night, the GUI is look nice and have a lot of features.
      You can mount your external drive or your existing samba/cif share to it similar like OwnCloud.
      It's easier than Seafile.

      Note: iOS app only play mp4 file that is less than 90MB.

      Update: some streaming videos are not playing.
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 5 times, last by tinh_x7 ().

    • Pydio installation guide

      hi tinh_x7,

      since the only available image for an Odroid c2 is the openmedivault-erasmus, i tried to follow your guide to install pydio...

      1) i was able to install mysql and nginx plugins...

      2) i used this /media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/ to cd into my mounted drive

      3)i was able to download and unpack to pydio core tar.gz file

      4) however when i reached the step..mv download /media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/

      the terminal gave me this message....mv: 'download' and '/media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/download' are the same file

      5) i proceeded with the next step .... cd /media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/download

      the terminal gave this message...
      -bash: cd: /media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/download: Not a directory

      6) proceeding to ... mv download pydio , the terminal gave no errors

      7) there where no errors too on the command...chown -R www-data:www-data /media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/pydio

      i restarted php5-fpm and nginx...


      the problem is when i tried the access the web ui of pydio using local.ip:SSL port (suing my local ip and port that i chose,) I get a 403 forbidden ERROR

      searching through google... i tried to chmod using either 777, 755, 750, and chown -R www-data and restarted nginx and php5-fpm... the 403 forbidden error is still there...


      I am not so knowledgeable with linux so please bear with me...

      thank you very much for your time and assistance :)
    • In step 4, the files that you tried to move to .........../www/download are the same b/c the 'download' folder already there.
      Delete the 'download' folder in /www/ and rename 'download' from outside of your directory such as 'pydio' then move it into there.

      Rename/move = mv

      I've revised the instructions.

      Regarding 403 Forbidden error, double check the steps again.
      Are you able to log in into http?
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 4 times, last by tinh_x7 ().

    • pydio installation guide

      thanks for the prompt reply tinh_x7,


      how do i go about removing the 'download' folder from /www/?

      more so how do i rename the 'download folder from outside my directory???

      if i cd into my directory and do ls -l... this is the output on the terminal...



      Display Spoiler
      root@openmediavault:/media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www# ls -l

      total 4

      drwxr-sr-x 7 root users 4096 Jun 27 19:07 pydio-core-6.4.1






      Display Spoiler
      root@openmediavault:/media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www# cd pydio-core-6.4.1

      root@openmediavault:/media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/pydio-core-6.4.1# ls -l

      total 84

      -rw-r--r-- 1 root root 1176 Apr 11 07:37 base.conf.php

      -rw-r--r-- 1 root root 9840 Apr 11 07:37 cmd.php

      drwxr-sr-x 3 root users 4096 Jun 27 19:07 conf

      -rw-r--r-- 1 root root 964 Apr 11 07:37 content.php

      drwxr-sr-x 5 root users 4096 Jun 27 14:30 core

      drwxr-sr-x 9 root users 4096 Jun 27 19:07 data

      -rw-r--r-- 1 root root 4512 Apr 11 07:37 dav.php

      -rw-r--r-- 1 root root 7083 Apr 11 07:37 index.php

      -rw-r--r-- 1 root root 1014 Apr 11 07:37 index_shared.php

      -rw-r--r-- 1 root root 2411 Apr 11 07:37 opencollab.php

      drwxr-sr-x 3 root users 4096 Jun 27 19:07 phpunit

      drwxr-sr-x 123 root users 4096 Jun 27 19:07 plugins

      -rw-r--r-- 1 root root 1414 Apr 11 07:37 publicLet.inc.php

      -rw-r--r-- 1 root root 3134 Apr 11 07:37 rest.php

      -rw-r--r-- 1 root root 9533 Apr 11 07:37 runTests.php

      root@openmediavault:/media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/pydio-core-6.4.1#



      regarding error 403, if i do http followed by my local ip, i get into the web ui of OMV if i add the port number of my choice i get a 400 bad request since i enabled ssl and can only use https.... https error go 403 forbidden persists however...

      i appreciate this very much... thanks
    • You need to learn the basic Linux commands in order to this kind of setup.

      Remove/delete: rm -r filename

      Since your download folder has already renamed to 'pydio-core-6.4.1', you can rename it to 'pydio':

      1. cd /media/d1bbb0b5-6a71-4e7e-9c3c-17a356a733a1/www/
      2. mv pydio-core-6.4.1 pydio
      3. done.
      4. Continue to rest of the tutorial.

      You probably missing some Nginx settings.
      Ensure you do steps 7-9 :

      Source Code

      1. 7. Go back to OMV GUI>>create a pool in Nginx service>>>create it as "pool_pydio'
      2. 8. Create a pydio site under 'Servers' tab and enable appropriate options from the examples.
      3. 9. Copy & paste the following codes into the 'extra options' space:
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10
    • Got the same 403 ERROR here, what was the problem in your installation, imcv?
      I have no /media/UUID/www/ directory, so first I tried to move pydio into /var/www and, after getting the error, I moved it to /media/UUID/pydio/www, but that changed nothing.

      Hope you could help me

      Andy
    • upon reaching the diagnostic tool page, i got ....

      1) security breach error
      ... which i did not know how to correct since all solutions i could find involved apache and this tutorial makes use of nginx, so i left it behind for the time being and proceeded with the other following warning errors..

      2) a PHP output buffer warning

      ...which i corrected by editing the php.ini file.

      so i did this...

      nano /etc/php5/fpm/php.ini

      and look for the line that says...

      output_buffering = 4096

      and change to

      output_buffering = off


      3)warning: Pydio framework loads a lot of PHP files at each query, and using a PHP accelerator is greatly recommended.

      i corrected with

      apt-get install php5-apc


      4)warning: PHP INTL extension missing. English month names will be used for all languages.

      i corrected with...

      apt-get install php5-intl


      service php5-fpm restart

      service nginx restart




      after number 4, surprisingly the security breach error did not appear and the pydio webpage proceeded with the installation...i don't know if this is already secure or not...


      hope this helps... :)

      The post was edited 3 times, last by imcv ().

    • imcv wrote:

      lemon wrote:

      Got the same 403 ERROR here, what was the problem in your installation, imcv
      hi Andy,
      all did was add /pydio at the end of port number as per instructions of our mentor tinh_x7 when accessing pydio on a web browser, :)

      so try to do this...

      https://local.ip:SSL port/pydio


      hope this helps :)
      The URL is depend your your setup.
      Mine is like this: abc.xyz.com:9443

      Regarding security: pydio.com/en/docs/v6-enterprise/securing-your-installation
      OMV v3.0
      Asus Z97-A/3.1; i3-4370
      32GB RAM Corsair Vengeance Pro
      4x3TB RAID10

      The post was edited 1 time, last by tinh_x7 ().