Koozali.org: home of the SME Server

Gollem (filemanager Horde) problem

Offline bas

  • *
  • 31
  • +0/-0
Gollem (filemanager Horde) problem
« on: May 10, 2006, 12:59:00 AM »
I can't get Gollem working on a fresh installed 6.01 server using Jbennett's install_horde30.sh (23 apr 2006) script.
The script runs great without errors.

When I login to horde and open the filemanager only a login button appears.

The messages log shows:
- HORDE[9221]: PHP Notice:  Use of undefined constant  - assumed '' in /usr/share/pear/Log/syslog.php on line 150
- HORDE[9221]: PHP Notice:  Use of undefined constant ^D - assumed '^D' in /usr/share/pear/Log/syslog.php on line 150
- HORDE[9221]: PHP Notice:  Use of undefined constant ^C^A^B - assumed '^C^A^B' in /usr/share/pear/Log/syslog.php on line 150
- HORDE[9221]: PHP Notice:  Use of undefined constant  - assumed '' in /usr/share/pear/Log/syslog.php on line 150
- HORDE[9221]: PHP Notice:  Use of undefined constant n^C - assumed 'n^C' in /usr/share/pear/Log/syslog.php on line 150
- HORDE[9221]: PHP Notice:  Use of undefined constant ^A - assumed '^A' in /usr/share/pear/Log/syslog.php on line 150
- HORDE[9221]: PHP Notice:  Use of undefined constant ^D - assumed '^D' in /usr/share/pear/Log/syslog.php on line 150
- HORDE[9221]: PHP Notice:  Use of undefined constant  - assumed '' in /usr/share/pear/Log/syslog.php on line 150

-  HORDE[9221]: [gollem] 192.168.40.40 Connection to FTP server failed. <br>Enable FTP access for local users in server-manager. [on line 49 of "/home/httpd/html/horde/gollem/login.php"]

I can't make much of the first lines and the last line "enable FTP access..." was already enabled.

Can someone please help me?
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Gollem (filemanager Horde) problem
« Reply #1 on: May 10, 2006, 02:25:48 AM »
What version of php are you using?  The version that the script installs or something else?  I haven't seen the php errors you are seeing.  You could try to do a pear ua[/] to upgrade your pear versions.  The other error should only come up if you don't have ftp access enabled.  If you say you do, can you do to your console and type ftp localhost and see if you get a login prompt?

Let me know your results and I'll try to help as much as I can.

JB
......

Offline bas

  • *
  • 31
  • +0/-0
Gollem (filemanager Horde) problem
« Reply #2 on: May 10, 2006, 11:57:02 PM »
Don''t know what version of php I'm running, don't know how I can find out.
But I'm using the version that's installed by the script.

After "pear ua" this message showed:
Did not download optional dependencies: pear/Net_FTP, use --alldeps to download automatically
pear/Services_Weather can optionally use package "pear/Net_FTP" (recommended version 1.3.1)
pear/Services_Weather dependency package "pear/Cache" installed version 1.5.5RC4 is not the recommended version 1.5.4, but may be compatible, use --force to install
No valid packages found
upgrade-all failed

Then I installed "pear upgrade pear/Net_FTP". But I can't get the Service_Weather installed (don't care about that).

Gollem still doesn't work giving the FTP error, via the console goes perfect:
-May 10 23:35:09 server02 HORDE[8169]: [gollem] 123.123.123.123 Connection to FTP server failed. <br>Enable FTP access for local users in server-manager. [on line 49 of "/home/httpd/html/horde/gollem/login.php"]
-May 10 23:35:18 server02 proftpd[8544]: server02.oswinkel.lan (127.0.0.1[127.0.0.1]) - FTP session opened.
-May 10 23:35:24 server02 PAM_pwdb[8544]: (ftp) session opened for user test by (uid=0)

Hope you can help me.
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Gollem (filemanager Horde) problem
« Reply #3 on: May 11, 2006, 01:48:29 AM »
php -v will give you your php version
php -v  
PHP 4.3.10 (cli) (built: Mar  1 2005 08:30:27)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with eAccelerator v0.9.2, Copyright (c) 2004-2005 eAccelerator, by eAccelerator

Here is my gollem/config/conf.php:
<?php
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Horde: gollem/config/conf.xml,v 1.5.2.2 2005/12/11 18:31:18 slusarz Exp $
$conf['manager']['date_format'] = '%x';
$conf['backend']['backend_list'] = 'none';
$conf['menu']['apps'] = array('accounts', 'gollem', 'imp', 'ingo', 'kronolith', 'mnemo', 'nag', 'turba');
$conf['user']['alternate_login'] = false;
$conf['user']['redirect_on_logout'] = false;
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */

