Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

permissions?

Status
Not open for further replies.

afx

Programmer
Mar 4, 2004
27
CA
I have an Apache2 with mod_perl2 running on two servers.

On the first everything runs without any problems.

On the second, when the appropriate perl module is executed, simple things, like

if (-e "/usr/xyz/filename.txt") {...}

always fail even though the file DOES exist and has 777 permissions is owned and grouped the same as given in the httpd.conf

I've tried adding a <Directory "/usr/xyz">... but that does nothing.

Any suggestions?

regards
Mark H., AFX
 
Well, that's the strange thing - I don't get any error messages - the Perl module just fails to "see" the file. The file exists and it has 777 permissions. I've added a test:

if (-e "/a/b/c") {
print STDERR "yes";
} else {
print STDERR "no";
}

The test ALWAYS produces "no" in the apache error_log file.

regards
Mark H., Solidair
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top