Re: Process Understanding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05Feb2007 11:07, Dan Track <dan.track@xxxxxxxxx> wrote:
| >However, a web server startup is not a login shell. The web server is
| >simply invoked, typically from an init script. The login shell of the
| >user is not involved at all.
| 
| Thanks for the reply. If the web server user does not have a login
| shell then where does the daemon get its environment variables from?

It will have next to nothing. A "stock" install of apache will usually
start from the script /etc/init.d/httpd on Fedora systems. You could
edit that file and insert this command:

  env | sort

which will dump the current environment when the script runs. That will
be illuminating during boot. If you start things from a root login shell,
it will start with root's environment (and that will come via root's
login shell startup).

It is also possible to configure environment values inside Apache's
config files as I recall.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Remember: Politicians just want to be your friend if you give them half a
          chance...
          and shove them into a corner...
          hard.
        - Peter Harper <bo165@xxxxxxxxxxxxxxxxxxx> <harperp@xxxxxxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux