Our website got hacked. And I'm confused. We had a hacker putting stuff in some folders
because they had 777 permissions.
I was able to find and remove all that stuff.
And I reset file and folder permissions.
I researched that files should be 644 and folders should be 755.
Which is what I did.
But now, I am getting error messages when my program attempts
to write to a file on the server. I have an empty folder called 'logs'
It's permissions are set to 755.
I have a program that attempts to create a file in there
by opening the file (in PHP) as "w" (writable)
But it gets kicked out with an error message:
Warning: fopen(logs/editors_list.txt) [function.fopen]: failed to open stream: Permission denied
Huh? Since the folder is set at read/write/execute for the owner, and read/execute for the group and other, why doesn't this work?
I am sorely confused.
Thanks
....Burton Smith |