Re: Failed opening 'mysql.inc' for inclusion (include_path



Jerry Stuckle a écrit :
Álvaro G. Vicario wrote:
*** Bob escribió/wrote (Thu, 20 Mar 2008 10:23:08 -0700 (PDT)):
Yep sure enough, my /home/jeff directory was drw--------
and the server that worked was +rx That would do it!
I assumed it was ok, I think I set it that way long ago
for security reasons. UGH, nothing like shooting yourself in
the foot!

That's right. You mentioned you run PHP as Apache module so your web site
will be accessed by an user called "apache". He needs "x" permission in
"/home/jeff" and at least "rx" permission in "/home/jeff/src".

Glad you found it :)



Web server scripts are not executed, and do not need the x flag (in fact should not have, for security reasons). The module is what is executed.

Batch file scripts only need the x flag if they use they use a shebang to identify the interpreter. If they are passed as a parameter to the interpreter, they do not need th x flag.

He did not mention the scripts, but only directories. And yes, the webserver need executables directories or he can't list/read files in it.

Regards,

--
Guillaume
.



Relevant Pages