Setup repository and install the package:
1 2 3 4 5 |
echo "deb http://dl.ajaxplorer.info/repos/apt stable main deb-src http://dl.ajaxplorer.info/repos/apt stable main" > /etc/apt/sources.list.d/pydio.list wget -O - http://dl.ajaxplorer.info/repos/charles@ajaxplorer.info.gpg.key | sudo apt-key add - apt-get update apt-get install pydio |
Apache setup
If you want to access Pydio at http://localhost/pydio do:
1 2 3 |
cp /usr/share/doc/pydio/apache2.sample.conf /etc/apache2/sites-available/pydio.conf a2ensite pydio.conf service apache2 restart |
Since I prefer to use SSL connection I usually skip next part and setup only SSL virtualhost. So disable default virtualhost (a2dissite 000-default) and skip to SSL part.
If you want to access Pydio at http://localhost make a copy of default virtualhost:
1 |
cp /etc/apache2/sites-available/000-default /etc/apache2/sites-available/000-default.bak |
and paste this into /etc/apache2/sites-available/000-default:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /usr/share/pydio <Directory "/usr/share/pydio"> Options FollowSymLinks AllowOverride Limit FileInfo Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> |
Same with default-ssl, make a copy and paste:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
<IfModule mod_ssl.c> <VirtualHost _default_:443> ServerAdmin webmaster@localhost DocumentRoot /usr/share/pydio <Directory "/usr/share/pydio"> Options FollowSymLinks AllowOverride Limit FileInfo Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 # MSIE 7 and newer should be able to use keepalive BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown </VirtualHost> </IfModule> |
Enable sslĀ and disable output_buffering in php and then restart apache
1 2 3 4 |
a2enmod ssl a2ensite default-ssl sed -i "s/output_buffering\s*=\s*.*/output_buffering = Off/g" /etc/php5/apache2/php.ini service apache2 restart |
Point your browser to https://localhost and just follow the instructions.
Mysql setup
For configuration storage setup mysql server:
1 |
apt-get install mysql-server php5-mysql |
Generate password and paste it into dialog which appears during installation. Later you can setup passwordless login to mysql by creating file /root/.my.cnf with contents:
1 2 3 |
[mysql] user=root password=password |
Then connect to mysql and create database and user for Pydio:
1 |
mysql |
1 2 3 4 |
create database pydio default character set utf8 default collate utf8_general_ci; grant all privileges on pydio.* to pydio@localhost identified by 'password'; flush privileges; quit |
Continue on web and enter details for database connection. The page will reload and you can continue then setting up your environment.