Difference between revisions of "OwnCloud"

From PC-BSD Wiki
Jump to: navigation, search
(Installing the Cloud)
(Installing ownCloud into a Traditional Ports Jail)
Line 5: Line 5:
 
In PC-BSD®, you can create your own cloud service by installing ownCloud into a traditional jail that you created using [[Warden®]], or into a [[Install a Server|TrueOS® installation]]. For security reasons, it is recommended to not install ownCloud directly onto a desktop installation as the web and database services it requires may expose the desktop to security vulnerabilities. If you are installing ownCloud on your desktop, a traditional jail is recommended as it isolates the software installed into the jail from the desktop system.
 
In PC-BSD®, you can create your own cloud service by installing ownCloud into a traditional jail that you created using [[Warden®]], or into a [[Install a Server|TrueOS® installation]]. For security reasons, it is recommended to not install ownCloud directly onto a desktop installation as the web and database services it requires may expose the desktop to security vulnerabilities. If you are installing ownCloud on your desktop, a traditional jail is recommended as it isolates the software installed into the jail from the desktop system.
  
=== Installing ownCloud into a Traditional Ports Jail ===
+
=== Install and Start the Required Services ===
  
 
If you are installing ownCloud into a traditional jail, make sure that the jail is started, then go to the Packages tab of the jail as seen in Figure 9.9a.
 
If you are installing ownCloud into a traditional jail, make sure that the jail is started, then go to the Packages tab of the jail as seen in Figure 9.9a.
Line 21: Line 21:
 
[[File:Owncloud1.png]]
 
[[File:Owncloud1.png]]
  
 +
Verify that you can reach the web server by typing the IP address of the jail into a web browser. You should receive a "It works!" message. You will need to first open TCP port 80 using [[Firewall Manager]] if you use a web browser on a different computer.
  
 +
If you are installing ownCloud onto a TrueOS™ system, you will need to create the jail and install the dependencies from the command line. When creating the jail, specify the jail IP address and hostname as seen in this example:
 +
 +
'''warden create 192.168.0.45 owncloudjail --startauto'''
 +
'''pc-metapkgmanager --pkgset warden --chroot /usr/jails/192.168.0.45 add MySQL,Apache,PHP'''
 +
 +
Once the software is installed, edit the ''/etc/rc.conf'' file within the jail to start the required services:
 +
 +
'''warden chroot 192.168.0.45'''
 +
'''vi /etc/rc.conf'''
 +
 +
Add these two lines to that file:
 +
 +
apache22_enable=”YES”
 +
mysql_enable=”YES”
 +
 +
Save your edits then start the services:
 +
 +
'''usr/local/etc/rc.d/apache22 start'''
 +
'''/usr/local/etc/rc.d/mysql-server start'''
 +
 +
Verify that you can reach the web server by typing the IP address of the jail into a web browser. You should receive a "It works!" message. You will need to first edit ''/etc/pf.conf'' in order to open TCP port 80 using if you use a web browser on a different computer.
  
  

Revision as of 08:51, 5 September 2012

(Sorry for the inconvenience)

Contents

ownCloud[1] is open source software that allows you to create your own cloud storage. This allows you to share data, contacts, and calendars with the devices and users that you define.

In PC-BSD®, you can create your own cloud service by installing ownCloud into a traditional jail that you created using Warden®, or into a TrueOS® installation. For security reasons, it is recommended to not install ownCloud directly onto a desktop installation as the web and database services it requires may expose the desktop to security vulnerabilities. If you are installing ownCloud on your desktop, a traditional jail is recommended as it isolates the software installed into the jail from the desktop system.

Install and Start the Required Services

If you are installing ownCloud into a traditional jail, make sure that the jail is started, then go to the Packages tab of the jail as seen in Figure 9.9a.

Figure 9.9a: Install the Required Packages

Owncloud.png

Check the box for Database-Servers -> MySQL and the box for Web-Servers -> Apache, then click the Apply button to install these packages.

Once installed, go to Tools -> Service Manager which will open the screen shown in Figure 9.9b. Start the Apache and MySQL services and change their status to Enable Service so that they are started whenever the jail is available.

Figure 9.9b: Start the Required Services

Owncloud1.png

Verify that you can reach the web server by typing the IP address of the jail into a web browser. You should receive a "It works!" message. You will need to first open TCP port 80 using Firewall Manager if you use a web browser on a different computer.

If you are installing ownCloud onto a TrueOS™ system, you will need to create the jail and install the dependencies from the command line. When creating the jail, specify the jail IP address and hostname as seen in this example:

warden create 192.168.0.45 owncloudjail --startauto
pc-metapkgmanager --pkgset warden --chroot /usr/jails/192.168.0.45 add MySQL,Apache,PHP

Once the software is installed, edit the /etc/rc.conf file within the jail to start the required services:

warden chroot 192.168.0.45
vi /etc/rc.conf

Add these two lines to that file:

apache22_enable=”YES” 
mysql_enable=”YES”

Save your edits then start the services:

usr/local/etc/rc.d/apache22 start
/usr/local/etc/rc.d/mysql-server start

Verify that you can reach the web server by typing the IP address of the jail into a web browser. You should receive a "It works!" message. You will need to first edit /etc/pf.conf in order to open TCP port 80 using if you use a web browser on a different computer.


References


  1. http://owncloud.org/
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox