I twice messed up mi OMV following different guides, either resulting in oc not working or working on the 80 posrt, instead of 8080
I really think there would be lot of people glad to have an OwnCloud specific plugin
either have the website plugin able to direclty create the right apache2 conf files for more than just one website
[req] OwnCloud plugin
-
-
Hi there,
i had the same problem last days . But i made it, not a plugin - just a method to install an instance of OwnCloud. I spent much time to figure out how to configure server, OwnCloud docs are not realy helpful this way.
I'll describe how you get OwnCloud working on your OMV Installation, just follow the steps.
First of all please check that all presuppositions are fulfilled.
Please don't be afraid of the Errors, that some packages can't be found, the packagenames are outdated on the ownCloud.org describtion.
In an current version of OMV 0.3 or 0.4+ all needed packages are still included.Codeapt-get install apache2 php5 php5-common php-xml-rpc php-mbstring php5-zip php5-gd apt-get install php5-sqlite curl libcurl3 libcurl4-openssl-dev php5-curl php-pdo
download OwnCloud files from this site,
http://owncloud.org/support/install/i.e for current stable version 4.5.2
after this navigate to the folder where your download of the OwnCloud archive has gone and extract the files
tar will extract all files to the new owncloud folder,
Coderoot@noname:/home/root# ls -la total 17936 drwxr-xr-x 3 root root 4096 Nov 15 11:47 . drwxr-xr-x 5 root root 4096 Nov 9 15:28 .. drwxr-xr-x 13 nobody nogroup 4096 Nov 14 09:32 owncloud -rw-r--r-- 1 root root 9153993 Nov 14 09:33 owncloud-4.5.2.tar.bz2
Then we have to copy the owncloud folder to the apache www-folder. (this is just a suggestion you can choose the path you want to - for more information have look at http://wiki.apache.org/httpd/)
In this HowTo i will use the path /var/www/.
Change the user to the "apache2-user" in case of an OMV-Installation this will be the user openmediavault and grant the rights for the needed folders.Codecp -R owncloud/ /var/www/ cd /var/www/ mkdir owncloud/data chown -R openmediavault:openmediavault owncloud/apps/ owncloud/config/ owncloud/data/
We have finished the first part now lets configure the apache2.
I won't use the website-plugin in OMV, had many try's with it and didn't worked they way it should!
Our URL to the owncloud-website will be http://myopenmediavault-ip:port/owncloud -
i.e http://192.168.178.21:80/owncloudCreate a new file for the owncloud directory in the openmediavault-webgui.d folder
Edit the created file and paste in the config shown below,
Code
Alles anzeigen### Config for owncloud ### Alias /owncloud /var/www/owncloud <Directory /var/www/owncloud/> Options +Indexes <FilesMatch \.php$> FcgidWrapper /var/www/owncloud/php-fcgi .php SetHandler fcgid-script Options +ExecCGI </FilesMatch> AllowOverride All Order allow,deny allow from all </Directory>
save the changes to the file and exit nano.copy some files needed from omv installation,
Codecd /var/www cp openmediavault/php-fcgi owncloud/php-fcgi cp -R openmediavault/cgi/ owncloud/ cd owncloud/ chown -R openmediavault:openmediavault php-fcgi cgi/
edit the php-fcgi file in owncloud folder find the line
replace it withchange to cgi folder, open the php.ini, get to the end of the file,
replace the OMV Settings with these lines
Code
Alles anzeigen;;;;;;;;;;;;;;;;;;;;;;;;;;; ; OwnCloud settings ; ;;;;;;;;;;;;;;;;;;;;;;;;;;; ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; http://php.net/session.save-path session.save_path = "/tmp" ; Name of the session (used as cookie name). ; http://php.net/session.name session.name = OCSESSID
Now enable 2 modules in apache2 that are required.
then restart apache2 to enable all changes you made.
If everything runs without errors, you could access your owncloud via webaccess.
BUT before your complete the installation of OwnCloud, create a MySQL database.Last but not least, install the mySQL OMV plugin and configure it.
<<Settings>>
Port: 3306 (default)
Bind Adress: 127.0.0.1 (localost)
--> "Data"
SQL Data Volume: select a media where to Store MySQL Data,
set a MySQL root password (you'll need for owncloud installation).Switch to <<Database>> tab, "Add" a new database for your owncloud service.
Name: owncloud
Collation: UTF-8 Unicode (utf8_general_ci)One Recommendation, use a alternativ path where owncloud should store your data!
Create a "data" folder on a OMV-drive and change it's owner to "openmediavault", i.e.Codemkdir /media/393743b2-180a-4d2d-b6cc-f1187887c82d/data/ chown -R openmediavault:openmediavault /media/393743b2-180a-4d2d-b6cc-f1187887c82d/data/
then, run the OwnCloud config by calling http://ip-to-omv/owncloud, under "advanced" change the path data-folder to your just new created folder.
i.ehttp://ip-to-omv/owncloud, i.e. http://192.168.178.21/owncloud and you'll get a mask for OwnCloud config.
Type in your settings and enjoy the full cloud running on your own OMV-instance! -
Hello ,
thanks @ thejoker8814 , tonight I try your configuration . Because my Owncloud not work well . -
Hi,
Thanks for this tutorial !
Unfortunately, this didn't worked for me
I get an "Internal Server Error" when trying to open the configuration gui for Owncloud at http://ip-of-my-server/owncloud/
Any idea of the problem ?
I installed the current 4.5.4 version of owncloud, every steps mentionned in your tutorial worked fine though... Probably a misconfiguration of Apache2
-
worth to try owncloud, thanks for sharing
-
This is my next project, thank you for the guide.
Now I am thinking about pointing that data directory to a greyhole share thru the local samba mount. Anyone do this? Don't see any reason why this wouldn't work. But because it works, doesn't mean its a good idea -
Zitat von "Tetsuo6995"
Hi,
I get an "Internal Server Error" when trying to open the configuration gui for Owncloud at http://ip-of-my-server/owncloud/
Any idea of the problem ?
I got this problem when I didn't chown -R openmediavault the data directory or one of the other directories listed above. i.e. it is a permissions problem somewhere in /var/www/owncloud
So Installed OK using the above guide, the web interface worked great, but kept getting authorization errors trying to use caldav/carddav (I am on fedaykin.)
Then I found this:https://github.com/seidler2547…388b20471c3b96bd86ae14fa7
After doing all those changes realized I had to install the headers module
sudo a2enmod headers
service apache2 restartNow I can sucessfully log in and access cardDAV and calDAV and synchronize with my mail client (Thunderbird 17)
Only then do I find out that you cannot share contacts between owncloud accounts, so wife and I have to use the same account to share our contacts with each other. Kinda weak, owncloud!
-
Hi .
I tried to make this guide , but does not work for me , i use a virtualhost , example ( http://owncloud.mysite.com ) . can I see an example of configuration of the virtual host ? Thanks -
Hi all
what do I have to do to grant "owncloud" access to the local storage?
Some owner-change group-add or so?thanks in advance
Roberto -
Zitat von "roberto99"
Hi all
what do I have to do to grant "owncloud" access to the local storage?
Some owner-change group-add or so?thanks in advance
Robertocan rally no one help on this?
Danke
Roberto -
Zitat von "roberto99"
can rally no one help on this?
Danke
Roberto[UPDATE]
No, wait... I got you wrong... that was not what you wanted...[WRONG!]
Create a virtual link to your storage inside your OwnCloud personal files folder, something like owncloud/data/username.http://unixhelp.ed.ac.uk/CGI/man-cgi?ln:
I think that can solve your problem. -
Not working for me.
Apache has two port 80 assignments
My first one is wordpress
Everytime I type http://my-omv-ip-address:80/owncloud
I get to the wordpress login pageForgive me, but how do I assign owncloud a different port?
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!