Re: [Dgwebminmodule-users] How can I get shar ed libraries loaded with Webmi n
Brought to you by:
fuzzbawl
|
From: Adam K. <ake...@ni...> - 2002-09-03 19:36:51
|
What your trying to do is a system config issue, not webmin :)
On slackware systems, and most other linux systems, modify the
/etc/ld.so.conf file.
In that file on a new line put /usr/local/lib
Save the file and exit your file editor. Then run the command 'ldconfig'
without the quotes.
That will tell your system programs where they can find libraries.
Webmin doesn't look for libraries at all. Your fix to the webmin module
will work only because it's setting environment variables so the DG
program knows where to look for it's libs. Once you do the above config
change, then you could take out the changes to the module.
-Adam
Tim Simpson wrote:
> What I ended up doing was the following
>
> in these scripts index.cgi, restart.cgi, start.cgi, status.cgi, stop.cgi I
> added the following code
>
> $ENV{'LD_LIBRARY_PATH'} ="/usr/local/lib";
>
> before the call to the binary program
>
> Not knowing webmin at all I had already tried adding to the webmin startup
> script, to a couple of webmin perl routines which seem to be called by most of
> the code but none of these worked.
>
> It would be useful if this could be added as some sort of config option
>
> On a slightly different matter I editted the webmin config file by hand to set
> the variables, but was puzzled to see that they did not appear to have any
> affect , it was not until I used the webmin option to configure dansguardian
> that the variables seemed to work, is this normal webmin behaviour or am I
> missing a step somewhere?
>
> Tim
--
------------------------------------------------
| Northern Indiana Educational Services Center |
------------------------------------------------
| Adam Kennedy - ake...@ni... |
| Certified Linux Administrator - Master Level |
| Phone: (574) 254-0111 x113 |
| Fax: (574) 254-0148 |
------------------------------------------------
|