On 15:16 05 Feb 2003, Edward Muller <[EMAIL PROTECTED]> wrote:
| I am trying to get a script to work for a client. I need to run the
| script with suexec.
|
| I get the following error in my suexec.log file...
|
|
| [2003-02-05 16:00:10]: cannot get docroot information (/var/www)
When in doubt, read the source. That message comes from here:
/*
* Get the current working directory, as well as the proper
* document root (dependant upon whether or not it is a
* ~userdir request). Error out if we cannot get either one,
* or if the current working directory is not in the docroot.
* Use chdir()s and getcwd()s to avoid problems with symlinked
* directories. Yuck.
*/
if (getcwd(cwd, AP_MAXPATH) == NULL) {
log_err("emerg: cannot get current working directory\n");
exit(111);
}
if (userdir) {
if (((chdir(target_homedir)) != 0) ||
((chdir(USERDIR_SUFFIX)) != 0) ||
((getcwd(dwd, AP_MAXPATH)) == NULL) ||
((chdir(cwd)) != 0)) {
log_err("emerg: cannot get docroot information (%s)\n",
target_homedir);
exit(112);
}
}
else {
if (((chdir(DOC_ROOT)) != 0) ||
((getcwd(dwd, AP_MAXPATH)) == NULL) ||
((chdir(cwd)) != 0)) {
log_err("emerg: cannot get docroot information (%s)\n", DOC_ROOT);
exit(113);
}
}
Since you're talking about /var/www that's the second branch.
What are the ownerships and permissions on /, /var and /var/www ?
One of the chdir(/var/www), the getcwd() once there, or the second chdir()
to what getcwd() returns is failing.
Is /var/www a symlink to somewhere less accessible?
Cheers,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
Sir, you're drunk!
Madam, in the morning I shall be sober, but you will still be ugly.
- Winston Churchill
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list