Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 24

BUILD YOUR HOME CLOUD

SYSTEM
By Frankie
EXPAND FILESYSTEM
SETTING UP APACHE PHP
SETTING WEBSITES ROOT DIRECTORY

Insert $ sudo nano /etc/apache2/sites-enabled/000-default.conf


Change from DocumentRoot /var/www/html to DocumentRoot /var/www
Change from #Include conf-available/serve-cgi-bin.conf to Include conf-
available/serve-cgi-bin.conf
CONFIGURE COMMON GATEWAY
INTERFACE(CGI)
Insert $ sudo nano /etc/apache2/conf-available/serve-cgi-bin.conf
Change <Directory /usr/lib/cgi-bin> AllowOverride None to <Directory
/usr/lib/cgi-bin> AllowOverride all
After that, start the PHP apache2
Insert $ sudo service apache2 restart
TESTING

Insert ifconfig to check the ip address


In the browser, insert ipaddress/html
INSTALL MYSQL (DATABASE MANAGEMENT
FOR WEB SERVER)
Insert sudo apt-get install mysql-server
Insert the password for the root user when the screen below pops up
TESTING

Insert $ mysql u root p


INSTALL MYSQL ON PHP5 MODULES

Insert $sudo apt-get install phpmyadmin


Choose apache2 using space key and select ok when the screen below pops up
You will be ask to set password for phpmyadmin after this and just enter your
preferred password.
CONFIGURE APACHE2 SETTING

Insert $ sudo nano /etc/apache2/apache2.conf


Insert Include /etc/phpmyadmin/apache.conf at the end of the lines
SETTING PHPMYADMIN

After finishing the configuration, restart the apache web server by inserting $ sudo
/etc/init.d/apache2 restart
Open up the browser and enter ipaddress/phpMyAdmin
Insert root for username and yourpassword for password
DOWNLOAD AND SET UP OWNCLOUD

Insert $ sudo wget http://download.owncloud.org/community/owncloud-


latest.tar.bz2
Unzip the file by inserting $ sudo tar xjf owncloud-latest.tar.bz2
Copy the unzipped file to the webpage working directory by inserting $ sudo cp r
owncloud /var/www
To enable user to read the files from the web server using the browser by inserting $
sudo chown R www-data:www-data /var/www/owncloud/
SET UPLOAD FILE SIZE

Insert $ sudo nano /var/www/owncloud/.htaccess


Change 512MB to 1G
Use Ctrl X + Y +Enter to save and close the editor
SETTING UP DATABASE

Insert $ mysql u root p


Insert mysql> CREATE DATABASE your_database_name;
Insert mysql> GRANT ALL ON your_database_name.* to
your_database_username@localhost IDENTIFIED BY your_database_password;
Insert mysql> FLUSH PRIVILEGES;
Insert mysql> exit
INSTALL PHP5 CURL

Insert sudo apt-get install php5-curl


Insert sudo service apache2 restart
SETTING YOUR OWNCLOUD ACCOUNT

Open the browser and enter ipaddress/owncloud


Enter your owncloud username and password
Enter your Database username, password and name
Click Finish Setup

Congratulations! Your own home cloud storage is done! You can start upload the files to
the cloud storage using different devices.

You might also like