[ServOO-users] servooserver installation
Status: Beta
Brought to you by:
glodel
From: felipe _ <fel...@ho...> - 2005-06-29 15:37:03
|
<html><div style='background-color:'><DIV class=RTE> <P>Hi,</P> <P>I had a lot of work to do so i let in stand by the installation of servooserver.</P> <P>Now i'm trying to install it, but i have a problem. I can't log on the administration of servoo.</P> <P>I tried to create an account via the DB, but i can't log on with this account to.</P> <P>Here is what i do and the configuration i have. something might be wrong in the config.php file?</P> <P>Thanks for give me a hand.</P> <P lang=en-GB><BR><BR></P> <H1 class=western lang=en-GB>Requirements</H1> <UL> <LI> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">PHP 4.3.x or higher. Not tested with PHP 5.</P> <LI> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">MySQL 3.23, 4.x or higher.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>I have xampp installed with php4.3 and MySQL 4.</FONT></FONT></P> <LI> <P style="MARGIN-BOTTOM: 0cm"><SPAN lang=en-GB>Java run-time machine. Tested with J2SE© Sun and JRE for Linux (</SPAN>blackdown.org<SPAN lang=en-GB>)</SPAN></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=4><B>j2sdk1.4.1_08</B></FONT></FONT></FONT></P> <LI> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">OpenOffice.org 1.1.1 or higher.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>Oo 1.1.4</FONT></FONT></P> <LI> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">PEAR package: SOAP and its dependencies.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>Ok, the package is in servooserver\servoo\include</FONT></FONT></P> <LI> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Web server. Tested with Apache.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>Apache (with xampp)</FONT></FONT></P></LI></UL> <H1 class=western lang=en-GB>Installation</H1> <H2 class=western lang=en-GB>Download</H2> <P style="MARGIN-BOTTOM: 0cm"><SPAN lang=en-GB>The ServOO archive is named servooserver-x.x.tar.gz and is available from </SPAN><A href="http://sourceforge.net/project/showfiles.php?group_id=113878"><SPAN lang=en-GB>Servoo project page</SPAN></A><SPAN lang=en-GB> on SourceForge.net. Download the latest version.</SPAN></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>Ok</FONT></FONT></P> <H2 class=western lang=en-GB>Extract the sources</H2> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Decompress and detar the archive in a temporary directory. Move or copy the servooserver/servoo directory into your web document root (with Mandrake distro it is /var/www/html).</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">tar zxf servooserver-0.0.1.tar.gz</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">cp -r servooserver/servoo /var/www/html</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>Ok, i have copied all the rpertory servooserver on my web document root</FONT></FONT></P> <H2 class=western>Install java, OpenOffice.org and PEAR/SOAP</H2> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Download and install a java machine, OpenOffice.org and PEAR/SOAP on the web server.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Suggested url for downloading these packages:</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><A href="http://java.sun.com/j2se/1.4.2/download.html">http://java.sun.com/j2se/1.4.2/download.html</A></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><A href="http://blackdown.org/">http://blackdown.org</A></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><A href="http://www.openoffice.org/">http://www.openoffice.org/</A></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><A href="http://pear.php.net/package/SOAP">http://pear.php.net/package/SOAP</A></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Start the OpenOffice.org program and go to Tools/Options. Look for the Openoffice/Security entry. Select Run macro: Never and disable pluggins and applets. Note that these settings may be insufficient to ensure security. The PEAR packages must be installed in a directory listed in the PHP include_path or installed locally in the servoo/include directory.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>ok</FONT></FONT></P> <H2 class=western lang=en-GB>Initialise the database</H2> <P style="MARGIN-BOTTOM: 0cm">Create a new MySQL database named servoodb for instance. As root or as another authorized user:</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">mysqladmin create servoodb</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Create the tables</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">mysql servoodb <servoo/include/init.sql</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Create MySQL user for the servoodb database and grant some privileges:</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">GRANT usage ON *.* TO servoouser@localhost IDENTIFIED BY 'chooseapasswd'</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">GRANT all ON servoodb.* TO servoouser@localhost</P> <H2 class=western><FONT color=#800000><SPAN style="FONT-STYLE: normal"><SPAN lang=en-GB>UI created a DB servoodb wich contains 4 table admins, log</SPAN></SPAN>, session, user »</FONT></H2> <H2 class=western lang=en-GB>Configure ServOO</H2> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Copy the servoo/config-dist.php file into servoo/config.php and edit it:</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">cd /var/www/html/servoo/</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">cp config-dist.php config.php</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">vi config.php</P> <P style="MARGIN-BOTTOM: 0cm">Fill the variables DATABASE, DBUSERNAME, DBPASSWD, DBHOST , <SPAN lang=en-GB>JAVACMD, OOCLASSESPATH, OOFILEMASK and OOTMPDIR </SPAN>accordingly to your settings. </P> <P style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>My config.php file</FONT></FONT></P> <P style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># perturbate the password encoding.</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define ("PASSWDSEED","");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># Database name</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("DATABASE","");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># Database username</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("DBUSERNAME","");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># Database user's password</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("DBPASSWD","");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># Database server hostname or ip</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("DBHOST","localhost");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># Table prefix</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("TP","");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># Webmaster email address to receive subscription information</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("WEBMASTER","");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># JAVA command</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("JAVACMD","/usr/java/j2sdk1.4.1_02/bin/java");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># working directory for OpenOffice.org</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("OOTMPDIR","/tmp");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># mask mode for file exchange between the web server and OOo.</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("OOFILEMASK",0777);</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># directory to the OpenOffice JAVA classes.</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("OOCLASSESPATH","/usr/local/OpenOffice.org1.1.0/program/classes");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># timeout for the OO converter.</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("EXEC_TIMEOUT",30);</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># log file when the documentconverter fail</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("EXEC_LOGFILE","/var/servoo/log");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># version d'OpenOffice</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("OPENOFFICEVERSION","1.1");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># message renvoie</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define ("MESSAGEVERSION","Visit http://www.servoo.net");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># host surlequel est le serveur OpenOffice</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("OOHOST","localhost");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># port du serveur OpenOffice sur le host</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("OOPORT","9303");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># chemin relatif pour le repertoire d'include</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("TOINCLUDE","include/");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># URL contenant les fichiers communs partagés</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># par exemple $shareurl="http://lodel.revues.org/share";</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># la version sera ajoutee sur le dernier repertoire, donc la chaine ne doit pas se terminer par /</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>$shareurl="/share";</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># Nom de la session (cookie)</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("SESSIONNAME","sessionservoo");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># Timeout pour les sessions</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2># en seconde</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>define("LOGINTIMEOUT",120*60);</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>ini_set("log_errors","1");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>ini_set("display_errors","0");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>ini_set("error_log","/tmp/servoo.err");</FONT></FONT></FONT></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=fr-FR style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT face="Courier New"><FONT size=2>?></FONT></FONT></FONT></P> <P style="MARGIN-BOTTOM: 0cm"><BR></P> <P style="MARGIN-BOTTOM: 0cm"><BR></P> <P style="MARGIN-BOTTOM: 0cm"><BR></P> <P style="MARGIN-BOTTOM: 0cm"><BR></P> <P style="MARGIN-BOTTOM: 0cm"><BR></P> <P style="MARGIN-BOTTOM: 0cm">Give <SPAN lang=en-GB>write access for the web server user (nobody, apache, or...) to servoo/CACHE and servoo/admin/CACHE directories:</SPAN></P> <P style="MARGIN-BOTTOM: 0cm">chmod 770 servoo/CACHE servoo/admin/CACHE</P> <P style="MARGIN-BOTTOM: 0cm">or</P> <P style="MARGIN-BOTTOM: 0cm">chmod 777 servoo/CACHE servoo/admin/CACHE</P> <P style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>Under windows, i allow write access</FONT></FONT></P> <P style="MARGIN-BOTTOM: 0cm"><BR></P> <P style="MARGIN-BOTTOM: 0cm">Opening write access may be a security issue. It is recommended to use sudo module for Apache or PHP as a CGI with correct group/users settings. For testing purpose, restrict web server access and use a firewall.</P> <P style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>???</FONT></FONT></P> <H2 class=western>Testing</H2> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Test the configuration by creating a proper administrator.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">A temporary administrator has been automatically created during the MySQL tables creation. Log on http://localhost/servoo/admin/ with username: <I>admintmp</I> and password: <I>admintmp</I>. Enter ServOO Administrator, create your administrator account and <U>delete the admintmp administrator</U>. Create also a first ServOO user, remember the login/password for setting in your web apps.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><FONT color=#800000><FONT size=4>Problem, i can't log on the administration </FONT></FONT></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">To use Servoo, launch OpenOffice.org in server mode:</P> <P style="MARGIN-BOTTOM: 0cm">soffice -accept="socket,host=localhost,port=9303;urp;StarOffice.ServiceManager"</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">Or use the servooserver/tools/startoo script.</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm">When i run this script i have:</P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P><PRE lang=en-GB><FONT color=#800000># Script for lauching OpenOffice.org in a development context only.</FONT> <FONT color=#800000># See the servoo script for use in operational context.</FONT> <FONT color=#800000>soffice -accept="socket,host=localhost,port=9303;urp;StarOffice.ServiceManager"</FONT></PRE> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <H1 class=western><BR><BR></H1> <P style="MARGIN-BOTTOM: 0cm" align=center><BR></P> <H2 class=western lang=en-GB><BR><BR></H2> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P> <P lang=en-GB style="MARGIN-BOTTOM: 0cm"><BR></P></DIV></div><br clear=all><hr>250 Mo de stockage <a href="http://g.msn.com/8HMAFRFR/2740??PS=47575" target="_top">avec MSN Hotmail !</a> </html> |