To install ownCloud
Login as root
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_CentOS-6/isv:ownCloud:community.repo
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install owncloud
Restart Apache
service httpd restart
Setup SSL for a secure connection:
yum install mod_ssl
mkdir /etc/httpd/ssl
openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout /etc/httpd/ssl/apache.key -out /etc/httpd/ssl/apache.crt
This command will prompt terminal to display a lists of fields that need to be filled in.
The most important line is "Common Name". Enter your official domain name here or, if you don't have one yet, your site's IP address.
touch /etc/httpd/conf.d/ssl.conf
vi /etc/httpd/conf.d/ssl.conf
Find the section that begins with
Uncomment the DocumentRoot and ServerName line and replace example.com with your DNS approved domain name
or server IP address (it should be the same as the common name on the certificate):
ServerName example.com:443
Find the following three lines, and make sure that they match the extensions below:
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/apache.crt
SSLCertificateKeyFile /etc/httpd/ssl/apache.key
Your virtual host is now all set up! Save and Exit out of the file.
Restart Apache
/etc/init.d/httpd restart
Open Browser to your server's IP
https://your_ip/owncloud
Proceed to create a username and password for admin account.
Before submitting check under the “Advanced” dropdown for additional settings such as where is your data going to be stored and if you would like to use SQLite or MySQL
For this tutorial I will leave the data folder to default and use SQLite.
For a faster deployment you may want to use SQLite.
Upgrade To PHP 5.5
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-common
Increase Upload File Size greater than 513MB
cd /var/www/html/owncloud
vi .htaccess
And change the values for
php_value upload_max_filesize 513M
php_value post_max_size 513M
php_value memory_limit 512M
To your desired/limitation values
1G,2G,10G,… max is 16GB
Save the file and restart apache server
Done!