Changes

From Amahi Wiki
Jump to: navigation, search
{{WorkInProgressNeedsUpdate}}[[Category:Apps]]<br/>This article overs section covers the manual installation for [http://www.amahi.org/apps/owncloud ownCloud] on the Fedora 14 (32 bit) version of Amahi. The following installation and setup information helped as part of the process to create the Amahi ownCloud “one-click” installation package.
__TOC__
===Prerequisites===
*Fairly "typical" LAMP technology stack, fortunately Amahi provides "most" of the technology components.
*PHP V5.3 .2 or greaterup to and including ownCloud V7.x. ownCloud 8 or greater requires a minimum of PHP V5.4.x.*Database, MySQL or SQLite(meant for smaller systems such as the Raspberry Pi). Amahi uses MariaDB (previously MySQL ) so why change?
*Favorite text editor.
*Favorite SQL administration (phpMyAdmin) tool, good MySQL database command-line skills, or the Amahi "hda-create-*db-and-user" command line utility.
*Access to owncloud V4.0.7 (tar.bz2 only) or greater.
===Installation===
====PHP====
ownCloud requires PHP V5.3 .4 or greater to be installed on the server. The following additional PHP dependencies modules need to be installed.
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000; padding: 1px"
<br/>
Install PHP modules:
<blockquote>{{Code|<pre>yum install php-gd php-imap php-ldap php-mbstring php-mysql php-odbc php-pdo php-pear php-xml}}</pre>
</blockquote>
<br/>
Install the libraries:
<blockquote>{{Code|<pre>yum install pcre libzip zlib curl libcurl}}</pre>
</blockquote>
ownCloud requires it's own database and a database user ID in order to store cloud information. We will use the command line and an Amahi HDA (hda-create-db-and-user) application to create the database, user ID, and password. This creates a database called "owncloud" and a corresponding user name "owncloud" (the password is also the same as the database and user ID).
<blockquote>{{Code|<pre>hda-create-db-and-user owncloud}}</pre>
</blockquote>
*Download the latest release from the ownCloud Community site, "http://owncloud.org/" and save in a directory say, "working".
*"cd" in to the working directory.
*Use the "tar" command to extract the ownCloud binaries in to the working directory. We will use the ownCloud downloaded file name as "owncloud-4.0.7.tar.bz2". The owncloud tar file should now have been will be extracted in to an "owncloud" subdirectory in the working directory.<blockquote>{{Code|<pre>tar -xjf owncloud-4.0.7.tar.bz2}}</pre>
</blockquote>
*Go to the command line and switch to the root user ID for the next steps.
====Finalize the ownCloud Installation====
*The installation of owncloud places the “data” directory in the same location as the ownCloud binaries. As such this causes the data directory to be visible on the internet/on an intranet. To resolve this the Apache web server “.htaccess” file functionality must be enabled in the owncloud virtual server setup. When the Amahi ownCloud web application was created an Apache virtual host file was created at “/etc/httpd/conf.d” and with a name similar to this, “1###-owncloud.conf”.
<blockquote>Change the lines near the bottom to this:
{{Text|Text=<pre>Options Indexes FollowSymLinks +ExecCGI
AddHandler fcgid-script .fcg
AllowOverride FileInfo Limit Options Indexes
Order allow,deny
Allow from all}}</pre>
</blockquote>
*Now an ".htaccess" file needs to be created in Reboot the ownCloud data directory. “cd” to the data directory located at "/var/httpd/html/owncloud/data/"server.
*After the server reboots the installation of ownCloud needs to be completed on the console by running the internet web browser and going to URL: <blockquotenowiki>Add the following lineshttp:{{Text|Text=deny from allIgnoreIndex *}}//owncloud</nowiki>.
*Now do a change ownership on The first screen entries are requesting for the ".htaccessadministration" file to ensure that Apache has access to the file. <blockquote>{{Code|chown apache:users .htaccess}}</blockquote> *The file upload size for ownCloud is set to a maximum of 512 MB per file account to be uploadedcreated. There are two values stored in file “/var/hda/web-apps/owncloud/html/.htaccess”. The settings are called “upload_max_filesize” Enter “admin” as the user ID and “post_max_size”the password as "admin".'''DO NOT''' hit the “Finish Setup” button yet! <blockquote>Change the values to something like this:{{Text|Text=php_value upload_max_filesize 4.7Gphp_value post_max_size 5G}} *Reboot the server[[File:oc_first_login.png‎]]
*After Click on the server reboots the installation of ownCloud needs to be completed"Advanced" menu item. On This will reveal information regarding the console start default location for the internet web browser data directory and go setup parameters required for the database. Change the default data directory to URL: http:"/var/hda/files/owncloud/data". The new location is required in order to separate user files and data from the ownCloud binaries.
*The first entries are asking for and administration account Remember recording the ownCloud MySQLdatabase information? Select MySQL as the database to be created. To start with used and enter “admin” as the user account and password. The password can be changed laterdatabase information now. '''DO NOT''' hit touch the “Finish Setup” button yet!:[[File:oc_first_loginhost server name.png‎]]
*Click on the Advanced menu item. This will reveal information regarding the default location for the data directory and setup parameters required for the database. Remember recording the ownCloud MySQLdatabase information? Select MySQL as the database to be used and please enter the database information now. '''DO NOT''' touch the host server name"Finish" button.
:[[File:oc_final_setups.png‎]]
*ownCloud should now complete installation and go to the menu screen for the administration account.
:[[File:oc_post_finalize_user_menu.png‎ ‎]]
 
*That's it!
===Upgrading ownCloud to New Releases===
To upgrade to the next version of ownCloud instance, replace the files (copy) with the new set from the download. Leave the "config/" and "data/" directories directory intact to preserve your ownCloud configuration data. The upgrade will happen automatically upon the next user login.
Please remember to check the “apache:users” ownership on the copied files and directories. If they are not set, use the “chown” command (recursively). The upgrade will happen automatically upon the next user login.
===ownCloud Package Testing===
details coming in The ownCloud installation package was successfully tested on the near future...following Linux platforms:
* Fedora 14
* Ubuntu 11.10 LTS
<br/>
The test cases used can be referenced by downloading the spreadsheet, " [[Media:Amahi_ownCloud_Test_Cases.xls‎|Amahi ownCloud Test Cases]] ".
----
[[OwnCloud|Main ownCloud Page]] | [[OwnCloud Tips|ownCloud Tips Page]]
----
<!--Category References follow-->
[[Category:ownCloud Collection]]