Now we are ready to install ownCloud.
There are two packages we could install: owncloud and owncloud-files. The difference is that if we install owncloud, then it will automatically install apache2, mysql and php5. We are going to install owncloud-files and setup a MariaDB server with Apache2 and PHP.
OwnCloud files will be stored in /var/www/owncloud directoy.

apt-get install owncloud-files

If you do not have a GLAMP stack yet you can set up MariaDB, PHP5 and Apache2 by following this guide.
In order to have each site under a folder with the domain name as its name I renamed the owncloud folder and created a symlink from the owncloud to my folder.

In this post I will explain how to install a GLAMP stack (GNU/Linux + Apache + MariaDB + PHP) on Debian 8 Jessie.
We begin by logging in as root with the su command
Then type in your root password and then run the following command which will install an Apache server with php5 support, a MariaDB server and a client.

Now you can try to access your website domain (e.g. http://example.com) and you will see a page that informs you that you need to make a configuration file and start the installer.
Before continuing the GNU Social installation we are going to enable fancy URLs and SSL
In order to enable Fancy URLs we have to use the provided .htaccess file

mv /var/www/gnusocial/htaccess.sample /var/www/gnusocial/.htaccess

In order to have SSL encryption we will use a Let’s Encrypt certificate generated by their automated script.
So let’s go to work.

Now run the following command and follow on-screen wizard to install the Let’s encrypt certificates.

./letsencrypt-auto --apache

If it complains about outdated libaugeas0 and augeas-lenses you can download and install the packages from jessie (I assune you’re runing on a X86_64 installation, otherwise just find the links on http://packages.debian.org) :

I decided recently to start one Drupal project where changes to the structure of the website are specifically made code-wise. This means that all the content types and every setting will be made by writing code. The admin interface will only be used for adding content to the website. And I am going to document every aspect I learn about Drupal.
The project I am talking about is replace.software. I am going to rewrite the whole website and learn along the way new techniques of approaching Drupal.

When adding a javascript/css with drupal_add_js / drupal_add_css set the preprocess paramater to false as in the following example:
drupal_add_js(drupal_get_path('theme', 'your_theme') . '/path/to/javascript_file.js' , array('preprocess' => FALSE ))

Introduction

ownCloud is an online file storage solution that facilitates the synchronization of your files between your computers and mobile devices.

ownCloud is similar with Dropbox, the differences are that ownCloud allows you full control of the web application by hosting and maintaining it yourself.

By installing ownCloud you will have your own file drive in the cloud which will provide storing and synchronization of files, managing your own calendar, image library and many more functionalities.

At the end of this guide you will have an ownCloud server and at least a client connected securely to the server. This setup will be ready for storing and synchronizing your files between the server and the client.

Prerequisites

– a Debian 7 VPS
– root access to the system

Step 1 – Installing the owncloud package

In this section we will add the ownCloud repository to your apt setup and install the `owncloud` server package from that repository.

If you are not already logged in as root user now it is time to log in as root in order to perform the installation process.

At this point a refresh of the apt sources is needed. So we will refresh the repositories using the following command:

apt-get update

Now we are ready to install `owncloud` by typing:

apt-get install owncloud

This command will trigger the installation of `owncloud` and its requirements. If you are on a fresh VPS among the packages installed are the Apache2 web server and the MySQL database server.
So ahead and accept the installation of those packages by typing “Y” and hit Enter.

Step 2 – Setting up the database

This section will describe the process of setting up the database from installation to a ready-to-use state.

During the installation of owncloud package we will be prompted for a MySQL root user password. Type in a new password for the mysql root user and hit Enter then repeat the password and hit Enter again.

After the installation is done we need to create a database for ownCloud.

We will first create an user named “owncloud” that will be used to connect to the Owncloud database. It is recommended to avoid using the root user for connecting to the database.

So first we log in to the mysql console:

mysql -p

Now we type the MySQL root password which we’ve set up earlier.

At this point we will create the database:

CREATE DATABASE owncloud;

Next we will create the “owncloud” database user and give the user all rights for the “owncloud” database.

GRANT ALL ON owncloud.* TO owncloud@localhost IDENTIFIED BY 'yourpassword';

Next we exit the mysql prompt

exit

Step 3 – Setting up ownCloud

Now, if we open a browser and navigate to our IP address or domain name followed by “/owncloud” in your browser, we will see a page that looks like this:

Fill in the credentials for our ownCloud admin user then choose “Storage & database”, leave the “Data folder” at it’s default value. From the “Configure the database” section choose “MySQL/MariaDB” and fill in with MySQL credentials.

If you have acquired a budget VPS that comes with a SolusVM control panel and ran in a network problem with the VPS then your only connection with your VPS is through the provided Serial console.
With the following command you can save text files like mysql dumps.