Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 01:00:47 PM

Pages: [1]   Go Down
  Print  
Author Topic: PHP File Permissions  (Read 5700 times)
etech97
Space Explorer
***
Offline Offline

Posts: 7



WWW
« on: August 22, 2009, 05:31:41 PM »

Sorry for the double post I realized that I posted to the wrong area Sad

What is the correct file permissions for php files 644 or 755?

Thanks,
Tom
Logged
MrPhil
Berserker Poster
*****
Offline Offline

Posts: 5083



« Reply #1 on: August 22, 2009, 07:06:25 PM »

Mine run at 644. Unless there's something bizarre about your server, 644 should be fine and 755 should be unnecessary. The extra +111 marks the file as "executable", which PHP files are not. It's for binary executables and shell scripts/Perl etc. scripts that have a "shebang" line 1 (#!/path-to-interpreter). No harm done running them at 755, but it's unnecessary.
Logged

etech97
Space Explorer
***
Offline Offline

Posts: 7



WWW
« Reply #2 on: August 22, 2009, 07:23:05 PM »

Thank you for the reply Very Happy My site was recently hacked and that was the only other question that I had. I reviewed everything else, and I wasn't sure about that.

Thank you very much Smile

Cheers!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: