IIS installation Pydio

Source: Internet
Author: User

Introduction

In this how-to, we'll see the installation of Pydio (Put Your Data in Orbit), which are a good alternative to Dropbox, Driv E, or OwnCloud. In this case, the installation would be carried on a Microsoft IIS 8 webserver, which in this case, was installed on Windows 8.

Prerequisites

Before you begin, verify the following prerequisites:

    • IIS 8 webserver is installed

    • PHP engine is integrated at the IIS 8 webserver

    • MySQL is already installed (it's recommended, but only necessary if you want use Pydio with a database)

    • Pydio:you must download the Pydio source before starting this how-to.

Prepare your IIS webserver

First off, we'll prepare the IIS webserver to has the proper configuration to serve Pydio. Open the IIS Manager on your server.

Prepare the site

Do a right click on« Sites »then« Add Website », you'll obtain the form present in the screenshot b Elow.

ADD website in IIS Manager

Complete the different fields:

    • Site name : Give a name to your Site; It'll be displayed in the IIS Manager

    • physical path : Root path of the site

    • Type : Use HTTP, or HTTPS if your has an SSL certificate

    • Port : Indicate for HTTP, 443 to HTTPS, or another port if you ' d prefer.

Complete the other fields if necessary. Once the configuration is complete and click on "OK" to finish the creation.

Now, open the Pydio archive so you previously downloaded. Then, unzip the contents of the pydio-core-5.x.x directory to the root of your website. Example:

Pydio Distribution unzipped

Requests Filtering

For security reason, it's necessary to prohibit access to the "data" Directory of Pydio. To does this, you can either place the data directory out of the Pydio website's root, or you can create a IIS rule to prev ENT Access, we'll do the latter. For this, you must has the "Request Filtering" functionality in IIS (the name of this functionality is dependent On the version). Once in the Pydio site, click on the icon which was presented to the left of this tutorial, and click on "Add hidden SE Gment"On the right in the IIS window, shown below. Fill the field "data", then confirm to create the protection rule.

Adding a hidden segment

If not the already accessible, you could have the Add this module to IIS. Activate the "Request Filtering" by "adding features".

Enable Request Filtering Feature

Once The addition is complete and you can perform the operation described previously.

Authorization Rules

The Using Request Filtering keeps the public folder is from working in its default location. We can use Authorization Rules to disallow access to certain subfolders, which allows overriding at a lower level  .  Thus, let's "Deny all" at the Data folder, and "Allow all" at the public folder. See below for as Sample Web. config files and their location using \ as the root installation location of Pydio.

    • <authorization> tags is for authorization Rules.
    • <requestFiltering> is to deny access to '. Ajxp_ ' files in the ' Public ' folder, though this have not been tested.

\conf\web.config

<?xml version= "1.0" encoding= "UTF-8"?><configuration><system.webserver><security>< Authorization><remove users= "*" roles= "" verbs= ""/><add accesstype= "Deny" users= "*"/></ Authorization></security></system.webserver></configuration>

\data\web.config

<?xml version= "1.0" encoding= "UTF-8"?><configuration><system.webserver><security>< Authorization><remove users= "*" roles= "" verbs= ""/><add accesstype= "Deny" users= "*"/></ Authorization></security></system.webserver></configuration>

\data\public\web.config

<?xml version= "1.0" encoding= "UTF-8"?><configuration><system.webserver><security>< Authorization><remove users= "*" roles= "" verbs= ""/><add accesstype= "Allow" users= "*"/></ Authorization><requestfiltering><filteringrules><filteringrule name= "Pydio public" scanUrl= " True "scanquerystring=" false "><denystrings><clear/><add string=". Ajxp_ "/></denystrings ><scanheaders><clear/></scanheaders><appliesto><clear/></appliesTo>< /filteringrule></filteringrules></requestfiltering></security>

\files\plugins\editor.zoho\agent\files\web.config

<?xml version= "1.0" encoding= "UTF-8"?><configuration><system.webserver><security>< Authorization><remove users= "*" roles= "" verbs= ""/><add accesstype= "Deny" users= "*"/></ Authorization></security></system.webserver></configuration>

\files\plugins\editor.pixlr\web.config

<?xml version= "1.0" encoding= "UTF-8"?><configuration><system.webserver><rewrite>< Rules><rule name= "Pixlrsave" stopprocessing= "true" ><match url= "^fake_save_pixlr_ (. *). php$"/>< Action type= "Rewrite" url= "fake_save_pixlr.php"/></rule></rules></rewrite></ System.webserver></configuration>

\files\web.config

<?xml version= "1.0" encoding= "UTF-8"?><configuration><system.webserver><rewrite>< Rules><rule name= "Pydio WebDAV" stopprocessing= "true" ><match url= "^shares" ignorecase= "false"/>< Conditions><add input= "{request_filename}" matchtype= "Isfile" ignorecase= "false" negate= "true"/><add Input= "{request_filename}" matchtype= "Isdirectory" ignorecase= "false" negate= "true"/></conditions>< Action type= "Rewrite" url= "./dav.php"/></rule><rule name= "Pydio api_rest" stopprocessing= "true" >< Match url= "^api" ignorecase= "false"/><action type= "Rewrite" url= "./rest.php"/></rule></rules> </rewrite></system.webServer></configuration>

[OPTIONAL] dedicated Windows User

Within IIS, you can convert/pydio to the application, so, can configure it to run under a different the user account T Han the DefaultAppPool.  Create a specific user for the application to run as, which is just a local user with no group memberships. Give This user read-only rights everywhere Under/pydio, and add Modify rights (Read/write/delete) to the Data folder.

When doing a upgrade, add Modify rights at the root level and then remove it after you finish the In-pydio upgrade.

PHP Configuration

Now, we'll configure PHP to prevent Pydio's "php Output Buffer disabled" warning on the diagnostic page. Click on 'PHP Manager' Then 'Manage all Parameters'.

disabling output_buffering

Use the search area to find the parameter "output_buffering". Double Click on the parameter and write the value to "off". The website php.net indicates:

"Youcan enable output buffering for all files by setting this directive to ' on '. If you wish to limit the size of the buffer to a certain size–you can use a maximum number of bytes instead of ' on ', as A value for this directive (e.g., output_buffering=4096). As of PHP 4.3.5, this directive are always Off in php-cli. "

Installing the Application

The server is ready, the site was online, and now we can install Pydio.

With your favorite browser, go to your Pydio website. The diagnostics page would appear named "Pydio Diagnostic Tool". Double Click on the "click here tocontinue to Pydio" –unless you get one or more critical errors, but if you follow Ed this tutorial properly, there won ' t is a problem.

Regarding the "SSL encryption" Advertisement:it ' s recommended to use a HTTPS connection on your website Must use HTTPS in your IIS site and has a certificate to secure exchanges between the client and the server.

If you want to activate the automatic redirection to HTTPS on your site, modify the file "conf/bootstrap_conf.php "Of Pydio and remove Comment:

Define ("Ajxp_force_ssl_redirect", true);

Start the setup with the section "Admin access", set a name for the Administrator account, a display name for this a Ccount, and enter a passphrase.

Pydio Install:administrator User

Go to "Global options" and choose "中文版" for the "Default Language".

Pydio Install:global Options

The next step is the trickiest. Indeed, to-store data, Pydio can use a database but it's isn ' t an obligation. If you want to does an installation without database, go to step 1 below. If you want to does an installation with a database, go to step 2.

    1. Without a database

Without a database, no configuration is necessary, you must only select "No Database (Quick Start)" and continue.

Installing with or without DB

    1. With database

You should already has a MySQL Server installed on your machine if you followed the prerequisites. If So, Open A-CMD to establish a connection with the MySQL Server (make sure-CD to the bin directory of MySQL). Run the following command:

Mysql.exe–u root–p

You get this:

accessing Mysql server from command line

Then, for example I has decided to create a database named "itconnectpydio" for Pydio only, with a user named " C3>pydio", which have" password "as its passphrase. This was just an example. You should change these defaults in your environment.

The user "Pydio" must has all privileges on tables and the database because it must manage the data stored in it. Enter the following commands:

# Create the database

CREATE DATABASE Itconnectpydio;

# Create the user

CREATE USER "Pydio" @ "localhost" identified by "password";

# Assign Rights

GRANT all privileges The itconnectpydio.* to "pydio" @ "localhost";

Then, go to the webpage of Pydio configuration, choose "Database" for "Storage Type" and "MySQL" for "database". After, complete the establish a connection with the MySQL server.

Once That's complete, click on "Try connecting to the database" to verify the connection between Pydio and the SQL Server .

If the configuration is correct, you'll have this message: "Connection established!"

Testing Connection Parameters

The last step, create one or many users different of the "Administrator" (optional). Then, click on "Install Pydio now!"

    1. First connection

When the installation are complete, you'll be redirected on the login page of Pydio. Use the account "Administrator", or another account (created in the previous step).

Login Screen:install successfull!

You is now connected and the use pydio!

IIS installation Pydio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.