[horde] 'phptype' not specified

Robert Croson, Jr robert at arcm.com
Wed Jul 30 10:35:36 PDT 2003


On 30 Jul 2003 at 10:03, Adrian DeBoer wrote:

> In the horde.php, I changed it
> sql, went to to login with one of my users I created -
> and the screen DID NOT SIMPLY REFRESH !! Yeah!!!! 
> However, I did get an error - 
> 
> "A fatal error has occurred:
> Required 'phptype' not specified in authentication
> configuration.
> [line 97 of /var/www/html/horde/lib/Auth/sql.php]
> Details have been logged for the administrator."

Yep. Happened to me, too. If they had simply included the example mysql 
configuration in the auth section, I bet a lot of people would figure 
this one out on their own. The config information you need is provided 
farther down in the prefs section. Details below.

> > Later, you will need to define your sql settings,
> > and set your phptype
> > to 'mysql' at that point. 
> 
> Where?
> I tried doing this  - looked through various config
> files, and looked on Google, and even found a thread
> by you Eric --> .
> 
> http://marc.free.net.ph/message/20030119.073942.743126f3.html
> 
> I need to know what other files to edit - I looked at
> the sql.php file, but I don't think that's where I
> need to be editng....Does it sound like I am on the
> right track?  - editing the file horde.php to say
> 'sql'.

In your horde.php file, find the following line:

$conf['auth']['driver'] = '';

Change it to:

$conf['auth']['driver'] = 'sql';

(You probably already did that part.)

Then go down to the section under prefs that shows this:

// $conf['prefs']['params']['phptype'] = 'mysql';
// $conf['prefs']['params']['hostspec'] = 'localhost';
// $conf['prefs']['params']['username'] = 'horde';
// $conf['prefs']['params']['password'] = '*****';
// $conf['prefs']['params']['database'] = 'horde';
// $conf['prefs']['params']['table'] = 'horde_prefs';

Copy this section to the clipboard.

Go back up to the authentaication section and look for the line that 
says:

$conf['auth']['params'] = array();

Paste the copied lines immediately after this line. Change them as 
follows: (or copy/paste them from here, whatever...)

$conf['auth']['params']['phptype'] = 'mysql';
$conf['auth']['params']['hostspec'] = 'localhost';
$conf['auth']['params']['username'] = 'horde';
$conf['auth']['params']['password'] = '*****';
$conf['auth']['params']['database'] = 'horde';
$conf['auth']['params']['table'] = 'horde_users';

This assumes you are using mysql. If you are using something else, 
you'll need to find the appropriate params and substitute. Don't forget 
to enter the right password.

Good luck.

Rob

-- 
ARCOM Inc. 440.639.9500  http://www.arcm.com
---Excellence In Technical Communications---




More information about the horde mailing list