个人工具

“UbuntuHelp:IFolderEnterpriseServer”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第21行: 第21行:
 
Also, you must edit the file <code><nowiki>/usr/lib/pkgconfig/libflaim.pc</nowiki></code> to change <code><nowiki>name</nowiki></code> to look like <code><nowiki>Name</nowiki></code> (notice the capital letter). According to this [https://launchpad.net/distros/ubuntu/+source/libflaim/+bug/66944 bug] it's will never be fixed for Dapper Drake. Otherwise, you will get an error while compiling.
 
Also, you must edit the file <code><nowiki>/usr/lib/pkgconfig/libflaim.pc</nowiki></code> to change <code><nowiki>name</nowiki></code> to look like <code><nowiki>Name</nowiki></code> (notice the capital letter). According to this [https://launchpad.net/distros/ubuntu/+source/libflaim/+bug/66944 bug] it's will never be fixed for Dapper Drake. Otherwise, you will get an error while compiling.
 
<pre><nowiki>name: libflaim
 
<pre><nowiki>name: libflaim
 +
 
become
 
become
 +
 
Name: libflaim
 
Name: libflaim
 
</nowiki></pre>
 
</nowiki></pre>
第67行: 第69行:
 
It's now the time to configure the server. This tool will create a configuration file for Apache and place it in /etc/apache2/conf.d/simias.conf.
 
It's now the time to configure the server. This tool will create a configuration file for Apache and place it in /etc/apache2/conf.d/simias.conf.
 
<pre><nowiki>sudo simias-server-setup
 
<pre><nowiki>sudo simias-server-setup
 +
 
[...]
 
[...]
 
</nowiki></pre>
 
</nowiki></pre>
 
At this time, there still some bug in this configuration tool. For this reason, you have to edit the file it's create and change the location of mod_mono.conf file.
 
At this time, there still some bug in this configuration tool. For this reason, you have to edit the file it's create and change the location of mod_mono.conf file.
 
<pre><nowiki>Include /etc/apache2/mod_mono.conf
 
<pre><nowiki>Include /etc/apache2/mod_mono.conf
 +
 
Become  
 
Become  
 +
 
Include /etc/apache2/mods-enabled/mod_mono.conf
 
Include /etc/apache2/mods-enabled/mod_mono.conf
 
</nowiki></pre>
 
</nowiki></pre>

2007年12月6日 (四) 10:36的版本

The ifolderServer are mainly compose of Simias module running as a server under apache. Apache must support ASP.Net pages, it's means that mod_mono pluging are need. Note : This HowTo are based on the existing HOWTO present on the iFolder official web page. Because the wiki are read only I place this version here and update the procedure to work with the current sources version. (December 4, 2007)

Dapper Drake (6.10)

This section present how to compile, install and configure Simias module. Finally, it's explain how to configure apache to work with Simias.

Getting sources

Until some one release a tar.gz for a specific version of iFolder, you have to get the source from the SVN server. To proceed ensure you have subversion package install by executing sudo apt-get install subversion. The following command will create a new directory named simias where every file will be download. I recommend you to execute this command in your home folder.

svn co https://forgesvn1.novell.com/svn/simias/trunk/simias simias

Install Dependencies

Before going any further, you must ensure that you have enable universe repository. Any way, if it's not the case apt-get will show you some errors. Execute this command to install every dependencies.

sudo apt-get install liblog4net-cil uuid uuid-dev libxml2 libxml2-dev automake1.9 libncurses5-dev libcommoncpp2-1.3c2a libstdc++5 libtool pkg-config build-essential mono-mcs libflaim4 libflaim-dev libmono-dev

Fix libflaim

I don't know why, but the current version of Simias look for the file libfl.a and libfl.so. This file correspond to the libflaim.a and libflaim.so respectively. Maybe, under openSUSE the flaim library create this file and Ubuntu thought it's was a better idea to rename this file ! Why not ! To fix this, you have to create a symbolic link with this command.

 sudo ln -s /usr/lib/libflaim.a /usr/lib/libfl.a
sudo ln -s /usr/lib/libflaim.so /usr/lib/libfl.so

Also, you must edit the file /usr/lib/pkgconfig/libflaim.pc to change name to look like Name (notice the capital letter). According to this bug it's will never be fixed for Dapper Drake. Otherwise, you will get an error while compiling.

name: libflaim

become

Name: libflaim

Compile

You have to configure simias with the autogen.sh script. You can set the installation directory by changing prefix value. I chose to install it in /usr/local. The simiasdatadir argument define the location where user data will be store. the sysconfdir argument define the location of configuration file of Simias (not all files).

 cd simias/
./autogen.sh --prefix=/usr/local --with-simiasdatadir=/var/lib/simias --sysconfdir=/etc  --with-runasserver

If the script exit without any error and display something like Now type 'make' to compile Simias, you can continue and execute this next command that will compile Simias.

 make

Install

Finally, you must install it by executing this command. A good alternative is to install it by using the checkinstall tool that will create a .deb file. This way it's more easy to remove it. If your not sure, just execute the following command.

 sudo make install

If all of this command exit without any error, it's mean that Simias are install correctly. You can continue by configuring Simias.

Setup Apache2

You have to get a proper installation of Apache 2. If it's not already done, install Apache 2 by executing the following command.

sudo apt-get install apache2

Also, you need to install other package to support asp.net. Just execute this command to do so. Everything will be configure for you.

sudo apt-get install libapache2-mod-mono mono-apache-server mono-apache-server2

Then, restart apache and check if it's running well by browsing it.

 sudo /etc/init.d/apache2 restart

Finally create the file /etc/apache2/uid.conf with this content. This file are use by Simias configuration tool to know the user and group used by Apache.

User www-data
Group www-data

Setup environment

Before executing the Simias configuration tool, it's better to execute this set of command that define some permission setting to directory.

sudo mkdir -p /var/www/.config/.mono/
sudo chown -R www-data:www-data /var/www/.config/
sudo mkdir -p /var/lib/simias
sudo chown -R www-data:www-data /var/lib/simias
sudo chmod -R 770 /var/lib/simias
sudo mkdir /var/log/ifolder3
sudo chown -R www-data:www-data /var/log/ifolder3

IMPORTANT stop apache service.

sudo /etc/init.d/apache2 stop

Configuring the server

It's now the time to configure the server. This tool will create a configuration file for Apache and place it in /etc/apache2/conf.d/simias.conf.

sudo simias-server-setup

[...]

At this time, there still some bug in this configuration tool. For this reason, you have to edit the file it's create and change the location of mod_mono.conf file.

Include /etc/apache2/mod_mono.conf

Become 

Include /etc/apache2/mods-enabled/mod_mono.conf

It's now time to start apache server.

sudo /etc/init.d/apache start

You can check if it's working by browsing to http://exemple.com/simias10. A dialog box should appear asking you to enter your login information. You must give the one you enter in the configuration of Simias. You should see an HTTP error 404. When browsing to http://exemple.com/simias10/DomainService.asmx you should see a page with some information.

Setup iFolder Admin WebAccess

Setting up iFolder WebAccess

Troubleshooting

- While restarting apache, ... must restart mono server

Needs Packaging

There is a demand for a package in the launchpad

Other ressources

Some documentation on the iFolder Wiki for configuring iFolder Enterprise Server on Dapper. You can find it here.