iFolder 3.8 on Opensuse 12.1 (or 11.4), Part 1

It looks like some people are working very hard out there to try and preserve iFolder for future versions of Opensuse.  To those people (the NoFolder crew, Ravi Kumar, etc.), I’m indebted; I simply would be at a loss without iFolder.  Yes, I use DropBox, and a couple other things, but there’s just nothing like iFolder for complete control over the server and the sync’d content.

But the sad fact is, it has suffered a bit of neglect as of late.  Okay, a LOT of neglect.  And you’re probably here because you have an Opensuse 12.1 (or 11.4) server, and you tried to install iFolder 3.8.x on it, and had some trouble.

Notes: I strongly recommend you see my old post about setting up iFolder 3.8 on Opensuse 11.1 for background and additional detail, as this post will be brief and to-the-point without much supporting detail.  All the work in this doc was performed on the x86_64 version of Opensuse, and was tested on both 12.1 and 11.4.

First, build up an Opensuse 12.1 box.  I tend to build them with “Minimum X Window”, “IPv6 Disabled”, “SSH enabled”, and a dedicated partition for iFolder database and content (like /ifolder); other then that, fairly typical.  And I never install patches during installation.  So updates are the first thing we do after completion:

zypper ref; zypper up

So first, decide on a single name that you will use for the server for the host configuration, certificate creation, Apache2 configuration, and iFolder service configuration; it is imperative that you use one name!  For the following examples, I use “ifolder.yourLinuxGuy.com“.  Let’s configure that critical name and static address:

yast lan
vi /etc/hosts

Now, let’s install all the supporting software we need (of course findutils isn’t needed for iFolder, but I can’t live without it; but mono-wcf is the one most people seem to miss):

zypper in apache2-worker findutils-locate apache2-mod_mono log4net mono-core mono-data mono-data-sqlite mono-web mono-winforms mono-wcf xsp libflaim

Next we configure apache2 and related components, starting by generating a certificate (obviously, replace the values to suit):

/usr/bin/gensslcert -c US -s MI -l "City" -o "Your Linux Guy" -e email@yourLinuxGuy.com -d -n ifolder.YourLinuxGuy.com

Add SSL to the APACHE_SERVER_FLAGS section:

vi /etc/sysconfig/apache2

Un-comment and change “ServerName” to match the name you put in /etc/hosts, and optionally set “ServerAdmin” to your email address:

cd /etc/apache2/vhosts.d/; cp vhost-ssl.template vhost-ssl.conf; vi vhost-ssl.conf

Now to open ports 80 and 443, set FW_SERVICES_EXT_TCP="80 443":

vi /etc/sysconfig/SuSEfirewall2

Next, we install the stars of the show, the iFolder packages:

rpm -Uvh http://download.opensuse.org/repositories/home:/rkumar1:/branches:/network:/ifolder:/server_stable/openSUSE_11.4/x86_64/ifolder3-enterprise-3.8.4.0.11091.1-6.2.x86_64.rpm
rpm -Uvh http://download.opensuse.org/repositories/home:/rkumar1:/branches:/network:/ifolder:/server_stable/openSUSE_11.4/x86_64/novell-ifolder-enterprise-plugins-3.8.4.10192.1-6.3.x86_64.rpm

Update: Reader Mike informs me that these links above are no longer in service. In the interim, here’s an alternate download location:

rpm -Uvh http://yourlinuxguy.com/wp-content/uploads/2012/03/ifolder3-enterprise-3.8.4.0.11091.1-6.2.x86_64.rpm
rpm -Uvh http://yourlinuxguy.com/wp-content/uploads/2012/03/novell-ifolder-enterprise-plugins-3.8.4.10192.1-6.3.x86_64.rpm

And run all 3 configuration scripts (remember, see my older post for reference and detail, and please note I use an alternative simias datastore location of /ifolder):

simias-server-setup
ifolder-admin-setup
ifolder-web-setup

A note about the next step: If you just stopped here, you’d be able to pull up the /admin page, but not log in; you’d get a red message saying that your password doesn’t match or whatever.  I see this error quite commonly out there…  So let’s change the FlaimWrapper softlink pointer to an existing location:

