Fedora Core 19 Install OwnCloud 6.x in Fedora 19 minimal OS installation **INFO** OwnCloud 6.x needs Php v5.3.8 or newer where Fedora 19 met the requirement Install Packages # yum install unzip samba-client php-xml php-gd php-phpparser php-intl php-mysql samba-client curl libcurl php-pear-net-curl php-pdo php-mcrypt php-pecl-imagick # yum install owncloud owncloud-mysql Alternative method Install older version OwnCloud from Fedora repository, remove and install the latest OwnCloud from OwnCloud yum repository. This way all dependencies are account for. # yum install owncloud owncloud-httpd owncloud-mysql # yum remove owncloud # # cd /etc/yum.repos.d/ # wget http://download.opensuse.org/repositories/isv:owncloud:community/fedora_19/isv:owncloud:community.repo # # yum install owncloud mod_ssl samba-client # yum update openssl **INFO** conf.d/ OwnCloud installed in directories /var/www/html/owncloud/ and /etc/httpd/ Update Ownership # chown -R apache:apache /var/www/html/owncloud Update PHP Settings Edit file.htaccess by change values in red and add the addtional blue lines to support big file size 20 gigabytes. Fedora Core 19 1
**INFO** php_value memory_limit minimum value must be 512M to support big file. Depends on available RAM, change appropriately. e.g. OS has 2GB RAM, value set to 1024 megabytes. File /var/www/html/owncloud/.htaccess ErrorDocument 404 /core/templates/404.php <IfModule mod_php5.c> php_value mbstring.func_overload 0 php_value upload_max_filesize 20G php_value post_max_size 20G php_value memory_limit 1024M php_value max_input_time -1 php_value max_execution_time 60000 php_value default_socket_timeout 60000 php_value mysql.connect_timeout -1 <IfModule env_module> Edit file php.ini by commented out red lines and add the blue lines File /etc/php.ini ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ; http://php.net/upload-tmp-dir ;upload_tmp_dir = upload_tmp_dir = /var/tmp ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize upload_max_filesize = 2M ; Maximum number of files that can be uploaded via a single request ;max_file_uploads = 20 max_file_uploads = 500 Fedora Core 19 2
Enable Services Enable Apache and Mariadb(MySQL) # systemctl enable httpd.service # systemctl start httpd.service # systemctl enable mysqld.service # systemctl start mysqld.service Database Setup It is good to have some knowledges of MariaDB or MySQL dba. Set root user initial password # mysqladmin -u root password 'new-password' Create database, user account and set password for OwnCloud app # mysql -u root -p <enter password> mysql> CREATE database owncloud; mysql> GRANT ALL ON owncloud.* TO owncloud@localhost IDENTIFIED BY "new-password"; mysql> flush privileges; mysql> quit Verify if can connect by issue command: mysql -u owncloud -p OwnCloud Web Install Point browser to URL http://<owncloud-server>/owncloud/ Create admin account and fill in the appropriate database info gathered from previous steps above Internet Proxy It seemed OwnCloud v6.x has issue detecting Internet present if going throught a proxy. Once logged in as admin, clicked the admin tab, saw slow resolution and a message no Internet present. Next, tune the config.php file. Update file /var/www/html/owncloud/config/config.php by add blue lines <?php $CONFIG = array ( 'instanceid' => 'ocfd0df65227', OwnCloud Web Install 3
'passwordsalt' => 'd7e446c33def476222a1avd1c22149', 'trusted_domains' => array ( 0 => 'owncloud.domain.com', ), 'datadirectory' => '/var/www/html/owncloud/data', 'dbtype' => 'mysql', 'version' => '6.0.2.2', 'dbname' => 'ownclouddb', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud', 'dbpassword' => '<redacted>', 'overwriteprotocol' => 'https', 'has_internet_connection' => false, 'proxy' => 'proxy.domain.com:80', 'maintenance' => false, 'installed' => true, ); Cron Installation Add cron job under Apache user to perform update every 15 minutes # crontab -u apache -e Insert the following content # OwnCloud Update every 15 minutes */15 * * * * php -f /var/www/owncloud/cron.php Web URL Redirect http://owncloud.domain.com/ ==> https://owncloud.domain.com/owncloud/ In file /etc/httpd/conf.d/owncloud.conf, add the following blue lines ## Rewrite OwnCloud http to https <VirtualHost _Default_:80> RewriteEngine on RewriteRule ^/(.*)$ https://%{server_name}/owncloud/ [R,L] </VirtualHost> <Directory /var/www/html/owncloud> AllowOverride All </Directory> Cron Installation 4
Restart httpd # systemctl restart httpd.service Test **INFO** The above will not work with Reverse Proxy, theremore may want to disable if using Reverse Proxy. See Also See Also 5