Owncloud installation on debian 8

Install owncloud via the owncloud repository.

 

Debian_8.0 owncloud-8.2.2-1.1

You can add the repository key to apt. Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information). RUN:

Run the following shell commands as root to add the repository and install from there.

After this you have to create a database user with a password and a database for owncloud.

Now you can visit http://yourdomain.com/owncloud/

There you fill in all data and finish the installation.

When you are logged in you see that owncloud recommends you to enabling caching:

Also TLS should be installed:

Therefore I followed the instructions of http://workshop.tecchannel.de/a/owncloud-8-2-unter-ubuntu-server-14-04-lts-installieren,3277676,7#s9

 

Tip:

For Update notification you can use apticron

Sources:

  • https://www.howtoforge.com/tutorial/owncloud-install-debian-8-jessie/
  • https://doc.owncloud.org/server/8.2/admin_manual/installation/source_installation.html
  • https://www.techandme.se/how-to-configure-redis-cache-in-ubuntu-14-04-with-owncloud/
  • http://workshop.tecchannel.de/a/owncloud-8-2-unter-ubuntu-server-14-04-lts-installieren,3277676,7#s9
  • http://www.rojtberg.net/687/secure-owncloud-setup/

Server locale: cannot set Fehlermeldung beheben

Bei Ubuntu taucht bei der Installation eines Programms oft folgende Fehlermeldung auf:

perl: warning: Falling back to the standard locale („C“).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Diese kann behoben werden:

Anschließend noch folgendes ausführen:

 

10 Free and powerful File Managers for the web

if you looking for Free and powerful File Managers Based on jQuery , Ajax, php and Mootools ready to use in your web projects and easy to customize , take a look at this list with Free and powerful File Managers using jQuery/Ajax/php . All File Managers Based on jQuery ,Ajax, php and Mootools that allows you to preview, upload and modify files and folders via the browser.

1.MooTools based FileManager

A MooTools based File-Manager for the web that allows you to (pre)view, upload and modify files and folders via the browser.
MooTools-based-FileManager

Features :

  • Browse through Files and Folders on your Server
  • Rename, Delete, Move (Drag&Drop), Copy (Drag + hold CTRL) and Download Files
  • View detailed Previews of Images, Text-Files, Compressed-Files or Audio Content
  • Nice User Interface 😉
  • Upload Files via FancyUpload (integrated Feature)
  • Option to automatically resize big Images when uploading
  • Use it to select a File anywhere you need to specify one inside your Application’s Backend
  • Use as a FileManager in TinyMCE
button-4109 button-310

2.eXtplorer -PHP and JavaScript based File Manager

eXtplorer is a web-based free File Manager built with PHP and JavaScript . eXtplorer is released under a dual-license You can choose whether you want to use eXtplorer under the Mozilla Public License (MPL 1.1) or under the GNU General Public License (GNU/GPL).
eXtplorer compatible with PHP 4.3 on the server and an up-to-date browser with Javascript enabled to run. But here is one more thing I like about eXplorer is you can use eXtplorer as a file manager for your local files or use eXtplorer to login to the FTP server (like net2ftp) and work as if you were using an FTP client.
eXtplorer -PHP and JavaScript based File Manager

Features :

  • browse your directories & files on the server like FTP server
  • edit, copy, move (Drag&Drop), delete files from server
  • search, upload and download files,
  • create and extract archives,
  • create new files and directories
button-4109 button-310

3. AjaXplorer

AjaXplorer is a web-based free File Manager which is easy-to-install file explorer for remotely managing files on a web server. Its “rich client” layout and actions make it accessible to any end-user for a variety of purposes: file management/sharing, photo gallery, code browsing, etc. Only PHP (4 or 5) is necessary, no database needed.
AjaXplorer-is-a-web-based-f

Features :

  • Rename/Copy/Move/Delete/Download files or folders
  • Upload multiple files and track status with progress bar (Flash required and no https)
  • Create folders and empty files
  • Edit Text files and code files (js, php, html, java, sql, perl), syntax is highlighted in the editor
  • View Images online, preview images in the list, diaporama of a given folder
  • Listen to MP3s online without downloading them
  • View Flash videos (FLV) online and full screen.
  • Browse and Extract ZIP files online
button-4109 button-310

4.Relay -Ajax directory manager

