LinHES Forums
http://forum.linhes.org/

OwnCloud SOLVED!
http://forum.linhes.org/viewtopic.php?f=22&t=22846
Page 1 of 2

Author:  mikavir [ Wed Nov 07, 2012 9:21 am ]
Post subject:  OwnCloud SOLVED!

Hello Everyone!

I'm not too skillful with linux, but am nevertheless trying to get OwnCloud working on LinHES 7.4. I'd love to have my very own, virtually unlimited cloud service!

I've managed to download and link the package directories from owncloud.org to /data/srv/httpd/htdocs/owncloud -so far so good. After restarting lighttpd the configuration page could be reached, but it complained about missing modules, namely zip, pdo, and gd. In /etc/php/php.ini I found that these modules were commented out, so I uncommented them to activate them. After lighttpd restart, all but gd complaints disappeared from the page. I checked the directory /usr/lib/php/modules/ and found out that while zip.so and pdo.so were there, the gd.so was missing. I _guessed_ that the gd was not compiled in with php, but checking with php -i it states '--with-gd=shared'. So to my knowledge the module was compiled in, but why it is not there? (One thing I don't understand is from php -i: prefix=usr, but --with-gd=shared -isn't it always /usr/share?)

This is the problem: to my understanding the gd.so module is missing, and I don't know how to get it. What should I do to have the module working?

I guess I could get php source and recompile, but I don't dare to do that -at least without help. I would most probably end up with a broken LinHES system. After all, the web server is what makes LinHES far beyond any other system!
_______________
I've lived with KnoppMyth/LinHES for almost six (EDIT: seven) years now, and I could say I'm addicted to it...:D I love it so much, and I couldn't live without it. I am very greateful for you all, who have made LinHES available!!

"E"

Author:  RacerX [ Thu Nov 08, 2012 12:46 am ]
Post subject:  Re: OwnCloud

Go to Linhes.org and click on Issues, then create a login id.

Next, open up a "feature request" asking for the program to be added to the repository. That a good place to start before messing up your system

Author:  mikavir [ Thu Nov 08, 2012 3:47 am ]
Post subject:  Re: OwnCloud

Thank you RacerX for your support! Messing up my system (once again) is a horrifying thought... :shock:

My login ID works on those pages, too. A request was one of my ideas, but, since my knowledge of the lighttpd/php system is so weak, I did not know if I'm barking at the right tree. I wanted to have confirmation that making a request is the way to go. If there's nobody instructing me otherwise, I will move on to writing one. And writing a wiki page of the experience is one thing, if (and when) I get this to work.

Do you understand the php -i information, where it seems that gd was included, but the module is still missing?
____________________
I have thought of other options for this. I could add a dedicated computer to my network, or I could have a virtual instance running the distro for OwnCloud. However, my LinHES computer has enough spare cycles for serving the cloud. On the other hand, running a virtual computer inside my LinHES box seems a bit ridiculous... And I think I'm very close to having the cloud working with the present server.

"E"

Author:  mikavir [ Thu Nov 22, 2012 8:06 am ]
Post subject:  Re: OwnCloud

Oh my... I wrote a feature request #867 two weeks ago, and there is no sign of activity. Has everyone put their minds to v. 8.0?

To try something, I downloaded php-5.3.3 sources and tried making the module from the code. After making a /usr/include/freetype link pointing to /usr/include/freetype2/freetype, the module compiled. I Copied manually the obtained gd.so to /usr/lib/php/modules/ and checked ownership and permissions. After restarting lighttpd (actually several times and rebooting), the page still insists "PHP module GD is not installed", I guess because the downloaded source code does not match the 5.3.3-8 version of php installed.

So even after my measly efforts, I'm still stuck.

Author:  graysky [ Thu Nov 22, 2012 9:13 am ]
Post subject:  Re: OwnCloud

Why not just adapt the Arch version to LH to help the devs help you? In my experience, feature requests are implemented much faster if you supply the completed worked :p

https://aur.archlinux.org/packages/owncloud

Author:  mikavir [ Wed Nov 28, 2012 11:17 am ]
Post subject:  Re: ownCloud

