vels
07-02-2001, 11:32 AM
Hi
How do I get IMAP support??
http://www.velsnet.dk/horde/test.php3
And how do I fix the other probz...?
How do I get IMAP support??
http://www.velsnet.dk/horde/test.php3
And how do I fix the other probz...?
![]() | View Full Version : horde.org IMP vels 07-02-2001, 11:32 AM Hi How do I get IMAP support?? http://www.velsnet.dk/horde/test.php3 And how do I fix the other probz...? jks 07-02-2001, 02:29 PM Originally posted by vels Hi How do I get IMAP support?? http://www.velsnet.dk/horde/test.php3 And how do I fix the other probz...? Hi Jesper, I see that you're trying "on your own" now :-) You need to install the IMAP devel from University of Washington. Afterwards you need to recompile your PHP with --with-imap which includes IMAP client support in PHP. You'll also need to modify your php.ini to get rid of that magic_quotes_gpc error. Also I see that you need to have PHPLib includes, otherwise IMP will not work. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 02:41 PM Is it: http://rpmfind.net/linux/RPM/redhat/7.1/i386/imap-devel-2000-9.i386.html I need...? And how do I install a rmp...?? Is it the same as a pkg in the GUI..?? jks 07-02-2001, 02:44 PM Originally posted by vels Is it: http://rpmfind.net/linux/RPM/redhat/7.1/i386/imap-devel-2000-9.i386.html I need...? And how do I install a rmp...?? Is it the same as a pkg in the GUI..?? Nope, I don't think that's the correct RPM. You need to ensure that you do not overwrite the IMAP installation already on the RaQ -- else you will loose IMAP capabilities. You must install RPMs from telnet -- you cannot do it via the GUI. You use: rpm -i packagename -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 03:42 PM Are a RaQ4 born with Imap?? can i run './configure' '--with-imap=../imap' or where can I finde the Imap rpm..? iplexx 07-02-2001, 03:45 PM Raq4 already is IMAP enabled... what Raq do you have? seems you're running php 4.0.4pl1, RaQ4 originally comes with 4.0.3pl1 vels 07-02-2001, 03:49 PM You can see phpinfo(): http://www.kajkage.dk/ I have a RaQ4 jks 07-02-2001, 03:50 PM Originally posted by vels Are a RaQ4 born with Imap?? can i run './configure' '--with-imap=../imap' or where can I finde the Imap rpm..? Yes, the RaQ4 is born with IMAP _server_ support. The Cobalt PHP comes with IMAP _client_ support. You seem to have upgraded your PHP - and it does not have IMAP client support. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 03:54 PM Yes... I have tryed update php....... What pack do I need...? vels 07-02-2001, 05:30 PM In phpinfo() under Loaded Modules: mod_imap vels 07-02-2001, 06:05 PM I have found this: ftp.cobaltnet.net/pub/products/raq4/rpms/imap-4.7c2-C1.i386.rpm ftp.cobaltnet.net/pub/products/raq4/rpms/imap-devel-4.7c2-C1.i386.rpm But how do I install rpm -i imap-devel-4.7c2-C1.i386.rpm or??? And do I need to do more...? before I get IMAP support..? jks 07-02-2001, 06:13 PM Originally posted by vels I have found this: ftp.cobaltnet.net/pub/products/raq4/rpms/imap-4.7c2-C1.i386.rpm ftp.cobaltnet.net/pub/products/raq4/rpms/imap-devel-4.7c2-C1.i386.rpm But how do I install rpm -i imap-devel-4.7c2-C1.i386.rpm or??? And do I need to do more...? before I get IMAP support..? The RPM command is corret, yes. Well, you need to recompile your PHP to include IMAP support. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 06:26 PM Im total new in the in the *nix world..... How recompile php.....? And now when I need to do this how du I install GD-lib? And there any other good thing I must install when I need to recompile....? jks 07-02-2001, 06:28 PM Originally posted by vels Im total new in the in the *nix world..... How recompile php.....? And now when I need to do this how du I install GD-lib? And there any other good thing I must install when I need to recompile....? Just do it the same way as when you upgraded PHP the first time. Just add an --with-imap to the configure command. You can install gdlib by rpm - that's the easiest. Troels Arvin makes a great set of RPMs. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 06:39 PM And where can I finde Troels Arvin's rpm's jks 07-02-2001, 06:42 PM Originally posted by vels And where can I finde Troels Arvin's rpm's http://rpms.arvin.dk/ -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ http://www.raqsupport.net/ vels 07-02-2001, 06:50 PM When I rpm -i imap-devel-4.7c2-C1.i386.rpm package imap-devel-4.7c2-C1 is already installed Should I then.....: ./configure --with-mysql --with-apxs --enable-track-vars --with-imap jks 07-02-2001, 07:04 PM Originally posted by vels When I rpm -i imap-devel-4.7c2-C1.i386.rpm package imap-devel-4.7c2-C1 is already installed Should I then.....: ./configure --with-mysql --with-apxs --enable-track-vars --with-imap Yep, yep. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 07:05 PM YEAH now IMAP :) On Troels Arvin's homepage are there: PDFlib RPM. PDFlib's requirements are: RPM-based Linux distribution with glibc 2.1 or later. Example: Red Hat Linux 6.x or 7. zlib version 1.1 or above libjpeg version 6b or above libtiff version 3.5 or above version libpng 1 or above where can I find this to a raq4...?? When I have rmp - i gd-devel-1.8.3-7.i586.rpm are GBlib working then..? jks 07-02-2001, 07:09 PM Originally posted by vels YEAH now IMAP :) On Troels Arvin's homepage are there: PDFlib RPM. PDFlib's requirements are: RPM-based Linux distribution with glibc 2.1 or later. Example: Red Hat Linux 6.x or 7. zlib version 1.1 or above libjpeg version 6b or above libtiff version 3.5 or above version libpng 1 or above where can I find this to a raq4...?? When I have rmp - i gd-devel-1.8.3-7.i586.rpm are GBlib working then..? Well, go hunting on rpmfind.net - that's the easiest. You have to rpm -i both the ordinary gd rpm and the devel rpm. You will then have to recompile PHP yet another time. (Oh, and it's GD-lib - not GBlib) -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 07:12 PM Another Horde /IMP question.... What are LDAP...?? LDAP Support: No Something I need to Install....? jks 07-02-2001, 07:31 PM Originally posted by vels Another Horde /IMP question.... What are LDAP...?? LDAP Support: No Something I need to Install....? LDAP = Lightweight Directory Access Protocol (altså en telefonbog) In IMP it is used to lookup emailaddresses in public "phonebooks" of emailaddresses. It's not a requirement for using IMP. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 08:03 PM Now I have copyed horde/phplib -> /usr/lib/apache/php When I edit /usr/local/lib/php.ini and change: include_path = '/usr/local/apache/php:.' auto_prepend_file = /usr/local/apache/php/prepend.php3 and then I got a error (i have change It back so now the server work normal....) But is not the right thing I do.....? jks 07-02-2001, 08:08 PM Originally posted by vels Now I have copyed horde/phplib -> /usr/lib/apache/php When I edit /usr/local/lib/php.ini and change: include_path = '/usr/local/apache/php:.' auto_prepend_file = /usr/local/apache/php/prepend.php3 and then I got a error (i have change It back so now the server work normal....) But is not the right thing I do.....? Not quite. I would prefer adding an htaccess file that sets the include path - and just keep phplib in the directory under horde in the site web dir. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ http://www.raqsupport.net/ vels 07-02-2001, 08:18 PM So i should make a .htaccess and put this in: include_path /home/sites/home/web/horde/phplib auto_prepend_file //home/sites/home/web/horde/phplib/prepend.php3 and save the .htaccess in the root of horde...? jks 07-02-2001, 08:23 PM Originally posted by vels So i should make a .htaccess and put this in: include_path /home/sites/home/web/horde/phplib auto_prepend_file //home/sites/home/web/horde/phplib/prepend.php3 and save the .htaccess in the root of horde...? Not quite -- you need to prepend both lines with php_value Otherwise it won't work. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-02-2001, 08:26 PM php_value ??? iplexx 07-02-2001, 11:44 PM I guess JKS means php_value_include_path /home/sites/home/web/horde/phplib php_value_auto_prepend_file /home/sites/home/web/horde/phplib/prepend.php3 vels 07-03-2001, 05:25 AM Hi I have now made a .htaccess file with: php_value_include_path /home/sites/home/web/horde/phplib php_value_auto_prepend_file /home/sites/home/web/horde/phplib/prepend.php3 But see the Error: http://www.velsnet.dk/horde/test.php3 http://www.velsnet.dk/horde/ vels 07-03-2001, 08:52 AM Now :) http://www.velsnet.dk/horde/test.php3 But what have I done wrong....? http://www.velsnet.dk/horde/test.php3?mode=phplib-horde vels 07-03-2001, 09:09 AM This is my local.inc ----------------------- <?php /* * $Horde: horde/phplib/local.inc,v 1.3.2.7 2000/09/21 13:48:43 bjn Exp $ * * This is the Horde local.inc file for PHPLIB. You can either include * this file in your local.inc, replace your local.inc with it, or * copy the necessary contents over. There's no need for these to be * the only classes in local.inc. * * Please read through this file's comments to make sure the settings * reflect your desired configuration. */ /* * Session storage definition * * This section defines what medium to use for session storage. The current * choices are: * - SQL database (MySQL, by default) * - Shared memory * - LDAP * - DBM database * * Note that only one storage type can be used at one time, so uncommenting * multiple types below will result in errors. */ /* To use an SQL database, uncomment and edit the following: */ class HordeDB extends DB_Sql { var $Host = 'localhost'; var $Database = 'vels'; var $User = 'vels'; var $Password = 'xxxxxxxxx'; var $Port = '3306'; function halt($msg) { // Printing here causes race condition trouble, so don't. //printf("<b>Database error (HordeDB):</b> %s<br>\n", $msg); } } class HordeCT extends CT_Sql { var $database_class = ''; // Which database class to use... var $database_table = 'active_sessions'; // and find our data in this table. } /* To use shared memory, uncomment and edit the following: */ /* NOTE: If you do this, you must edit prepend.php3 to include ct_shm.inc instead of ct_sql.inc */ #class HordeCT extends CT_Shm { # var $max_sessions = 500; // number of maximum sessions # var $shm_key = 0x123754; // unique shm identifier # var $shm_size = 64000; // size of segment #} /* To use LDAP, uncomment and edit the following: */ /* NOTE: If you do this, you must edit prepend.php3 to include ct_ldap.inc instead of ct_sql.inc */ #class HordeCT extends CT_Ldap { # var $ldap_host = "localhost"; # var $ldap_port = 389; # var $basedn = "dc=your-domain, dc=com"; # var $rootdn = "cn=root, dc=your-domain, dc=com"; # var $rootpw = "secret"; # var $objclass = "phplibdata"; #} /* To use a DBM database, uncomment and edit the following: */ /* NOTE: If you do this, you must edit prepend.php3 to include ct_dbm.inc instead of ct_sql.inc */ #class HordeCT extends CT_DBM { # var $dbm_file = '/users/chuck/horde/lib/session.dbm'; #} /* * The following classes define our session, authentication, and user * properties. You probably don't need to make any changes to them. */ class HordeSession extends Session { var $classname = 'HordeSession'; var $cookiename = ''; // defaults to classname var $magic = 'chuckmIMP'; // ID seed var $mode = 'cookie'; // We propagate session IDs with cookies var $fallback_mode = 'get'; var $lifetime = 0; // 0 = do session cookies, else minutes var $that_class = 'HordeCT'; // name of data storage container var $gc_probability = 5; var $allowcache = 'no'; // don't allow any caching of pages } class HordeSessionCached extends HordeSession { var $allowcache = 'private'; // allow private caching of pages } ?> And I have past this In phpmyadmin: # # Table structure for table 'active_sessions' # CREATE TABLE active_sessions ( sid varchar(32) DEFAULT '' NOT NULL, name varchar(32) DEFAULT '' NOT NULL, val text, changed varchar(14) DEFAULT '' NOT NULL, PRIMARY KEY (name,sid), KEY changed (changed) ); # # Table structure for table 'imp_addr' # CREATE TABLE imp_addr ( user varchar(120) DEFAULT '' NOT NULL, address varchar(120) DEFAULT '' NOT NULL, nickname varchar(255), fullname varchar(255), PRIMARY KEY (user,address) ); # # Table structure for table 'imp_pref' # CREATE TABLE imp_pref ( user varchar(120) DEFAULT '' NOT NULL, fullname varchar(70), replyto varchar(70), lang varchar(30), sig text, PRIMARY KEY (user) ); jks 07-03-2001, 09:10 AM Originally posted by vels Now :) http://www.velsnet.dk/horde/test.php3 But what have I done wrong....? http://www.velsnet.dk/horde/test.php3?mode=phplib-horde You have to edit the local.inc phplib configuration file in order to choose the database you want to use. -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.com, http://www.mermaidconsulting.com/ vels 07-03-2001, 09:41 AM I don not understand this...: var $database_class = ''; // Which database class to use... the database I use is vels but in the sql there are nothing about class.....??? So is $database_class = 'vels' when i do that i get this error Fatal error: Cannot instantiate non-existent class: vels in /home/sites/home/web/horde/phplib/ct_sql.inc on line 36 jks 07-03-2001, 09:47 AM Originally posted by vels I don not understand this...: var $database_class = ''; // Which database class to use... the database I use is vels but in the sql there are nothing about class.....??? So is $database_class = 'vels' when i do that i get this error Fatal error: Cannot instantiate non-existent class: vels in /home/sites/home/web/horde/phplib/ct_sql.inc on line 36 No, vels is a database _name_, not a class. A class would be HordeDB or DB_SQL -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ vels 07-03-2001, 10:15 AM YEAH!!!! http://www.velsnet.dk/horde/test.php3?mode=phplib-horde when I try: http://www.velsnet.dk/horde/setup.php3 Please go to the top level directory for your installation and run "sh ./install.sh"; this will enable the configuration manager. Then I telnet: and go to: /home/sites/home/web/horde and type sh ./install.sh then it says: Your blank configuration files have been created, please go to the configuration utitlity at: http://example.com/horde/setup.php3 BuT it still says: Please go to the top level directory for your installation and run "sh ./install.sh"; this will enable the configuration manager. vels 07-03-2001, 11:00 AM hi I have now upload imp to the horde and rund setup.php3 and i have chmod 000 /home/sites/home/web/horde/setup.php3 BUT http://www.velsnet.dk/horde/index.php3 :(( vels 07-03-2001, 12:34 PM Hi I have solve my problem, and run IMP now :) I will thanks jks a lot because he help my much :) jks 07-03-2001, 12:40 PM Originally posted by vels Hi I have solve my problem, and run IMP now :) I will thanks jks a lot because he help my much :) No problem :-) -- Jens Kristian Søgaard, Mermaid Consulting I/S, jens@mermaidconsulting.dk, http://www.mermaidconsulting.com/ |