in reply to Problem with Net::SSH2 when using with CGI programing
The user that Apache runs under is often 'apache', 'httpd', 'nobody', or 'www'. These are limited-rights accounts that do not have the same environment and file rights as most local users. This is to protect your system, because if a security bug is exploited on your web server, you don't want the code to have many rights.
Check to see if the files you're having trouble using are readable by the web server's user account. Try 'ps aux | grep apache', 'ps aux | grep httpd', or 'lsof /var/log/httpd/error_log' or similar to see under which account Apache operates.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with Net::SSH2 when using with CGI programing
by msk_0984 (Friar) on Sep 13, 2007 at 10:34 UTC |