Here is my gollem/config/backends.php:
more backends.php
<?php
/*
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation
#------------------------------------------------------------

*/


// This backend uses Horde credentials to automatically log in.
$backends['hordeftp'] = array(
    'name' => 'Local FTP Server',
    'driver' => 'ftp',
    'preferred' => '',
    'hordeauth' => true,
    'params' => array(
        // The hostname/IP Address of the FTP server.
###template this  
        'hostspec' => 'ftp.YOURDOMAIN.COM',
###template this  
        // The port number of the FTP server.
        'port' => 21,
        // Use passive mode?
        'pasv' => false,
        // Set timeout (in seconds) for the FTP server. Default: 90 seconds
        // 'timeout' => 90,
        // If true and the POSIX extension is available the driver will map
        // the user and group IDs returned from the FTP server with the local
        // IDs from the local password file.  This is useful only if the FTP
        // server is running on localhost or if the local user/group
        // IDs are identical to the remote FTP server.
        // You must be running a version of Horde >= 3.1 for this parameter to
        // have any effect.
        // 'maplocalids' => true
    ),
    'loginparams' => array(
        // Allow the user to change the FTP server.
        // 'hostspec' => 'Hostname',
        // Allow the user to change the FTP port.
        // 'port' => 'Port'
    ),
    // 'root' => '',
    // 'home' => '',
    // 'createhome' => false,
    // 'filter' => '^regex$',
    'attributes' => array('type', 'name', 'download', 'modified', 'size', 'permission', 'owner', 'group')
);

?>

Here is the relevant gollem part in horde/config/registry.php:
$this->applications['gollem'] = array(
    'fileroot' => dirname(__FILE__) . '/../gollem',
    'webroot' => $this->applications['horde']['webroot'] . '/gollem',  
    'name' => _("File Manager"),
    'status' => 'active',
    'menu_parent' => 'myaccount',
    'provides' => 'files',
);
 
/*
$this->applications['gollem-menu'] = array(
    'status' => 'block',
    'app' => 'gollem',
    'blockname' => 'tree_menu',
    'menu_parent' => 'gollem',
);
*/


JB
......

Offline bas

  • *
  • 31
  • +0/-0
Gollem (filemanager Horde) problem
« Reply #4 on: May 11, 2006, 09:37:40 AM »
My php version is 4.3.10
And all config files are the same as yours. But now I noticed the domainname in gollem/config/backends.php. Because this server isn't the only server in the domain I think the domain should be the hostname (like it says in the config file.

// The hostname/IP Address of the FTP server.
###template this
'hostspec' => 'ftp.YOURDOMAIN.COM',
###template this

I chanced it into the ip-number and now it worksgreat.


Many thanks JB.
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Gollem (filemanager Horde) problem
« Reply #5 on: May 11, 2006, 02:42:37 PM »
Quote from: "bas"
My php version is 4.3.10
And all config files are the same as yours. But now I noticed the domainname in gollem/config/backends.php. Because this server isn't the only server in the domain I think the domain should be the hostname (like it says in the config file.

// The hostname/IP Address of the FTP server.
###template this
'hostspec' => 'ftp.YOURDOMAIN.COM',
###template this

I chanced it into the ip-number and now it worksgreat.


Many thanks JB.


Bas,

I'm not sure I am following what you had to do to correct your issue.  On my test server, I have two domains setup.  I go to webmail via the primary domain.  In the gollem backends.php file, I set the ftp to that of the secondary domain that is setup.  I am still able to access gollem.  If I swap my settings, I am still able to get in.  I am asking to see if there is something else that may be needed in the SME 7 RPM's that I am using.

Thanks,

JB
......

Offline bas

  • *
  • 31
  • +0/-0
Gollem (filemanager Horde) problem
« Reply #6 on: May 11, 2006, 10:56:20 PM »
JB,

Now it's all behind I see I left out some important information. I'm installing a server for a small organisation.
I installed this server in server-gateway mode and placed it  in my own lan using my (own) server as dns-server/-gateway. I thought this would make it easy to download stuff and use available scripts. So far so good.

In the config file the domainname is used for gollem the connect to the FTP. Only the new server used the dns of my server wich searched the domainname on the internet. That why I replaced the domain name in the config file for the server's ip.

Right now I've reconfigured the server and left the "Master DNS option blanc".

Thanks again.
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Gollem (filemanager Horde) problem
« Reply #7 on: May 11, 2006, 11:34:25 PM »
Gotcha,  thanks for clarifying that for me.  I just wanted to make sure I wasn't missing anything.

JB
......