[horde] Horde on Web Hosting

Ged Manning horde at strawberryice.org.uk
Sun May 6 11:11:31 UTC 2007


Hi!

I'm new to Horde and this mailing list, so apologies if this has been  
said before (I checked the list archives and the help files, and it  
didnt seem to have been) or if it's deemed inappropriate to give this  
kind of advice

I had the same problem as Kenneth (hosting at names.co.uk - no shell  
access and no gettext, I think poor XML support as well), but I think  
I've worked out how to get Horde to work (more or less) despite all  
of this. Here are the steps I took, as far as I can remember them.  
(There is no guarantee that this will work properly or in the way  
that Horde is intended to, because I'm running it on an underspecced  
system, but it works for me!)

1. set up a new MYSQL database, and create a table structure using  
the SQL in horde-webmail-x-x-x/scripts/sql/create.mysql.sql from line  
44 (lines 1-43 deal with setting up permissions for the MYSQL horde  
user, which I did not want to do as I gave the horde user permissions  
manually. I also did not run any of the GRANT commands, because I  
managed the MYSQL user's permissions manually) This table structure  
doesnt need to have any data put into it.

2. I created the file horde-webmail-x-x-x/config/conf.php ,  
containing the following text (generated using the shell install  
script on a different computer, then edited to apply to my web hosts'  
settings)

<?php
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Horde: horde/config/conf.xml,v 1.74.2.48 2007/02/02 11:03:05 jan  
Exp $
$conf['debug_level'] = E_ALL & ~E_NOTICE;
$conf['max_exec_time'] = 0;
$conf['compress_pages'] = true;
$conf['umask'] = 077;
$conf['use_ssl'] = 2;
$conf['server']['name'] = $_SERVER['SERVER_NAME'];
$conf['server']['port'] = $_SERVER['SERVER_PORT'];
$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = true;
$conf['session']['cache_limiter'] = 'nocache';
$conf['session']['timeout'] = 0;
$conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
$conf['cookie']['path'] = '/horde-webmail-x-x-x';                 //  
Change this to the path to your horde installation
$conf['sql']['persistent'] =  
false;                                             // Should the  
database be connected to with a persistant connection? (true = yes,  
false = no)
$conf['sql']['username'] = 'sql_username';                         //  
Change this to the SQL username for horde
$conf['sql']['password'] =  
'sql_password';                          //      "          "         
"         "      password    "      "
$conf['sql']['hostspec'] =  
'sql_server_address';                //      "          "            
"       "      server address (e.g. localhost)
$conf['sql']['port'] =  
3306;                                                      // the  
port the SQL server runs on - 3306 is default
$conf['sql']['protocol'] = 'tcp';
$conf['sql']['database'] = 'sql_database_name';               //  the  
name of the database to connect to
$conf['sql']['charset'] =  
'utf8';                                                 // the  
characterset used by the database.
$conf['sql']['phptype'] =  
'mysql';                                           // what type of  
database server you're using
$conf['auth']['admins'] = array('login_name_for_admin_user');  // the  
login names for admin users as an array (see below)
$conf['auth']['checkip'] = true;
$conf['auth']['checkbrowser'] = true;
$conf['auth']['alternate_login'] = false;
$conf['auth']['redirect_on_logout'] = false;
$conf['auth']['params']['app'] = 'imp';
$conf['auth']['driver'] = 'application';
$conf['signup']['allow'] = false;
$conf['log']['priority'] = PEAR_LOG_NOTICE;
$conf['log']['ident'] = 'HORDE';
$conf['log']['params'] = array();
$conf['log']['name'] = '/tmp/horde.log';
$conf['log']['params']['append'] = true;
$conf['log']['type'] = 'file';
$conf['log']['enabled'] = true;
$conf['log_accesskeys'] = false;
$conf['prefs']['params']['driverconfig'] = 'horde';
$conf['prefs']['driver'] = 'sql';
$conf['datatree']['params']['driverconfig'] = 'horde';
$conf['datatree']['driver'] = 'sql';
$conf['group']['driver'] = 'datatree';
$conf['cache']['default_lifetime'] = 1800;
$conf['cache']['params']['dir'] = Horde::getTempDir();
$conf['cache']['params']['gc'] = 86400;
$conf['cache']['driver'] = 'file';
$conf['token']['params']['driverconfig'] = 'horde';
$conf['token']['driver'] = 'sql';
$conf['mailer']['params']['sendmail_path'] = '/usr/sbin/ 
sendmail';     // The path to sendmail - change this if necessary
$conf['mailer']['params']['sendmail_args'] = '-oi';
$conf['mailer']['type'] = 'sendmail';
$conf['vfs']['params']['vfsroot'] = '/tmp';
$conf['vfs']['type'] = 'file';
$conf['sessionhandler']['type'] = 'none';
$conf['problems']['email'] = 'problems at youraddress.com;     // an  
email address for reporting problems to
$conf['problems']['maildomain'] = 'youraddress.com';              //  
the part after the '@' in the email addresses people are likely to  
log on with
$conf['problems']['tickets'] = false;
$conf['menu']['apps'] = array();
$conf['menu']['always'] = false;
$conf['menu']['links']['help'] = 'all';
$conf['menu']['links']['help_about'] = true;
$conf['menu']['links']['options'] = 'authenticated';
$conf['menu']['links']['problem'] = 'all';
$conf['menu']['links']['login'] = 'all';
$conf['menu']['links']['logout'] = 'authenticated';
$conf['hooks']['permsdenied'] = false;
$conf['hooks']['username'] = false;
$conf['hooks']['preauthenticate'] = false;
$conf['hooks']['postauthenticate'] = false;
$conf['hooks']['authldap'] = false;
$conf['portal']['fixed_blocks'] = array();
$conf['accounts']['driver'] = 'null';
$conf['imsp']['enabled'] = false;
$conf['kolab']['enabled'] = false;
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */

3. I set up IMP to try to log into the IMAP server that i wanted to  
check. In horde-webmail-x-x-x/imp/config/servers.php at the end of  
the file is an example IMAP server configuration. I changed that so  
that it pointed at my desired IMAP server.

4. Check that everything is working by going to horde-webmail-x-x-x/ 
test.php in your web browser. If you're running without gettext then  
this will fail unless you comment out lines 52-56 of the test.php  
file. (I've not yet discovered the limitations of running horde  
without gettext - if it's only needed for localisation then it looks  
like english works ok, but if its used for anything security-wise it  
might open up a security hole...)

And that was it! I'm pretty sure thats all I did (I'm sure it took  
longer to figure out than it seems written down!) I should point out  
that I'm not sure if I've got full functionality or not, or if horde  
is properly or securely set up on my system...

Hope that helps!

Ged


On 2 May 2007, at 19:29, kenneth.pearce at kodak.com wrote:
> Hello, I'm looking for a little help setting up Horde Web Mail  
> Edition on
> a hosted service (1and1) where I don't have shell or Root access.
> setup.php seems to only work with ssh access which I don't have.    
> I have
> created the subdomain and pointed it ti the Horde directory and have
> created the MySQL DB (Called db204579941)  copied config.php.dist to
> config.php but I need some help configuring Horde to know where the DB
> server address and DB & DB User names and Password. If I do this will
> Horde work with out running setup.php? I couldn't find any  
> information on
> how to setup horde with a hosting provider. I wish there was a way  
> I could
> get setup.php to do the installation like other group ware packages
> because Horde looks like one of the nicest packages out there.
>
> Thanks


More information about the horde mailing list