rm /usr/lib64/simias/web/bin/FlaimWrapper.so
ln -s /usr/lib64/libFlaimWrapper.so.0 /usr/lib64/simias/web/bin/FlaimWrapper.so

Let’s make sure Apache2 comes up at each boot:

chkconfig apache2 on

And lastly, restart stuff:

rcSuSEfirewall2 restart;rcapache2 stop; rcapache2 start

And that should do it!  Log in at /admin, configure some users, etc., etc., etc.  I’m guessing you are here because you know already how to *use* iFolder, just got stuck installing and configuring it, so I’ll not go into any usage detail.

By the way, the NoFolder.com page has some good troubleshooting tips, but if you follow these steps accurately, and you use the SAME hostname throughout the configuration, you should be fine.

See, it’s not that bad.  And it’s totally worth it.  Enjoy!
😉

Update, 20130324: Please see PART 2 of this post and story, after reading through the comments below to see how we arrived there….

 

44 Comments

  1. daniel lench

    what version of mono?
    are the permissions on the simias data folder correct?
    best,
    dan

  2. Jeremy Pavlov

    @ Dan –

    First, thanks for everything.
    To your question, I’m just using the built-in mono that came with the distros. No foolin’.
    On OS 12.1 (at this time), it is version 2.10.6-2.1.3.
    On my servers, I’m using /ifolder as the simias data folder parent, and though I don’t have it in front of me as I write this, I’m pretty sure the resulting /ifolder/simias folder shows wwwrun:www as owner… I’ll report back later with permissions…

    -Jeremy

  3. Stan Chelchowski

    Hi Jeremy,

    Nice to know your still with iFolder…

    FYI I have just received this comment at the bottom of a Bugzilla report..

    — Comment #8 from Andreas Jaeger 2012-03-28 09:00:25 UTC — Btw. we’ve dropped ifolder now from openSUSE.

    Hmm, not so good..

    Rgds.

    Stan Chelchowski

  4. Jeremy Pavlov

    @ Stan

    I just don’t get it.
    I guess I’ll keep figuring out ways to make it work, until it just doesn’t anymore.
    Then, I’ll be bitter.
    For now, I’m just thankful I have it, and it works.

    -Jeremy

  5. Mike

    Jeremy, thanks for all your hard work on keeping iFolder working. This is a great guide. Unfortunately, the repositories don’t contain the RPM’s anymore. Is there anywhere else that I can find those exact ones?

  6. Jeremy Pavlov

    @Mike –

    Wow, that was fast. Yeah, I have ’em, and I’ll put them up soon… Thanks for the heads-up!
    Update: I provided a second set of links to the files, on my own site. No warranty, etc….
    😉

    -Jeremy

  7. daniel lench

    Jeremy, how bout we get the files into the nofolder repo. I’m rebuilding my server right now and would like to add your info to the nofolder site with your blessings.

    call if you like

    best,
    dan

  8. Jeremy Pavlov

    @Daniel

    You are absolutely welcome to do that! I hope someone else will validate what I tossed together… After all, one stranger on a blog spouting a bunch of config stuff is considerably less significant than a community service site. It’s just my own discovery, as a hobbyist; rather than an organization.

    By the way, I’ve removed your number from your post…

    But yes, have at it! I’ve been feeling kinda’ sad about iFolder lately… It just doesn’t get the love it deserves… Alas…

    -Jeremy

  9. daniel lench

    Thanks Jeremy,
    I am syncing now on my new 12.1 server, the kicker really is the FlaimWrapper!
    I also like the simplified prerequisite section.

    The only thing I added was:
    a2enmod mono
    a2enmod rewrite

    Here are the rpms I gathered a while ago, the plugin version is different but so far it seems ok.

    http://nofolder.googlecode.com/files/ifolder3-enterprise-3.8.4.0.11091.1-6.1.x86_64.rpm
    http://nofolder.googlecode.com/files/ifolder3-enterprise-plugins-3.8.4.11003.1-2.1.x86_64.rpm

    I don’t code but i am hopeful some will join the nofolder initiative. In my personal opinion ifolder is too picky and needs to be rewritten from the ground up and without mono (what a task that will be) until then I will try to keep nofolder.com going, with the help of “hobbyists’ like ourselves.

    Interestingly enough there was a commit about a day ago to the trunk: http://ifolder.svn.sourceforge.net/viewvc/ifolder/trunk/

    And if you feel lucky you can mess with: http://ifolder.svn.sourceforge.net/viewvc/ifolder/branches/iFolder_3.9.0_updates/

    all the best,
    dan

  10. Peter Roden

    Hi Jeremy

    I just stumbled across your blog. I have had a few chats with Dan and it is good to see someone else passionate about ifolder.

    I am also keen to get ifolder working on 12.1 and also on other Linux distros.

    I am another fan of ifolder and like many would hate to see if go, which it will do when it is replaced by Filr.

    Novell will not, at least initially (or ever), be offering a community version of Filr. Have a look at the Filr webcast http://www.novell.com/communities/node/13551/novell-technology-update-february-2012-webcast-series.

    Filr will be rolled into OES 11 and a standalone paid version will be available. Richard Lindstedt of Novell mentions on the webcast that the standalone will be competitively priced. I would like to see a community version and an skeptical of how affordable or competitive the pricing will be.

    It looks like the initial versions of Filr will be a step backwards compared to the current offerings of ifolder. However it is clear than Novell are committed to Filr and growing it beyond ifolder.

    I must admit looking at Filr it does look impressive and is very much simpler to use and more natural with its integration into windows 7.

    However ifolder does have a good number of clients available, with Windows, Mac and Linux. The initial Filr will only have a Windows client. Their is debate as to whether a Windows XP client will be released given XP is coming to the end of its support life.

    What are people’s thoughts on ifolder vs Filr and future development? If the community wants to be involved it looks like it would have to take matters into its own hands like Dan’s nofolder.

    Has anyone else looked at Filr?

    regards

    Peter

  11. Jeremy Pavlov

    @Peter

    That’s great info and input.
    By the way… I, too, like what I have seen about Filr.

    -Jeremy

  12. daniel lench

    i’m getting some bad behavior like not all of the folder syncing on OS X 10.7 using ifolder server3.8.4 opensuse 12.1 mono 2.10

    os x client using mono 2.6.7 because with 2.10 the client errors out and the mono process never starts.

    can anyone confirm

    i am syncing over 100gb of files but it shouldn’t matter

  13. daniel lench

    i forgot…
    anyone have an idea about downgrading mono on opensuse 12.1 to 2.6.#
    probably have to do it from source

  14. Shanti

    If anyone has the specs and sources to these RPMS I’d be grateful for a link. I’d set up a project on obs to compile mono 2.6.7 and the latest (publicly available) ifolder sources, but lost it somehow.

    @daniel lench (I just emailed you btw) — my idea to compile mono 2.6.7 is to branch that version from an earlier openSUSE release on the build service, which is how I did it before.

  15. Matt

    Just wanted to reference another post that deals with some of the directory service mods for active directory. In order to authenticate multiple organizational units and a predictable refresh of LDAP users, the following was helpful. Basically you just add whichever ou search paths you want in the config file and turn on LDAP refresh on restart, so you can force a refresh by restarting Simias rather than always waiting for the LDAP to timeout (helpful in initial setup).

    Edit /installDir/simias/Simias.config

    AD Reference: http://blog.neero.net/2010/06/ifolder-38-and-active-directory.html
    In the Simias.config file, adjust the context setting to match AD organizational units (e.g. ou=Administrators)

  16. Peter Roden

    I took the plunge and decided to install a new openSUSE12.1 with ifolder on my cloud server. I was expecting a few issues and have been pleasantly surprised at how few i have encountered. Which i attribute to you guys, Jeremy and Dan especially.

    I followed, almost to the letter your install instructions in this blog post and have an ifolder solution that synchronizes to my Windows 7 client.

    The issue i have is when i try and upload files via the web interface. I get the messages:

    Exception Message: Method Not Allowed
    Exception Type: System.Net.WebException
    Exception Site: System.Net.WebResponse EndGetResponse(IAsyncResult)
    Exception Source: System

    Exception Stack:

    System.Net.WebException: Method Not Allowed
    at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in :0
    at System.Net.HttpWebRequest.GetResponse () [0x00000] in :0
    at Novell.iFolderApp.Web.UploadPage.UploadFile (System.Web.HttpPostedFile file, System.String PassPhraseStr) [0x00000] in :0
    at Novell.iFolderApp.Web.UploadPage.UploadButton_Click (System.Object sender, System.EventArgs e) [0x00000] in :0

    Username: John
    User Full Name: John Smith

    System iFolder Name: iFolder
    System iFolder Version: 1.0.0.0

    Server iFolder Version: 1.8.5.0
    Server CLR Version: 2.0.50727.1433
    Server Host: local
    Server Machine: local
    Server Operating System: Unix 3.1.10.1
    Server Username: wwwrun

    I searched through the apache access log and found the offending PUT commands:

    “PUT /simias10/Upload.ashx%3FiFolder=e50ac28f-2a4f-4dc3-8e30-6fee51e7c676&Path=iFolderTest/Lighthouse.jpg&Length=561276 HTTP/1.1” 405 2537

    The 405 code equates to method not allowed.

    Has anyone encountered the same issue, and if so how did you resolve it?

    many regards

    Peter

  17. Guido

    I have the same problem. The only thing I could find on the subject is this here:

    http://forums.opensuse.org/english/get-technical-help-here/applications/469429-os-12-1-ifolder-3-8-4-webaccess-cant-upload-download.html

    But unfortunately in complete. Anyone can shed some light on this?

    Thanks in advance

    Guido

  18. Poli

    Hi Jeremy!

    good to see, that there is still some live in the ifolder community.
    Recently I’ve upgraded to 12.1 (32-Bit edition) which break my ifolder installation.

    Tried different things (including installing from the sources) but there are stills some issues, so I can’t get it running.

    Now, after googling, found your post, which looks very promising, but I couldn’t find any rpm’s for a 32 Bit edition to download.

    Do you have any hint for me?

    Thanks a lot in advance!
    Poli

  19. Jeremy Pavlov

    @ Poli –

    I’m sorry to say that I didn’t grab the 32-bit ones before they disappeared…. Make sure to head over to noFolder.com and ask there (and voice your opinion in the poll)…

    Sorry…

  20. Poli

    Hi Jeremy,

    thanks for quick feedback.

    Visited already noFolder.com and also voted already.
    Would be great if the people there have the opportunity to keep ifolder alive.

    And for myself … well, depending on how the summer goes, I may switch my box to the x86_64 version of opensuse and retry following your instructions.

    Thanks a lot!
    Poli

  21. Aloke

    I am trying out ifolder3-enterprise-3.8.0.10191.1-5.1.x86_64.rpm on Ubuntu 12.

    Facing the same issue as Guido & Peter – 405, method not allowed, due to Apache blocking out the PUT request for file uploads from the browser.

    Tried setting up password-less WebDav access for the /simias10 (Location) defined in simias.conf.

    The upload still doesn’t. The error though changes to a 403 (instead of 405):
    —-
    [Thu Jul 05 18:12:58 2012] [error] [client 10.10.87.141] Unable to PUT new contents for /simias10/Upload.ashx?iFolder=62c78f8c-144f-47ca-bcc1-f53c3853a363&Path=kingOfApache/insidePache/tester1.txt&Length=146. [403, #0]
    [Thu Jul 05 18:12:58 2012] [error] [client 10.10.87.141] (2)No such file or directory: An error occurred while opening a resource. [409, #0]
    —–

    Am able to map another alias to the simias data directory & give it password less WebDav access. So it’s no longer just Apache blocking out requests.

    Understandably this kind of WebDav access is risky. However, my intent at the moment is to get the upload to work one way or another.

  22. Aloke

    Visited & voted on noFolder.com.

  23. Aloke

    Solved now & without WebDav. Here are the changes:

    1. Made apache the owner of the simias lib folder
    sudo chown -R www-data:www-data /usr/lib64/simias

    2. Applied to rewrite rule mentioned (see: http://forums.opensuse.org/english/get-technical-help-here/applications/469429-os-12-1-ifolder-3-8-4-webaccess-cant-upload-download.html)

    Added this twice, for both HTTP (/etc/apache2/sites-available/default) & HTTPS (/etc/apache2/sites-available/default-ssl) virtual hosts.

    Now I am able to upload files via the web browser.

  24. Graham

    Hi Jeremy,

    Thanks for your excellent guide, we have successfully installed iFolder thanks to it.

    We do seem to be experiencing an issue with the web client and was hoping you (or someone here) might have seen it too and found a workaround. It is the same error that shantikulkarni talks about in the link that @aloke posted above.

    Once the first user logs out, the web client goes into a redirect loop.

    He does talk about using Mono v2.6.7 – is this the only solution?

    Regards,

    Graham

  25. Mark Akins
  26. Nuno

    Hello guys,

    Following your instructions, I managed to set up iFolder 3.9 on a OSS 11.3 distro, without no problems. I can connect via web and some clients are working ok. But in some of them, I’m having login troubles with, with the following error:

    “An error was encountered while connecting to ifolder server. please verify the information entered and try again if the problem persists, please contact your network administrator.”

    I’m having this error on some Windows 7 x64 and x86 Vista. I’ve tried the following:

    I have tried this with ifolder client 3.8.0 & 3.8.0.3
    I have tried both the fqdn and the ip to connect to the server
    I have tried both ssl and nonssl in my settings.
    I have tried running as administrator
    I have tried reinstalling the client several times
    I have rebooted the server.

    I’m not using LDAP.
    On the client logs can’t find any clue of what kind of error is.
    Is there an easy fix for this issue?
    Why does my web interface and iPad client work and not all my windows 7 & Vista?
    Is there any other information you will need to help me fix this issue?

    I’m trying to keep up with iFolder, but due to this problem, I’m thinking to get down to the drawing board again and find another similar solution/alternative to iFolder.

    Thank you all.

    Nuno.

  27. daniel

    nuno, 3.9? are you sure it’s 3.9, if it is then you’ll need a 3.9 client.

    try this walkthrough: http://www.nofolder.com/documentation/installation/server/opensuse/opensuse_11-3/

  28. José

    @ Graham, have you manage to solve that problem? I have the same problem, and cant get it to work.

    Anyone else has had the problem that Graham reportes?

  29. daniel

    Everybody, we at nofolder.com have confirmation from a developer of ifolder that it was developed in .NET 1.1
    All mono version after 2.6.7 remove .NET 1.1 support

    also we have ifolder 3.9 server and clients on our google code page: http://code.google.com/p/nofolder/downloads/list

    I am updating the recommendation to 11.4 with mono 2.6.7 along with a video to be released shortly.

    best,
    dan

  30. Jeremy Pavlov

    @ daniel

    Wow, thanks for that update!!

  31. bdaykid

    Hi, i followed your instruction and installation and setting were a success. but when i try to open the admin page, it says ‘wrong username and password’. I use LDAP. i tried all username and password already. If there’s any issues ifolder have with LDAP, i would like to know. and can you or any other here share your thoughts on this matter. Thank you in advance and sorry for my poor english 🙂

  32. Chris

    I was able to get this working with oS 12.2 without a problem. The only thing I had to do differently was download the libflaim RPM from the software.opensuse.org site, as it wasn’t a part of the repos that came with the OS.

  33. daniel

    Chris, yes 12.2 implements xflaim an xml based and the successor to flaim. iFolder is developed under .NET 1.1 which was removed in mono 2.8+ thats why we’re working on building mono 2.6.7 from source.
    what mono version are you running and i’m curious how your stability is.

    best,
    dan from nofolder

  34. Jeremy Pavlov
  35. bdaykid

    Hi again.. iFolder is running okay without ldap. But when i use ldap, i can’t login with the username and password i have set. I’ve tried installing without ldap and try to configure it from admin page but i get “The LDAP directory type is unknown!” error.

  36. Chris

    Sorry for the delayed response, I kind of forgot to check back :/ I’ll remember to check the “email me” boxes this time.

    @daniel:
    Here are the mono versions I’m running:
    mono-web-2.10.6-5.6.1.x86_64
    mono-wcf-2.10.6-5.6.1.x86_64
    mono-core-2.10.6-5.6.1.x86_64
    mono-extras-2.10.6-5.6.1.x86_64
    mono-mvc-2.10.6-5.6.1.x86_64
    mono-data-2.10.6-5.6.1.x86_64
    mono-data-sqlite-2.10.6-5.6.1.x86_64
    mono-winforms-2.10.6-5.6.1.x86_64
    apache2-mod_mono-2.10-9.1.2.x86_64

    Stability has been, well, perfect 🙂 The server has been up for the last 40 days and 23 hours at this point, and there haven’t been any crashes, instability, performance issues, etc.

    BTW – thanks so much for maintaining iFolder! It’s an amazing project and my “IT Guy” life would be so much more annoying without it :o)

    @Jeremy:
    Yep, that’s the RPM I used 🙂 Thanks so much for the writeup; I wouldn’t be on oS 12.2 without it :o)

    @bdaykid:
    I haven’t used iFolder with LDAP since openSuSE 11.4, so I don’t know for sure if the process is totally the same or not. But in case it helps any, these are the notes I took when setting it up back then:

    —Install the ifolder3-enterprise and novell-ifolder3-enterprise-plugins packages. The packages need to be the same revision numbers or you might run into problems like unmet dependencies such as for mono(Simias.LdapProvider). [[Follow Jeremy’s directions above for this and the associated requirements]]

    —Create a new mount point with name ifolder to store the data in (instead of the default iFolder data location, I use a separate mount point instead to separate my iFolder data from my regular OS stuff.)

    —Set up CA server
    Yast…security and users…ca management
    create root ca
    ca name: MyServerHostname
    ca common name: MyServerHostname.MyDomain.net
    email address: postmaster@MyDomain.net
    organization: My Domain
    Locality: City
    State: State
    password: MyPassword

    —Set up LDAP server
    Yast…Network Services…LDAP Server
    Start LDAP Server: Yes
    Standalone server: Yes
    No TLS
    Database type: hdb
    base dn: dc=MyDomain,dc=net
    admin dn: cn=Administrator
    Append base DN: yes
    LDAP Admin password: MyPassword
    Database directory: /var/lib/ldap
    Use this database as the default for openldap clients: yes

    —Enable SSL for LDAP
    -Create and export SSL cert
    Make directory /etc/ssl/servercerts
    Yast…Security and Users…CA Management
    Description tab…Advanced…Export to LDAP
    Enter the ldap password, leave the defaults and enter the LDAP password again
    -Export root cert to file
    Description tab…Advanced…Export to File
    Only the certificate in PEM format
    /etc/ssl/servercerts/root.crt
    -Export root cert and key
    Description tab…Advanced…Export to FIle
    Certificate and Key in PKCS12 format
    (password is root password)
    /etc/ssl/servercerts/rootkey.crt

    —Add new cert for MyServerHostname
    Certificates tab…Add…Server Certificate
    Common name: MyServerHostname.MyDomain.net
    Email address: postmaster@MyDomain.net
    All other defaults…next
    CA password as cert password
    next…create
    Export new cert to file
    Certificates tab…select cert…Export…Export as common server cert
    Enter password, hit ok
    Certificates tab…select cert…Export…Export to file
    Cert and key in unencrypted PEM format
    /etc/ssl/servercerts/MyServerHostname.crt
    Yast…Network Services…LDAP Server
    Expand Global Settings…TLS Settings
    Enable TLS, Enable LDAP over SSL interface
    CA Certificate file: /etc/ssl/servercerts/root.crt
    Certificate file: /etc/ssl/servercerts/MyServerHostname.crt
    Certificate key file: /etc/ssl/servercerts/MyServerHostname.crt

    —Configure the LDAP client on the server
    Yast…Network Services…LDAP Client
    Use LDAP
    Server address 127.0.0.1
    Base DN: dc=MyDomain,dc=net
    No SSL
    Create home directory on login
    Advanced configuration…Administration Settings
    Admin DN: cn=administrator,dc=MyDomain,dc=net
    Home Directories on this machine

    —Set up Apache
    Yast…Network Services…HTTP Server
    Default ports and addresses
    Most defaults
    Server modules – enable SSL
    -Create SSL certs:
    Generate private key: openssl genrsa -out /etc/apache2/ssl.key/MyServerHostname.key 2048
    Generate CSR: openssl req -new -key /etc/apache2/ssl.key/MyServerHostname.key -out /etc/apache2/ssl.csr/MyServerHostname.csr
    Log into the Yast ca server to issue the cert
    Go to requests tab, then Import
    Browse to the CSR, select it, hit ok
    Go to Request…Sign…As server certificate
    Pick the number of days, next, Sign Request
    After certificate is signed, go to Certificates tab, select cert
    Export…to file
    Certificate in PEM, saved to /etc/apache2/ssl.crt/MyServerHostname.crt
    -Set up SSL vhost
    Copy /etc/apache2/vhost.d/ssl-vhost.template to ssl.conf
    Change the locations for the server cert and key cert
    Set the ServerName value to be MyServerHostname.MyDomain.net:443
    Edit /etc/sysconfig/apache2; set: APACHE_SERVER_FLAGS=”SSL”
    Restart Apache
    should be able to access https://ip.add.re.ss

    run /usr/bin/simias-server-setup
    simias server data path: /ifolder/simias/data
    name of the server: MyServerHostname
    ssl: ssl
    public url: https://MyServerHostname.MyDomain.net/simias10
    private url: same as above
    slave server? no
    system name: ifolder
    system description: ifolder enterprise system
    key recovery agent: yes
    cert path: /ifolder/simias/data
    user ldap? yes
    ldap server 127.0.0.1
    ldap secure? no
    ldap admin dn: cn=administrator,dc=MyDomain,dc=net
    ldap admin pw: MyPassword
    System admin dn: cn=administrator,dc=MyDomain,dc=net
    system admin pw: MyPassword
    ldap proxy dn: cn=simiasproxy,dc=MyDomain,dc=net
    ldap proxy pw: MyPassword
    ldap search dn: dc=MyDomain,dc=net
    naming attribute: cn
    config apache? yes
    config groups? yes

    run /usr/bin/ifolder-admin-setup
    use all defaults except:
    ifolder url: https://MyServerHostname.MyDomain.net

    run /usr/bin/ifolder-web-setup
    use all defaults except:
    ifolder url: https://MyServerHostname.MyDomain.net

    Restart apache

    Run chown -R wwwrun:www on /var/lib/www then to rerun the initial setup (simias-server-setup followed by ifolder-admin-setup and then ifolder-web-setup.)

    [[Make sure to follow Jeremy’s instructions above, you have to change the symlink mentioned or you won’t really be able to do much.]]

    You’ll want to set up a user in LDAP; you’ll have to assign it a password (typically userPassword attribute). Make sure that the naming attribute you specify (“cn” above,) is set for your user (typical potential options are “cn” and “uid”.) When I was setting up users, I was using LdapAdmin for Windows ( http://sourceforge.net/projects/ldapadmin/ ). I know there are Linux alternatives, but I had already been using it at work and it was easy to do.

    Once you’ve completed this, you should be able to log into the iFolder admin page as your administrator user. You’ll want to go to the “Users” tab and “enable” and “provision” your LDAP user before you’ll be able to log into iFolder as them.

    Hope that helps!

  37. Chris

    Oh, and – @Nuno –
    I ran into this exact issue when I was still on oS 11.4. Make sure you have a ServerName directive in your Apache vhost file with the FDN of your server (should be the same as the URL you type into your address bar.) So like:


    ServerName MyServerHostname.MyDomain.net

  38. Koti

    Hi Gurus,

    I have tried to install ifolder 3.8 on 12.1 , failed , getting errors, while uploading the files.

    tried to download 3.9 and install conflicting mono 6.7

    mono 6.7 code downloaded from google tried , but still failed 3.9 on 12.1 same errors mono version 6.7 is needed.

    Kindly guide me which version of OS and ifolder for stable system.
    Thanks for your support

  39. Chris

    Hi Koti!

    I’m currently running iFolder 3.8.4.0.11091.1-6.2.x86_64 and mono 2.10.6-5.6.1.x86_64 on oS 12.2 x64 without any problems.

    If you need help doing the setup, check out the link Jeremy posted in his original post; If you’re having trouble using those versions, if you can post specific error messages, etc., we can try to help you out.

    Chris

  40. Chris

    One thing I’ve run into recently – whenever I try to upload/download files from the web interface, it would give me errors about “Method not allowed.” I stumbled across this oS posting:

    http://forums.opensuse.org/english/get-technical-help-here/applications/469429-os-12-1-ifolder-3-8-4-webaccess-cant-upload-download.html

    that seemed to encounter the same thing. I was able to apply his rewrite rule and it does allow me to upload files now, but after my session times out, or I log out, I can’t log in again (it gives me the same redirect problem as he was seeing.)

    I’m wondering if it could just be that the rewrite rule isn’t specific enough, but I don’t know enough about formatting them to be able to modify the rule. Is there a way to modify that rewrite rule, or is there some other potential fix (other than having to try to get an old version of mono to work?)

  41. Chris

    Ok, I figured it out.

    First, I’m sorry I over-posted – my last post was the same thing as Guido and Aloke said earlier in the thread.

    Applying the fix that worked for Aloke didn’t work for me.

    Ultimately, it ended up being the solution in the opensuse.org post mentioned by all three of us – the Mono version. The link in the opensuse.org post was dead, but I found shantikulkarni’s repos here:

    http://download.opensuse.org/repositories/home:/shantikulkarni:/ifolder/openSUSE_12.1/

    I needed these RPMs from his repository:
    apache2-mod_mono-2.6.3-4.1.x86_64.rpm
    mono-data-sqlite-2.6.7-4.1.x86_64.rpm
    mono-web-2.6.7-4.1.x86_64.rpm
    mono-core-2.6.7-4.1.x86_64.rpm
    mono-extras-2.6.7-4.1.x86_64.rpm
    mono-winforms-2.6.7-4.1.x86_64.rpm
    mono-data-2.6.7-4.1.x86_64.rpm
    mono-wcf-2.6.7-4.1.x86_64.rpm
    xsp-2.6.5-38.1.noarch.rpm

    as well as the log4net RPM (the one that came with oS 12.2 worked fine.)

    After uninstalling the mono v2.10 that came with oS 12.2 and reinstalling 2.6.7 (and removing the mod-rewrite entries from my Apache vhost,) so far everything seems to be working fine.

    (I didn’t have to uninstall and reinstall the iFolder RPMs, just told YaST to break their dependencies, since I knew I’d be reinstalling Mono in a few minutes.) After installing the new (…er…old) RPMs and restarting Apache, all seems happy. Will post back if that ends up not being the case.

  42. Jeremy Pavlov

    @ Chris –

    Absolutely awesome. I can’t wait to try this… after I snapshot my VM, of course… 😉

    Thanks!
    -Jeremy

    Update, 20130324: Please see PART 2 of this post and story…. http://yourlinuxguy.com/?p=981

  43. Hannah

    hi!!
    i just did all the setup for ifolder (simias-server-setup, ifolder-admin-setup, ifolder-web-setup), and it went well. however, i cannot open webpage(https://www.mydomain.org/admin). it says “this webpage cannnot be used.” i have double check my apache2 setting. nothing has been found. could you tell me where might go wrong with?

  44. daniel

    Hannah, can you pastebin some logs from the apache and simias log files. Also have a look through the tutorial and check your hostnames, all places that need them. Double check you configs. And try to access http://server/simias10 that should give you an access denied page if its working well.
    http://www.nofolder.com/wp-content/uploads/2011/05/ifolder-walkthrough-11.3.pdf

    Also if you would be kind enough to subscribe at nofolder.com for updates to the project.

    Best,
    Daniel

Leave a Comment

Your email address will not be published. Required fields are marked *