apache - chmod seems to have no effect on php files or clarifying permissions handling -


i switched using .shtml files webpages using .php files. after figuring out how php handles directories, seemed work fine. until realized file permissions don't seem work same .php files .shtml files.

problem: php files in web root should inaccessible outside world, permission settings set accordingly , ls -l reveals file's permission status is

-rwx------ 

unfortunately, file still accessible world. however, denying users access file makes file inaccessible world, though doesn't autodirect 403.php. instead, simple "access denied" displayed.

what's odd permissions settings work expected .shtml files. if attempt access test.shtml automatically redirected mywebsite.com/403 per .htaccess settings.

this leads 2 questions:

  1. how manage permissions .php files?
  2. can hardcode permissions within .htaccess file?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -