From Fedora Project Wiki
Javiertury (talk | contribs) |
Javiertury (talk | contribs) No edit summary |
||
Line 18: | Line 18: | ||
$ systemctl start mariadb</pre> | $ systemctl start mariadb</pre> | ||
= Create a database = | |||
Log in as root | |||
<pre>mysql -u root -p</pre> | |||
Create a new databse | |||
<pre>CREATE DATABASE owncloud;</pre> | |||
Create a new user and grant him privileges | |||
<pre>CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; | |||
GRANT ALL PRIVILEGES ON owncloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';</pre> | |||
Reload privileges and quit | |||
<pre>FLUSH PRIVILEGES; | |||
quit</pre> | |||
= Setup owncloud = | |||
Next, open the file <code>/etc/owncloud/config.php</code> and configure the following values | |||
<pre>"dbtype" => "mysql", | |||
"dbname" => "owncloud", | |||
"dbuser" => "username", | |||
"dbpassword" => "password", | |||
"dbhost" => "localhost", | |||
"dbtableprefix" => "",</pre> | |||
In your browser open <code>localhost/owncloud</code> |
Revision as of 18:30, 1 May 2014
ownCloud is a AGPLv3 private file server
Features
- Online file storage
- Android compatibility
- Contacts(CarDAV) and calendar (CalDAV) synchronization
- Music streaming
- Many more
Installation with Apache and MariaDB
$ su root $ yum install owncloud owncloud-mysql owncloud-httpd
Start MariaDB and Apache if they weren't already
$ systemctl start httpd $ systemctl start mariadb
Create a database
Log in as root
mysql -u root -p
Create a new databse
CREATE DATABASE owncloud;
Create a new user and grant him privileges
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON owncloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';
Reload privileges and quit
FLUSH PRIVILEGES; quit
Setup owncloud
Next, open the file /etc/owncloud/config.php
and configure the following values
"dbtype" => "mysql", "dbname" => "owncloud", "dbuser" => "username", "dbpassword" => "password", "dbhost" => "localhost", "dbtableprefix" => "",
In your browser open localhost/owncloud