Thank you, graysky! Picking up the pieces...

Getting and installing ownCloud:
Code:
lynx https://aur.archlinux.org/packages/owncloud
tar xvf owncloud-4.5.2.tar.bz2
sudo cp -a owncloud /data/srv/httpd/htdocs/
sudo chown -R http:users /data/srv/httpd/htdocs/owncloud

This did not bring any progress to what I wrote in the first post. Since the gd.so is not in the directory, it's (obviously) missing... Searching the aur.archlinux.org, I stumbled upon php-gd. It contains only the gd.so module, so I think that LinHES developers could include this package to the repositories.

Or is it possible to add aur.archlinux.org repositories and then install php-gd without compromising my system? The versions don't match, though (php-5.3.3-8 installed and php-gd-5.4.9-1 in aur).

BTW: I misspelled the package originally, it is called ownCloud, not with an O.

Author:  mikavir [ Thu Nov 29, 2012 12:47 am ]
Post subject:  Re: ownCloud SOLVED!

Cecil provided php-gd (in the testing repo) and after installation ownCloud works!!!

I also got information from jams that php-gd is included in R8. I will be testing this in a virtual machine.

Thank you very much Cecil and jams!!!

Author:  mikavir [ Wed Dec 12, 2012 11:09 am ]
Post subject:  Re: OwnCloud SOLVED!

Now that I finally had some spare time, I was able to test the LinHES 8. Installing ownCloud was pretty easy, as it initially complained about missing iconv and gd modules. I had to install php-gd with pacman and uncomment extension=iconv.so in /etc/php/php.ini, but after restarting lighttpd the owncloud page worked as expected.

Author:  jams [ Thu Dec 13, 2012 4:00 pm ]
Post subject:  Re: OwnCloud SOLVED!

Glad to hear it.

Author:  marc.aronson [ Mon Dec 31, 2012 12:17 pm ]
Post subject:  Re: ownCloud SOLVED!

mikavir wrote:
Cecil provided php-gd (in the testing repo) and after installation ownCloud works!!!


I am on LINHES 7.2 -- "pacman -Sy php-gd" did not succeed. Can I resolve this by editing /etc/pacman.conf or do I need to upgrade to 7.4? If the former, what do I need to add to pacman,conf? Thanks!

Author:  mikavir [ Tue Jan 01, 2013 8:47 am ]
Post subject:  Re: OwnCloud SOLVED!

I do have 7.4, but I don't know, if it is a requirement. Anyway, php-dg seems to be found on core-testing repository, so start by checking that [core-testing] is not commented out in /etc/pacman.conf.

Author:  marc.aronson [ Tue Jan 01, 2013 9:24 am ]
Post subject:  Re: OwnCloud SOLVED!

mikavir wrote:
I do have 7.4, but I don't know, if it is a requirement. Anyway, php-dg seems to be found on core-testing repository, so start by checking that [core-testing] is not commented out in /etc/pacman.conf.

I do not have any lines in my /etc/pacman.conf that contain the words "core-testing". I would appreciate your pasting that section of your pacman.conf into a post, thanks!

Author:  mikavir [ Thu Jan 03, 2013 1:48 pm ]
Post subject:  Re: OwnCloud SOLVED!

Sorry for a bit late answer, here are the two lines that define it in /etc/pacman.conf:

[core-testing]
Server = http://linhes.org/repo/$arch/$repo

Author:  marc.aronson [ Fri Jan 04, 2013 3:53 pm ]
Post subject:  Re: OwnCloud SOLVED!

mikavir wrote:
Sorry for a bit late answer, here are the two lines that define it in /etc/pacman.conf:

[core-testing]
Server = http://linhes.org/repo/$arch/$repo

Thanks for the pointer! I have it installed and running. I am now trying to enable https access so that it is safe to expose it outside my firewall. Have you figured out how to do this yet? I tried following these instructions, but it cut off all access to the webserver...

Marc

Author:  mikavir [ Sun Jan 06, 2013 10:44 am ]
Post subject:  Re: OwnCloud SOLVED!

Quote:
I have it installed and running.

Nice :)
I haven't had time to think about securing the connection, though...

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/