PHP pages permission on Apache Server

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
anp24
Forum Newbie
Posts: 13
Joined: Wed Jul 11, 2007 6:34 am

PHP pages permission on Apache Server

Post by anp24 »

Hello,
I want to know what permissions for PHP pages should be given on Apache web server so that PHP pages can be executed. If PHP pages are in a folder, what permissions should be given for that folder?

thank you
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Easiest way to learn is to play around with them. Best case, you make three changes. Worst case, you'll go through twenty-seven.
User avatar
Gente
Forum Contributor
Posts: 252
Joined: Wed Jun 13, 2007 9:43 am
Location: Ukraine, Kharkov
Contact:

Post by Gente »

Yes. I'd been working as PHP developer for several months and only than I found out that 777 permissions for executable files (`index.php` for example :)) may cause the Error 500 on some servers :)
Post Reply