Relay is a Ajax based free File Manager for the web that allows you to (pre)view of thumbnail including pdf, upload and modify files and folders via the browser.
Relay -Ajax directory manager
Relay -Ajax directory manager compatible with ;

  • PHP version 4+
  • MySQL version 4+
  • Perl 5.8.0 (for upload progress)
  • Apache/IIS

Features :

  • easily drag-n-drop files and folders
  • dynamic loading file structure
  • dynamic upload progress bar
  • thumbnail preview, including pdf
  • multiple users & accounts for sharing
button-4109 button-310

5. fileNice

filenice is free php file browser , filenice Basically useful for if you have a ‚dump‘ folder on your server where you regularly upload files and you want to be able to see what’s there.
filenice is free php file browser

Features:

  • Source viewing of code
  • Preference based sorting
  • Search
  • Folder comments
  • easy and quickly Send to Flickr
  • preview about File details
  • Folder specific slideshows of images without reloading pages.
button-4109 button-310

6.phpXplorer

phpXplorer is an open source file management system written in PHP. It enables you to work on a remote file system through a web browser. By default it has got dialogs for editing HTML, PHP, image, Apache, compressed and email files. Its modular design makes it easy to build your own filetypes, property sheets, views and themes.
phpXplorer

button-4109 button-310

7.FileVista

FileVista is a web file manager for storing, managing and sharing files online through your web browser. It is a web based software which you install on your web server to fulfill web file management requirements of your company or organization. This web file manager allows your users to upload, download and organize any type of file with an intuitive user interface.
FileVista

button-4109 button-310

8.FileMan

FileMan help you to quickly and easily access your website’s files and directories through any compatible browser. You can perform many tasks including creating and editing html files using a WYSIWYG editor, uploading one or multiple files with ascii/binary transfer capability, searching for files based on file names or full text searches, replacing files, and much much more.
FileMan

button-4109 button-310

9.CKFinder

CKFinder is a powerful and easy to use Ajax file manager for web browsers. Its user-friendly interface makes it him intuitive and quick to learn for all kinds of users, from advanced professionals to Internet beginners.
CKFinder

Features:

  • Full source code included for the server side integration.
  • secure file uploads.
  • quickly responses without refreshing page.
  • Lightweight and user-friendly interface .
  • Full user control: create, rename and delete folders and files.
  • Multi-language support with automatic user language detection.
  • Quality image thumbnails, making it quick to find things.
  • Folders tree navigation: for easy to navigate .
button-4109 button-310

10.FileRun

FileRun is a web-based (PHP) file management system that allows you to manage files stored on your web server, through an innovative user-friendly (Ajax) interface. fileRun is 100% web based (PHP) file management system, a browser is the only thing a user will need for sending and receiving files .
There’s nothing to download; you can easily access your documents or files from any computer with an Internet connection and a standard browser.
filerun

Features:

  • user-friendly Ajax interface
  • Download folders by zipping them on the fly!
  • Uploads folders (without having to Zip and Unzip them).
  • unlimited space for Uploads files of unlimited sizes, overcoming PHP upload limitation configuration directives.
  • Easily manage files already existing in the file-system (No import required!).

button-4109

Quelle: http://www.dreamcss.com/2009/05/10-free-and-powerful-file-managers-for.html

Apache Redirect HTTP to HTTPS using mod_rewrite

Apache’s mod_rewrite makes it easy to require SSL to be used on your site and to gently redirect users who forget to add the https when typing the URL. Using Apache to redirect http to https will make sure that your site (or a part of it) will only be accessed by your customers using SSL.  This is better than using SSLRequireSSL because users often forget to type in the https and will be automatically redirected.

Before you can set up an Apache redirect from http to https, you will need to do the following:

  • Make sure your SSL certificate is successfully installed so you can access https://www.yoursite.com (for more information see our Apache SSL Installation instructions)
  • Make sure mod_rewrite is enabled in Apache

Now you just need to edit your httpd.conf file or the file where your virtual host is specified and add these lines to redirect http to https:

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

In many cases, you can also just add those lines to a file named .htaccess in the folder that you want to redirect http to https.

Now, when a visitor types http://www.yoursite.com/mypage.htm the server will automatically redirect http to https so that they go to https://www.yoursite.com/mypage.htm

Note: You can also redirect a single page from http to http in Apache by using this in your configuration file or .htaccess file:

RewriteEngine On
RewriteRule ^apache-redirect-http-to-https\.html$ https://www.yoursite.com/apache-redirect-http-to-https.html [R=301,L]

Quelle: http://www.sslshopper.com/apache-redirect-http-to-https.html

Multiple Names on One SSL Certificate

Multiple Names on One Certificate

Configuring ssl requests with SubjectAltName with openssl

With Multiple Domain Certificates you can secure a larger number of domains with only one certificate. Subject Alternative Names are a X509 Version 3 (RFC 2459) extension to allow an SSL certificate to specify multiple names that the certificate should match. SubjectAltName can contain email addresses, IP addresses, regular DNS host names, etc. This uses an SSL feature called SubjectAlternativeName (or SAN, for short).

Generate the Certificate Request File

For a generic SSL certificate request (CSR), openssl doesn’t require much fiddling. Since we’re going to add a SAN or two to our CSR, we’ll need to add a few things to the openssl conf file. You need to tell openssl to create a CSR that includes x509 V3 extensions and you also need to tell openssl to include a list of subject alternative names in your CSR.

Create an openssl configuration file which enables subject alternative names (openssl.cnf):In the [req] section. This is the section that tells openssl what to do with certificate requests (CSRs).
Within that section should be a line that begins with req_extensions. We’ll want that to read as follows:

This tells openssl to include the v3_req section in CSRs.
Now we’ll go own down to the v3_req section and make sure that it includes the following:

Note that whatever we put here will appear on all CSRs generated from this point on: if at a later date you want to generate a CSR with different SANs, you’ll need to edit this file and change the DNS.x entries.

Generate a private key

You’ll need to make sure your server has a private key created:

Where doman is the FQDN of the server you’re using. That’s not necessary, BTW, but it makes things a lot clearer later on.

Create the CSR file

Then the CSR is generated using:

You’ll be prompted for information about your organization, and it’ll ask if you want to include a passphrase (you don’t). It’ll then finish with nothing much in the way of feedback. But you can see that san_domain_com.csr has been created.

It’s nice to check our work, so we can take a look at what the csr contains with the following command:

You should see some output like below. Note the Subject Alternative Name section:

So now we’ve got a shiny new CSR. But, of course, we have to sign it.

Self-sign and create the certificate:

Package the key and cert in a PKCS12 file:

The easiest way to install this into IIS is to first use openssl’s pkcs12 command to export both the private key and the certificate into a pkcs12 file:

Import the certificate

Copy the file over to the server and import it there. You need to import it into the local computer’s certificate store. Open IIS Manager, select your server on right pane, double click Server Certificates, and click Import under Actions on the right pane. Browse to your *.p12 file and enter the p/w (allow cert to be exported checked).

Now you can go to one of your servers, edit the “bindings” and select this certificate for SSL. However, you will probably find the “Host name” box greyed out, which is something IIS routinely does for SSL bindings.

The fix is simple: Start mmc, add the Certificates snap-in for the local computer, find your certificate under “Personal”, double click on it, go to Details and click “Edit Properties…”. Now you get to add a “friendly name” to the certificate, and there’s the key. Set the name to “*.domain.com” and go back to the IIS Management Console. Vollalla! Now you can edit the Host name.

After this fix, you can change the SSL binding for all those web servers to use the same certificate and IP address, and also to use name-based virtual host selection!

Configure SSL Settings

Configure SSL settings if you want your site to require SSL, or to interact in a specific way with client certificates. Click the site node in the tree view to go back to the site’s home page. Double-click the SSL Settings feature in the middle pane.

Quellen:

Uhrzeit auf Server aktualisieren

NTP

Network Time Protocol. This will keep you system date with exact match to actual date.

Die Zeitzone kann bei ubuntu mit folgendem Befehl eingestellt werden:

Install and Configure

  • Type date to see current date and time

  • Install NTP

  • Done.
  • Type ntpq -p to see servers you are syncing with.
  • Type date again to see if the time changed. You time should be synced in a next minute.
  • Done.

Troubleshooting

  • If you run ntpq -p and you get

  • Run

  • And then again:

Public Internet Time Servers

  • pool.ntp.org – This points to a random worldwide time server.
  • europe.pool.ntp.org – This points to a random European time server.
  • uk.pool.ntp.org – This points to a random United Kingdom based time server.

Quelle: http://wiki.debian.org/NTP