[horde] phptype not specified + new errro

Adrian DeBoer stud_muffin_540 at yahoo.com
Wed Jul 30 12:13:33 PDT 2003


> > 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


Thanks Rob !  That did it!  I agree with you that they
should include that section higher up where it belongs
with the ['auth'] tags.....or at least put it there
and comment it out!!

I do however have another problem....I now get the
error:

fatal error has occurred:
Unable to connect to SQL server.
[line 119 of /var/www/html/horde/lib/Auth/sql.php]
Details have been logged for the administrator.

In my horde.php - 

$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_prefs';

When I try to connect through the shell - 
mysql -u horde -p horde 

it connects fine.....

What is going on here??


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the horde mailing list