From: Bill I. <bi...@in...> - 2006-03-30 03:14:18
|
Hi Stephen, There's a php binary in /usr/local/bin I reran the command as strings /usr/local/bin/php | grep gdbm and the result was nothing. I also ran it on the working 4.10 server and got the same result. Thanks in advance, Bill Ing Stephen Hauskins wrote: > I am not sure where your php lives, looks like it is not > in your path. > > Is in in /usr/local/bin or /usr/bin > > > > On Wed, 29 Mar 2006, Bill Ing wrote: > > >> Hi Stephen, >> >> Here's the output. >> >> ***************** >> [lindroot] />strings php |grep gdbm >> strings: 'php': No such file >> ***************** >> >> Cheers >> >> Stephen Hauskins wrote: >> >>> Not BSD but Solaris and RH linux >>> >>> I had the same problem with PHP and IMAP. >>> >>> I noticed in your debug output about vadmin checking >>> whether it was gdbm file, it was hard to tell if it >>> thought it wasn't or was. >>> >>> Can you do this test. >>> >>> strings php |grep gdbm >>> >>> On Wed, 29 Mar 2006, Bill Ing wrote: >>> >>> >>> >>>> Thanks. >>>> >>>> Not sure if you're familiar with FreeBSD ports version of PHP4. >>>> >>>> But getting that GDBM was a pain in the ass using >>>> /usr/ports/lang/php4-extensions. The make config was supposed to have >>>> generated config options in /var/db/ports/php4-dba which made me wonder >>>> at times whether it really did work or not. >>>> >>>> GDBM is listed a bit further below in the php info page... >>>> >>>> A different test server running FreeBSD 4.10 showing the same php info >>>> page also doesn't explicity have --with-gdbm in the configure command >>>> and vadmin works without problem there. >>>> >>>> Hmmm... Might be the key. But before I get into stepping over ports and >>>> installing PHP4 manually from source tarball, I want to examine any >>>> other possibility. >>>> >>>> Cheers >>>> >>>> >>>> >>>> Stephen Hauskins wrote: >>>> >>>> >>>>> Ok one more part... ;-) >>>>> >>>>> Is your PHP built with --with-gdbm explicitly? >>>>> >>>>> I see your configure arguments. >>>>> >>>>> './configure' '--enable-versioning' '--enable-memory-limit' >>>>> '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' >>>>> '--disable-all' '--with-regex=php' '--with-apxs=/usr/local/sbin/apxs' >>>>> '--enable-debug' '--disable-ipv6' '--prefix=/usr/local' >>>>> 'i386-portbld-freebsd5.4' >>>>> >>>>> >>>>> >>>>> On Tue, 28 Mar 2006, Bill Ing wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Ahh.. >>>>>> >>>>>> As I understand it, "elvis" is a designation for a type of user in >>>>>> vadmin. It is the equivalent of group wheel in BSD land or god-ly group. >>>>>> >>>>>> Any login that we've told vadmin is in the 'elvis' group has site-wide >>>>>> access to everything as opposed to just being a virtual domain admin. >>>>>> >>>>>> Cheers >>>>>> >>>>>> Stephen Hauskins wrote: >>>>>> >>>>>> >>>>>> >>>>>>> Another long shot. The debug info is sort of hard to follow. >>>>>>> >>>>>>> I see the user "wing" and it looks like it is trying to do >>>>>>> database creations via user "elvis" >>>>>>> >>>>>>> So it is a little confusing for me. If the database belongs >>>>>>> to elvis or other users like wing then that is what the database >>>>>>> directory ownership should be. It may be that in this case >>>>>>> will need group ownership under the webserver but who should own >>>>>>> the database. >>>>>>> >>>>>>> hope it helps >>>>>>> >>>>>>> ;-) >>>>>>> >>>>>>> Stephen Hauskins >>>>>>> Divisional Liaison >>>>>>> Academic Computing Group >>>>>>> Division of Physical and Biological Sciences >>>>>>> >>>>>>> Wine is sunlight, held together by water. Galileo >>>>>>> >>>>>>> >>>>>>> On Tue, 28 Mar 2006, Bill Ing wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> "Paul Lesneiwski" <pa...@sq...> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> As well as information about what the permissions/ownership on >>>>>>>>> /var/lib/vadmin directory are and a debug dump (with vadmin debugging >>>>>>>>> turned all the way up). There is extensive debugging in the plugin, >>>>>>>>> but you have to read the documentation and configuration files >>>>>>>>> thoroughly. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> Hi there, >>>>>>>> >>>>>>>> I turned on debugging in vadmin.conf by uncommenting the lines. >>>>>>>> >>>>>>>> Here is the debug output after I click on Log in in the Administrator Login page. >>>>>>>> >>>>>>>> ******************** >>>>>>>> 22:59:16> vadmin_main.php: initializing... >>>>>>>> 22:59:16> vadmin_main.php: QUERY_STRING is LVL=admin&MOD=login&ACT=check >>>>>>>> 22:59:16> vadmin_main.php: setting locale to '/usr/local/www/squirrelmail/plugins/vadmin/locale' >>>>>>>> 22:59:16> vadmin_main.php: storage.type is 'dba' >>>>>>>> 22:59:16> vadmin_main.php: attempting to load '/usr/local/www/squirrelmail/plugins/vadmin/includes/dba_functions.inc' >>>>>>>> 22:59:16> vadmin_putvar: Received putvar request of type 'VADMIN' >>>>>>>> 22:59:16> vadmin_putvar: varname: 'LVL', varvalue: 'admin' >>>>>>>> 22:59:16> vadmin_putvar: Received putvar request of type 'SESSION' >>>>>>>> 22:59:16> vadmin_putvar: varname: 'prefs', varvalue: '' >>>>>>>> 22:59:16> vadmin_get_user_unamedomain: analyzing 'wi...@ca...' >>>>>>>> 22:59:16> vadmin_get_user_unamedomain: domain 'cardiomed.com' found with separator '@' >>>>>>>> 22:59:16> vadmin_get_user_unamedomain: username: wing, domain: cardiomed.com >>>>>>>> 22:59:16> vadmin_getdomain: returning cardiomed.com >>>>>>>> 22:59:16> vadmin_auth: AUTHCODE is already in session with 'ELVIS' >>>>>>>> 22:59:16> vadmin_main.php: AUTHCODE: 'ELVIS' >>>>>>>> 22:59:16> vadmin_putvar: Received putvar request of type 'VADMIN' >>>>>>>> 22:59:16> vadmin_putvar: varname: 'ACT', varvalue: 'check' >>>>>>>> 22:59:16> vadmin_main.php: invoking module '/usr/local/www/squirrelmail/plugins/vadmin/modules/admin/login.mod' >>>>>>>> 22:59:16> login.mod/check: taking over >>>>>>>> 22:59:16> vadmin_get_user_unamedomain: analyzing 'wi...@ca...' >>>>>>>> 22:59:16> vadmin_get_user_unamedomain: domain 'cardiomed.com' found with separator '@' >>>>>>>> 22:59:16> vadmin_get_user_unamedomain: username: wing, domain: cardiomed.com >>>>>>>> 22:59:16> vadmin_getdomain: returning cardiomed.com >>>>>>>> 22:59:16> login.mod/check: Checking among existing virtual domains >>>>>>>> 22:59:16> vadmin_list_virtual_domains: Looking at /var/qmail/control/virtualdomains now >>>>>>>> 22:59:16> vadmin_list_virtual_domains: got /var/qmail/control/virtualdomains, size is 58 >>>>>>>> 22:59:16> vadmin_list_virtual_domains: found cardiomed.com >>>>>>>> 22:59:16> vadmin_list_virtual_domains: found cardiointernational.com >>>>>>>> 22:59:16> login.mod/check: verifying the mailbox password >>>>>>>> 22:59:16> login.mod/check: Mailbox password verified >>>>>>>> 22:59:16> login.mod/check: Checking if the domain exists >>>>>>>> 22:59:16> vadmin_domain_exists: checking if domain 'cardiomed.com' is enabled >>>>>>>> 22:59:16> vadmin_domain_exists: making a quick check >>>>>>>> 22:59:16> dbastor_get_dbfile: dbfile for 'cardiomed.com' is '/var/lib/vadmin/cardiomed.com.db' >>>>>>>> 22:59:16> dbastor_check_db: no such file, '/var/lib/vadmin/cardiomed.com.db' >>>>>>>> 22:59:16> vadmin_domain_exists: checking if it needs upgrading >>>>>>>> 22:59:16> dbastor_get: I was asked to get '_upgraded_' from db 'cardiomed.com' >>>>>>>> 22:59:16> vadmin_crypto: encrypted successfully >>>>>>>> 22:59:16> dbastor_get_dbfile: dbfile for 'cardiomed.com' is '/var/lib/vadmin/cardiomed.com.db' >>>>>>>> 22:59:16> dbastor_get: flavor is gdbm >>>>>>>> 22:59:16> dbastor_get: key '_upgraded_' (xV4M6DFklCjShnNWiUV1al5jKdiN9FhQ) not found, or dbopen failed! >>>>>>>> 22:59:16> vadmin_domain_exists: check if this domain belongs to elvis >>>>>>>> 22:59:16> vadmin_domain_exists: this is the master domain. Enabling. >>>>>>>> 22:59:16> vadmin_enable_domain: enabling domain cardiomed.com >>>>>>>> 22:59:16> dbastor_get_dbfile: dbfile for 'cardiomed.com' is '/var/lib/vadmin/cardiomed.com.db' >>>>>>>> 22:59:16> dbastor_create_db: '/var/lib/vadmin/cardiomed.com.db' claims to be flavor 'gdbm' >>>>>>>> 22:59:16> dbastor_create_db: ruh-roh, db creation failed! >>>>>>>> 22:59:16> vadmin_system_error: Invoked with message 'Failed to create /var/lib/vadmin/cardiomed.com.db!' >>>>>>>> 22:59:16> vadmin_system_error: checking if we're in vadmin_main >>>>>>>> 22:59:16> vadmin_make_page: building a page 'SYSTEM ERROR' >>>>>>>> 22:59:16> vadmin_make_page: scriptsrc= >>>>>>>> 22:59:16> vadmin_make_page: returntomain= >>>>>>>> *********************** >>>>>>>> >>>>>>>> I mentioned in a previous post. >>>>>>>> >>>>>>>> FreeBSD 5.4 >>>>>>>> Qmail 1.03_5 >>>>>>>> apache-1.3.34_4 >>>>>>>> php4-4.4.2_1 (actually, http://www.cardiomed.com/hello.php should be detailed) >>>>>>>> vmailmgr-0.96.9_2 >>>>>>>> Courier IMAP 3.0.8 >>>>>>>> >>>>>>>> Also as far as the perms on /var/lib/vadmin goes, >>>>>>>> >>>>>>>> ***************** >>>>>>>> [lindroot] /var/lib>ls -la >>>>>>>> total 6 >>>>>>>> drw-rw-rw- 3 root wheel 512 Mar 18 15:30 . >>>>>>>> drwxr-xr-x 24 root wheel 512 Mar 28 05:47 .. >>>>>>>> drwxrwxrwx 2 www www 512 Mar 18 22:12 vadmin >>>>>>>> ****************** >>>>>>>> >>>>>>>> If there's anything else, I'd be more than happy to provide. >>>>>>>> >>>>>>>> Cheers >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------- >>>>>>>> This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>>>>>> that extends applications into web and mobile media. Attend the live webcast >>>>>>>> and join the prime developer group breaking into this new coding territory! >>>>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>>>>>> -- >>>>>>>> squirrelmail-plugins mailing list >>>>>>>> Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines >>>>>>>> List Address: squ...@li... >>>>>>>> List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins >>>>>>>> List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931 >>>>>>>> List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> ------------------------------------------------------- >>>>>> This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>>>> that extends applications into web and mobile media. Attend the live webcast >>>>>> and join the prime developer group breaking into this new coding territory! >>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>>>> -- >>>>>> squirrelmail-plugins mailing list >>>>>> Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines >>>>>> List Address: squ...@li... >>>>>> List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins >>>>>> List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931 >>>>>> List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins >>>>>> >>>>>> >>>>>> >>>>>> >>>> ------------------------------------------------------- >>>> This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>> that extends applications into web and mobile media. Attend the live webcast >>>> and join the prime developer group breaking into this new coding territory! >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>> -- >>>> squirrelmail-plugins mailing list >>>> Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines >>>> List Address: squ...@li... >>>> List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins >>>> List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931 >>>> List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins >>>> >>>> >>>> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting language >> that extends applications into web and mobile media. Attend the live webcast >> and join the prime developer group breaking into this new coding territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> -- >> squirrelmail-plugins mailing list >> Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines >> List Address: squ...@li... >> List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins >> List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931 >> List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins >> >> |