From: Heino E. <hei...@ie...> - 2003-04-15 14:23:15
|
Am Mon, 2003-04-14 um 20.05 schrieb Rob Helmer: > Hello, > > > On Mon, Apr 14, 2003 at 03:52:29PM +0200, heino wrote: > > [root@unsa cgi-bin]# sandweb-admin --add-user bob > > Using a hash as a reference is deprecated at > > /usr/lib/perl5/site_perl/5.8.0/SandWeb/Config.pm line 352. > > Using a hash as a reference is deprecated at > > /usr/lib/perl5/site_perl/5.8.0/SandWeb/Config.pm line 353. > > unable to open config file: ../etc/sandweb.cfg > > return data: <pre>$VAR1 = { > > 'errlev' => 0, > > 'data' => {} > > }; > > </pre>[root@unsa cgi-bin]# > > Hmm.. well, the "Using a hash as a reference" warning is probably > from Perl 5.8.0 ( we're still using 5.6 ), I should probably upgrade :) > > The "unable to open config file: ../etc/sandweb.cfg" is rather > odd. Can you send your "install.cfg" to the list? I `ve made a link from /etc/sandweb.cfg ->/usr/local/etc/sandweb/sandweb.cfg When I start it from the root ('/') sandweb-admin was able to open ../etc/sandweb.cfg (there are no serious errors) : _______ [root@unsa /]# cd / [root@unsa /]# sandweb-admin --add-user bob Using a hash as a reference is deprecated at /usr/lib/perl5/site_perl/5.8.0/SandWeb/Config.pm line 352. Using a hash as a reference is deprecated at /usr/lib/perl5/site_perl/5.8.0/SandWeb/Config.pm line 353. Enter password for bob: Username bob successfully added! [root@unsa /]# _______ So this works, and I can log in now w my browser. But when I enter the Full Name and want to let write sandweb.cgi bob`s config-file, sandweb.cgi is "Unable write config file for bob." There must be something wrong with my Paths/Rights, I think! > Send your install.cfg, I don't know why sandweb-admin would be looking > in "../etc" for sandweb.cfg > > The location of sandweb.cfg is set at install time. I`ve download/unzip sandweb to this dir ('/space/sandweb'), customized the install.cfg (but it looked god, so I`ve done no changes) and typed 'make install'. Here is my install.cfg : _______ [root@unsa /]# locate install.cfg /space/sandweb/install.cfg /space/sandweb/debian/install.cfg [root@unsa /]# cat /space/sandweb/install.cfg # Installation configuration variables. package config; $bindir = '/usr/local/bin'; $cfgdir = '/usr/local/etc/sandweb'; $cgidir = '/var/www/cgi-bin'; $imgdir = '/var/www/images'; $tmpldir = '/usr/local/lib/sandweb/templates'; $cachedir = '/usr/local/share/sandweb'; $logdir = '/var/log'; $httpuser = 'www'; $expectbin = '/usr/bin/expect'; $ssh_bin = '/usr/bin/ssh'; $cvs_bin = '/usr/bin/cvs'; 1; [root@unsa /]# _______ I thought, that this are my dirs/places where sandweb looks and works after the installation, is this correct? All dirs/paths/_bins exists! I can use them manually! Hope this can help you to help me ;-) Thx Heino |