Jumat, 09 September 2016

Create OwnCloud on Centos


Everyone loves using services like Dropbox or Boxnet. It's almost 2012 - everyone has some kind of Cloud (buzz buzz) storage! Half of us do have hardware laying around that we'd love to convert into our own 'cloud server' but never came across the right software. Instead we pay $9.99 each month to places like dropbox for 50gigs.

Luckily, the people at OwnCloud.org have released their own open source software that works as a web app ready to help you store things, create bookmarks, keep a calendar, contacts, etc.. AND share it to anyone you want.. using YOUR hardware!

This should take about 10 minutes. We're starting with a new install of CentOS 5.7 on a VPS from IQnection.

First, install the webtatic repo:

Code:
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
Next, install the things needed for OwnCloud:
1
yum -y install --enablerepo=webtatic git-all mysql mysql-server httpd php php-pecl-zip php-mysql php-mbstring


Let's make sure that httpd and mysqld start each boot and that they're started now:
1
2
3
4
5
chkconfig --levels 235 mysqld on
chkconfig --levels 235 httpd on
service mysqld on
service httpd on


For the sake of quick articles, we're going to use the main server doc root .. cd into it and grab the latest owncloud:
1
2
3
cd /var/www/html
git clone git://gitorious.org/owncloud/owncloud.git


Get the installation ready..
1
2
3
4
5
chown -R apache.apache owncloud/
mkdir owncloud/data
chmod 750 owncloud/data
chmod 777 owncloud/config


Let's create a database and add a user:
1
2
3
4
5
mysql -u root -p
CREATE DATABSE owncloud;
GRANT ALL ON owncloud.* TO 'owncloud'@'localhost' IDENTIFIED BY '733Tpass';
GRANT ALL ON owncloud.* TO 'owncloud'@'localhost.localdomain' IDENTIFIED BY '733Tpass';


Edit the httpd conf file and make sure AllowOverride is set to All so our .htaccess works:
(find the following in your httpd.conf and match it up)
1
2
3
4
5
6
7
8
vim /etc/httpd/conf/httpd.conf
"/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>


Now, point your favorite web browser at your new installation ( something like: http://192.168.0.40/owncloud/ ) and have fun!

First use, you'll have to create an admin username and password, as well as give your mysql information that you created earlier. As long as you followed these instructions, you should be good to go. Leave a comment if you run into any issues - I may have missed writing something down! Source By LinuxForum

Tidak ada komentar: