This article is outdated and may not work correctly for current operating systems or software.
It provides universal access to your files via the web, your computer or your mobile devices — wherever you are. It also provides a platform to easily view and sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web.
The steps on this tutorial will help you to install ownCloud on your CentOS-powered virtual server using Apache, PHP and SQLite. You can use MySQL instead, but it’s easier with SQLite.
Keep on account that you will need root privileges for issuing some of the commands below. If you don’t know what I mean, there is a great tutorial from the community here.
Let's get started with some basic commands to run Apache with PHP (and some necessary modules) on our virtual server. Log into your SSH console as root and issue the following command.
yum -y install httpd php php-gd php-intl php-sqlite php-xml-parser sqlite
Once installed, you will be able to start Apache.
service httpd start
It's highly recommended to config your system to run Apache whenever your virtual server boots up. This can be done using a simple command.
chkconfig httpd on
That’s all! Go ahead and type your server’s address into your favorite browser to check that Apache is working fine.
We need to use the
wget command for downloading ownCloud. Install
wget by issuing the following command.
yum -y install wget
Now that we have
wget installed we can use it for downloading the installation files from ownCloud’s website. You can find the latest version of this file by visiting the official site.
You almost got it! Let’s try uncompressing it with the
tar -xjf owncloud-6.0.0a.tar.bz2
Remember to change the version if you have downloaded a newer version during the previous step.
You can move the ownCloud files to your public folder by running a simple command.
mv owncloud /var/www/html
/var/www/html path is the main directory of your web server, so the ownCloud installation will be accessible from
http://yourdomain.com/owncloud. You can change it, it doesn’t matter.
Now we need to set the correct permissions for Apache’s user. This can be done running these three commands.
chown -R apache:apache /var/www/html/owncloud/apps chown -R apache:apache /var/www/html/owncloud/config chown -R apache:apache /var/www/html/owncloud/data
Almost done! The final step will be easy, I promise.
If you’ve ran all these commands, your ownCloud installation should be ready to go. Open
http://yourdomain.com/owncloud on your browser and fill the registration form. You’re done!
Remember that you can download awesome clients for your devices for keep your information synced with your new personal cloud. Happy coding!